Lines Matching +full:1 +full:- +full:sd
61 /* Sanity check SD sizes */
70 * Get/set a Windows security descriptor (SD)
72 * Note: Get allocates mbp->mb_top
87 m = mbp->mb_top; in smbfs_acl_iocget()
90 iocb.alloc = m->m_maxlen; in smbfs_acl_iocget()
102 m->m_len = iocb.used; in smbfs_acl_iocget()
119 error = m_lineup(mbp->mb_top, &m); in smbfs_acl_iocset()
123 if (mbp->mb_top != m) in smbfs_acl_iocset()
128 iocb.alloc = m->m_maxlen; in smbfs_acl_iocset()
129 iocb.used = m->m_len; in smbfs_acl_iocset()
142 * Get an NT SD from the open file via ioctl.
154 * Get the raw Windows SD via ioctl. in smbfs_acl_getsd()
160 * Import the raw SD into "internal" form. in smbfs_acl_getsd()
172 * Set an NT SD onto the open file via ioctl.
175 smbfs_acl_setsd(int fd, uint32_t selector, i_ntsd_t *sd) in smbfs_acl_setsd() argument
186 * Export the "internal" SD into an mb chain. in smbfs_acl_setsd()
187 * (a.k.a "self-relative" form per. NT docs) in smbfs_acl_setsd()
190 error = mb_put_ntsd(mbp, sd); in smbfs_acl_setsd()
193 * Set the raw Windows SD via ioctl. in smbfs_acl_setsd()
207 * ZFS-style ACL (libsec acl, type=ACE_T)
213 i_ntsd_t *sd = NULL; in smbfs_acl_get() local
219 * Which parts of the SD are being requested? in smbfs_acl_get()
237 * Get the Windows SD via ioctl, in in smbfs_acl_get()
240 error = smbfs_acl_getsd(fd, selector, &sd); in smbfs_acl_get()
243 /* Note: sd now holds allocated data. */ in smbfs_acl_get()
246 * Convert the internal SD to a ZFS ACL. in smbfs_acl_get()
256 error = smbfs_acl_sd2zfs(sd, acl, uidp, gidp); in smbfs_acl_get()
269 smbfs_acl_free_sd(sd); in smbfs_acl_get()
275 * ZFS-style ACL (libsec acl, type=ACE_T)
282 i_ntsd_t *sd = NULL; in smbfs_acl_set() local
286 if (acl && acl->acl_type != ACE_T) in smbfs_acl_set()
290 * Which parts of the SD are being modified? in smbfs_acl_set()
296 if (uid != (uid_t)-1) in smbfs_acl_set()
298 if (gid != (gid_t)-1) in smbfs_acl_set()
303 if (uid == (uid_t)-1 || gid == (gid_t)-1) { in smbfs_acl_set()
311 if (uid == (uid_t)-1) in smbfs_acl_set()
313 if (gid == (gid_t)-1) in smbfs_acl_set()
318 * Convert the ZFS ACL to an internal SD. in smbfs_acl_set()
319 * Returns allocated data in sd in smbfs_acl_set()
321 error = smbfs_acl_zfs2sd(acl, uid, gid, selector, &sd); in smbfs_acl_set()
323 error = smbfs_acl_setsd(fd, selector, sd); in smbfs_acl_set()
325 smbfs_acl_free_sd(sd); in smbfs_acl_set()