Searched defs:acl (Results 1 - 25 of 39) sorted by relevance

12

/illumos-gate/usr/src/lib/libsec/common/
H A Dacl.y39 acl_t *acl;
52 %type <acl> acl_entry
61 acl: acl_entry NL label
73 | acl_entry COMMA acl
H A Daclutils.c76 aclcnt = acl(filename, cntcmd, 0, NULL);
82 if (acl(filename, ACE_GETACL,
121 * if acl's aren't supported then
142 acl_info->acl_cnt = acl(fname, cntcmd, 0, NULL);
172 error = acl(fname, getcmd, acl_info->acl_cnt,
221 * return -1 on failure, otherwise the number of acl
244 * Set an ACL, translates acl to ace_t when appropriate.
271 * In the case of 0 we will then fail in either acl(2) or
287 error = acl(acl_inp->file,
366 * Take an acl arra
369 acl_to_aclp(enum acl_type type, void *acl, int count) argument
480 acl_removeentries(acl_t *acl, acl_t *removeacl, int start_slot, int flag) argument
[all...]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dacl_print.c37 #include <sys/acl.h>
92 fprint_ntacl(FILE *fp, i_ntacl_t *acl) argument
96 if (acl == NULL) {
102 acl->acl_revision, acl->acl_acecount);
103 for (i = 0; i < acl->acl_acecount; i++)
104 fprint_ntace(fp, acl->acl_acevec[i]);
H A Dacl_api.c37 #include <sys/acl.h>
203 * ZFS-style ACL (libsec acl, type=ACE_T)
210 acl_t *acl = NULL; local
246 acl = acl_alloc(ACE_T);
247 if (acl == NULL) {
252 error = smbfs_acl_sd2zfs(sd, acl, uidp, gidp);
258 *aclp = acl;
259 acl = NULL;
263 if (acl)
264 acl_free(acl);
275 smbfs_acl_set(int fd, acl_t *acl, uid_t uid, gid_t gid) argument
[all...]
/illumos-gate/usr/src/cmd/fs.d/smbclnt/lsacl/
H A Dlsacl.c35 #include <sys/acl.h>
99 acl_t *acl; local
135 acl = acl_alloc(ACE_T);
136 error = smbfs_acl_sd2zfs(sd, acl, &uid, &gid);
156 acl_printacl(acl, 80, 1);
159 acl_free(acl);
/illumos-gate/usr/src/cmd/fs.d/smbclnt/chacl/
H A Dchacl.c44 #include <sys/acl.h>
77 acl_t *acl = NULL; local
126 error = acl_parse(acl_arg + 2, &acl);
132 if (acl->acl_type != ACE_T) {
142 if (acl)
152 chacl(argv[optind], selector, uid, gid, acl);
155 acl_free(acl);
160 chacl(char *file, uint32_t selector, uid_t uid, gid_t gid, acl_t *acl) argument
197 error = smbfs_acl_zfs2sd(acl, uid, gid, selector, &sd);
217 acl_printacl(acl, 8
[all...]
/illumos-gate/usr/src/cmd/filesync/
H A Dacls.c48 #define acl bogus_acl macro
50 static int acl(const char *name, int opcode, int count, aclent_t *acls) function
77 count = acl(name, GETACL, MAX_ACL_ENTRIES, acls);
164 * fileinfo pointer (which contains an acl pointer)
200 rc = acl(name, SETACL, nacl, list);
214 * to map an acl into arguments for a setfacl command
/illumos-gate/usr/src/uts/common/syscall/
H A Dacl.c52 #include <sys/acl.h>
54 #include <acl/acl_common.h>
67 acl(const char *fname, int cmd, int nentries, void *aclbufp) function
122 * Common code for acl() and facl().
128 int aclbsize; /* size of acl list in bytes */
129 int dfaclbsize; /* size of default acl list in bytes */
187 /* Sort the acl & default acl lists */
194 /* Copy out acl's */
202 /* Copy out default acl'
[all...]
/illumos-gate/usr/src/cmd/backup/lib/
H A Dbyteorder.c266 normacls(struct byteorder_ctx *ctx, ufs_acl_t *acl, int n) argument
278 swabst("1s", (uchar_t *)&(acl[i].acl_tag)); /* u_short */
279 swabst("1s", (uchar_t *)&(acl[i].acl_perm)); /* o_mode_t */
282 uid = (uid32_t)(acl[i].acl_who);
283 if (!complained && ((uid_t)uid) != acl[i].acl_who) {
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_nt_transact_security.c309 smb_encode_sacl(mbuf_chain_t *mbc, smb_acl_t *acl) argument
314 if (acl == NULL)
318 (void) smb_mbc_encodef(mbc, "b.ww2.", acl->sl_revision,
319 acl->sl_bsize, acl->sl_acecnt);
321 for (i = 0, ace = acl->sl_aces; i < acl->sl_acecnt; i++, ace++) {
336 smb_encode_dacl(mbuf_chain_t *mbc, smb_acl_t *acl) argument
340 if (acl == NULL)
344 (void) smb_mbc_encodef(mbc, "b.ww2.", acl
501 smb_acl_t *acl; local
[all...]
H A Dsmb_sd.c120 * routine is always in ZFS format. Convert the ZFS acl to a Win acl
154 * converts ZFS acl to Posix acl if required.
287 smb_acl_t *acl = NULL; local
325 acl = smb_acl_from_zfs(fs_sd->sd_zdacl);
326 if (acl == NULL) {
336 smb_acl_sort(acl);
337 smb_sd_set_dacl(sd, acl, B_TRUE,
347 acl
364 smb_sd_set_dacl(smb_sd_t *sd, smb_acl_t *acl, boolean_t present, int flags) argument
382 smb_sd_set_sacl(smb_sd_t *sd, smb_acl_t *acl, boolean_t present, int flags) argument
[all...]
H A Dsmb_acl.c29 #include <sys/acl.h>
30 #include <acl/acl_common.h>
110 smb_acl_t *acl; local
114 acl = kmem_zalloc(size, KM_SLEEP);
115 acl->sl_revision = revision;
116 acl->sl_bsize = bsize;
117 acl->sl_acecnt = acecnt;
118 acl->sl_aces = (smb_ace_t *)(acl + 1);
120 list_create(&acl
126 smb_acl_free(smb_acl_t *acl) argument
153 smb_acl_len(smb_acl_t *acl) argument
159 smb_acl_isvalid(smb_acl_t *acl, int which_acl) argument
219 smb_acl_sort(smb_acl_t *acl) argument
296 smb_acl_t *acl; local
353 smb_acl_to_zfs(smb_acl_t *acl, uint32_t flags, int which_acl, acl_t **fs_acl) argument
564 acl_t *acl; local
574 smb_fsacl_free(acl_t *acl) argument
591 acl_t *acl; local
[all...]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsrvsvc_sd.c190 acl_t *acl; local
193 if (acl_fromtext("owner@:rwxpdDaARWcCos::allow", &acl) != 0)
199 fs_sd.sd_zdacl = acl;
239 srvsvc_acl_set_relative(uint8_t *sdbuf, smb_acl_t *acl) argument
248 m_acl->revision = acl->sl_revision;
250 m_acl->size = acl->sl_bsize;
252 m_acl->ace_count = acl->sl_acecnt;
400 smb_acl_t *acl; local
409 acl = smb_acl_alloc(rev, sz, ace_cnt);
411 return (acl);
[all...]
H A Dwinreg_svc.c766 acl_t *acl; local
769 if (acl_fromtext("owner@:rwxpdDaARWcCos::allow", &acl) != 0)
775 fs_sd.sd_zdacl = acl;
H A Dspoolss_svc.c1106 acl_t *acl; local
1109 if (acl_fromtext("everyone@:full_set::allow", &acl) != 0) {
1116 fs_sd.sd_zdacl = acl;
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_acl.c62 smb_acl_t *acl; local
66 if ((acl = malloc(size)) == NULL)
69 acl->sl_revision = revision;
70 acl->sl_bsize = bsize;
71 acl->sl_acecnt = acecnt;
72 acl->sl_aces = (smb_ace_t *)(acl + 1);
74 list_create(&acl->sl_sorted, sizeof (smb_ace_t),
76 return (acl);
80 smb_acl_free(smb_acl_t *acl) argument
106 smb_acl_len(smb_acl_t *acl) argument
113 smb_acl_isvalid(smb_acl_t *acl, int which_acl) argument
166 smb_acl_sort(smb_acl_t *acl) argument
243 smb_acl_t *acl; local
300 smb_acl_to_zfs(smb_acl_t *acl, uint32_t flags, int which_acl, acl_t **fs_acl) argument
507 acl_t *acl; local
519 smb_fsacl_free(acl_t *acl) argument
[all...]
H A Dsmb_sd.c151 * Get ZFS acl from the share path via acl_get() method.
188 * Reads ZFS acl from filesystem using acl_get() method. Convert the ZFS acl to
218 * Apply ZFS acl to the share path via acl_set() method.
248 * ZFS acl and applies the acl to the share path via acl_set() method.
372 smb_acl_t *acl = NULL; local
410 acl = smb_acl_from_zfs(fs_sd->sd_zdacl);
411 if (acl == NULL) {
421 smb_acl_sort(acl);
449 smb_sd_set_dacl(smb_sd_t *sd, smb_acl_t *acl, boolean_t present, int flags) argument
467 smb_sd_set_sacl(smb_sd_t *sd, smb_acl_t *acl, boolean_t present, int flags) argument
[all...]
/illumos-gate/usr/src/lib/librsm/common/
H A Drsmgen.c979 rsmapi_access_entry_t acl[1]; local
1008 acl[0].ae_node = rsm_local_nodeid;
1010 acl[0].ae_permission = 0;
1012 acl[0].ae_permission = RSM_PERM_RDWR;
1014 e = rsm_memseg_export_publish(memseg, &segid, acl, 1);
/illumos-gate/usr/src/cmd/mdb/common/modules/ufs/
H A Dufs.c346 mdb_warn("acl walk needs an inode address\n");
383 ufs_ic_acl_t acl; local
397 if (mdb_vread(&acl, sizeof (acl), addr) == -1) {
398 mdb_warn("failed to read acl at %p", addr);
402 wsp->walk_addr = (uintptr_t)acl.acl_ic_next;
404 return (wsp->walk_callback(addr, &acl, acl_map[i].am_tag));
439 if (mdb_pwalk("acl", (mdb_walk_cb_t)acl_cb, NULL, addr) == -1) {
647 { "acl", ":", "given an inode, display its in core acl'
[all...]
/illumos-gate/usr/src/cmd/bart/
H A Dcompare.c43 char *mode, char *acl, char *mtime, char *uid, char *gid, char *contents,
230 char *acl, char *mtime, char *uid, char *gid, char *contents, char *devnode,
242 get_token(line, &pos, line_len, acl, ACL_SIZE);
229 parse_line(char *line, char *fname, char *type, char *size, char *mode, char *acl, char *mtime, char *uid, char *gid, char *contents, char *devnode, char *dest) argument
/illumos-gate/usr/src/uts/common/nfs/
H A Dnfs_acl.h88 vsecattr_t acl; member in struct:GETACL2resok
102 vsecattr_t acl; member in struct:SETACL2args
192 vsecattr_t acl; member in struct:GETACL3resok
212 vsecattr_t acl; member in struct:SETACL3args
/illumos-gate/usr/src/common/smbclnt/
H A Dsmbfs_ntacl.c33 #include <sys/acl.h>
307 ifree_acl(i_ntacl_t *acl) argument
313 if (acl == NULL)
316 acep = &acl->acl_acevec[0];
317 for (i = 0; i < acl->acl_acecount; i++) {
321 sz = I_ACL_SIZE(acl->acl_acecount);
322 FREESZ(acl, sz);
328 i_ntacl_t *acl = NULL; local
347 if ((acl = MALLOC(aclsz)) == NULL)
349 bzero(acl, acls
373 mb_put_acl(mbchain_t *mbp, i_ntacl_t *acl) argument
1430 i_ntacl_t *acl = NULL; local
[all...]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_acl.c39 #include <sys/acl.h>
67 si_t **si_cachea; /* The 'by acl' cache chains */
76 * Search the acl cache for an identical sp and, if found, attach
77 * the cache'd acl to ip. If the acl is new (not in the cache),
79 * decrement the reference count of any prior acl list attached
83 * ip - Ptr to inode to receive the acl list
84 * sp - Ptr to in-core acl structure to attach to the inode.
281 /* Now put the new acl stuff in the cache */
299 * Change the mode bits to follow the acl lis
638 ufs_ic_acl_t *acl; local
1517 ufs_ic_acl_t *acl; local
[all...]
/illumos-gate/usr/src/ucbcmd/ls/
H A Dls.c42 #include <sys/acl.h>
58 char acl; /* acl access flag */ member in struct:afile
424 /* ACL: check acl entries count */
425 if ((aclcnt = acl(file, GETACLCNT, 0, NULL)) >
428 /* this file has a non-trivial acl */
430 fp->acl = '+';
436 * the CLASS_OBJ (acl mask) value. Determine
449 if (acl(file, GETACL, aclcnt, aclp) < 0) {
457 * Until found in acl lis
[all...]
/illumos-gate/usr/src/uts/intel/io/intel_nb5000/
H A Dintel_nb5000.c1848 nb_ereport_add_logout(nvlist_t *payload, const nb_logout_t *acl, argument
1851 const nb_regs_t *nb_regs = &acl->nb_regs;
1854 DATA_TYPE_STRING, acl->type, NULL);
2161 nb_logout_t *acl = (nb_logout_t *)data; local
2189 detector = nb_report(&acl->nb_regs, buf, nva, &nb_scatchpad);
2193 fm_ena_generate(acl->acl_timestamp, FM_ENA_FMT1), detector, NULL);
2207 nb_ereport_add_logout(ereport, acl, &nb_scatchpad);

Completed in 187 milliseconds

12