Home
last modified time | relevance | path

Searched refs:perm (Results 1 – 25 of 114) sorted by relevance

12345

/titanic_51/usr/src/uts/common/os/
H A Dipc.c512 kipc_perm_t *kperm, struct ipc_perm *perm, model_t model) in ipcperm_set() argument
522 STRUCT_SET_HANDLE(lperm, model, perm); in ipcperm_set()
545 ipcperm_stat(struct ipc_perm *perm, kipc_perm_t *kperm, model_t model) in ipcperm_stat() argument
549 STRUCT_SET_HANDLE(lperm, model, perm); in ipcperm_stat()
780 * Otherwise, a pointer to the ID's perm structure and held ID lock are
784 ipc_lookup(ipc_service_t *service, int id, kipc_perm_t **perm) in ipc_lookup() argument
805 *perm = result; in ipc_lookup()
817 ipc_hold(ipc_service_t *s, kipc_perm_t *perm) in ipc_hold() argument
819 ASSERT(IPC_INDEX(perm->ipc_id) < s->ipcs_tabsz); in ipc_hold()
820 ASSERT(IPC_LOCKED(s, perm)); in ipc_hold()
829 ipc_rele(ipc_service_t * s,kipc_perm_t * perm) ipc_rele() argument
855 ipc_rele_locked(ipc_service_t * s,kipc_perm_t * perm) ipc_rele_locked() argument
915 kipc_perm_t *perm = NULL; ipc_keylookup() local
993 kipc_perm_t *perm = NULL; ipc_get() local
1058 kipc_perm_t *perm; ipc_commit_begin() local
1111 ipc_commit_end(ipc_service_t * service,kipc_perm_t * perm) ipc_commit_end() argument
1168 ipc_cleanup(ipc_service_t * service,kipc_perm_t * perm) ipc_cleanup() argument
1190 ipc_remove(ipc_service_t * service,kipc_perm_t * perm) ipc_remove() argument
1228 kipc_perm_t *perm; ipc_rmid() local
1270 kipc_perm_t *perm; ipc_ids() local
1349 kipc_perm_t *perm, *next; ipc_remove_zone() local
[all...]
/titanic_51/usr/src/lib/libast/common/string/
H A Dstrperm.c43 strperm(const char* aexpr, char** e, register int perm) in strperm() argument
54 if (perm == -1) in strperm()
56 perm = 0; in strperm()
92 perm &= ~who; in strperm()
94 perm = 0; in strperm()
113 if (!S_ISDIR(perm) && !(perm & (S_IXUSR|S_IXGRP|S_IXOTH))) in strperm()
126 if (perm & S_IXGRP) in strperm()
130 return perm & S_IPERM; in strperm()
165 perm &= ~who; in strperm()
167 perm = 0; in strperm()
[all …]
H A Dfmtperm.c34 fmtperm(register int perm) in fmtperm() argument
47 if (perm & S_ISVTX) in fmtperm()
49 if (perm & S_ISUID) in fmtperm()
51 if (perm & S_IRUSR) in fmtperm()
53 if (perm & S_IWUSR) in fmtperm()
55 if (perm & S_IXUSR) in fmtperm()
57 if ((perm & (S_ISGID|S_IXGRP)) == S_ISGID) in fmtperm()
67 if ((perm & (S_ISGID|S_IXGRP)) == (S_ISGID|S_IXGRP)) in fmtperm()
69 if (perm & S_IRGRP) in fmtperm()
71 if (perm & S_IWGRP) in fmtperm()
[all …]
/titanic_51/usr/src/contrib/ast/src/lib/libast/string/
H A Dstrperm.c27 * apply file permission expression expr to perm
43 strperm(const char* aexpr, char** e, register int perm) in strperm() argument
54 if (perm == -1) in strperm()
56 perm = 0; in strperm()
92 perm &= ~who; in strperm()
94 perm = 0; in strperm()
113 if (!S_ISDIR(perm) && !(perm & (S_IXUSR|S_IXGRP|S_IXOTH))) in strperm()
126 if (perm & S_IXGRP) in strperm()
130 return perm in strperm()
[all...]
H A Dfmtperm.c27 * return strperm() expression for perm
34 fmtperm(register int perm) in fmtperm() argument
47 if (perm & S_ISVTX) in fmtperm()
49 if (perm & S_ISUID) in fmtperm()
51 if (perm & S_IRUSR) in fmtperm()
53 if (perm & S_IWUSR) in fmtperm()
55 if (perm & S_IXUSR) in fmtperm()
57 if ((perm & (S_ISGID|S_IXGRP)) == S_ISGID) in fmtperm()
67 if ((perm & (S_ISGID|S_IXGRP)) == (S_ISGID|S_IXGRP)) in fmtperm()
69 if (perm in fmtperm()
[all...]
/titanic_51/usr/src/test/zfs-tests/tests/functional/delegate/
H A Ddelegate_common.kshlib93 typeset perm
94 for perm in $permissions; do
97 check_fs_perm $user $perm $dtst
100 check_vol_perm $user $perm $dtst
105 log_note "Fail: $user should have $perm " \
137 typeset perm
138 for perm in $permissions; do
141 check_fs_perm $user $perm $dtst
144 check_vol_perm $user $perm $dtst
149 log_note "Fail: $user should not have $perm " \
[all...]
/titanic_51/usr/src/cmd/oamuser/lib/
H A Dfile.c32 check_perm( statbuf, uid, gid, perm ) in check_perm() argument
36 mode_t perm;
48 (statbuf.st_mode & (perm << 6)) == (perm << 6) )
52 (statbuf.st_mode & (perm << 3)) == (perm << 3) )
55 if( (statbuf.st_mode & perm) == perm )
/titanic_51/usr/src/cmd/sendmail/db/os/
H A Dos_oflags.c58 __db_omode(perm) in __db_omode() argument
59 const char *perm; in __db_omode()
81 if (perm[0] == 'r')
83 if (perm[1] == 'w')
85 if (perm[2] == 'r')
87 if (perm[3] == 'w')
89 if (perm[4] == 'r')
91 if (perm[5] == 'w')
/titanic_51/usr/src/cmd/power/
H A Dconf.c259 if (!pm_status.perm) { in update_cprconfig()
264 } else if (!cpr_status.perm) { in update_cprconfig()
393 * default conf file based on cpr or pm perm.
400 parse_conf_file((pref == NULL || pref->perm) in conf_scanner()
418 if (cip->status->perm) in search()
425 * When perm and update status are OK, write a new conf file
435 if ((cpr_status.perm && cpr_status.update != OKUP) || in write_conf()
436 (pm_status.perm && pm_status.update != OKUP)) { in write_conf()
438 "(cpr perm %d update %d), (pm perm in write_conf()
[all...]
H A Dparse.c82 set_perm(char *defstr, char *user, int *perm, int cons) in set_perm() argument
101 *perm = 1; in set_perm()
103 *perm = cons; in set_perm()
112 *perm = 1; in set_perm()
132 cpr_status.perm = pm_status.perm = 1; in lookup_perms()
147 set_perm("PMCHANGEPERM=", user, &pm_status.perm, cons_perm); in lookup_perms()
148 set_perm("CPRCHANGEPERM=", user, &cpr_status.perm, cons_perm); in lookup_perms()
443 else if (cip->status->perm && (def_src || cip->alt)) { in parse_conf_file()
450 cip->status->perm, def_sr in parse_conf_file()
[all...]
/titanic_51/usr/src/lib/libsec/common/
H A Dacltext.c71 aclent_perms(int perm, char *txt_perms) in aclent_perms() argument
73 if (perm & S_IROTH) in aclent_perms()
77 if (perm & S_IWOTH) in aclent_perms()
81 if (perm & S_IXOTH) in aclent_perms()
182 char perm[4]; in aclent_printacl() local
197 aclent_perms(tp->a_perm, perm); in aclent_printacl()
199 pruname(tp->a_id, uidp, sizeof (uidp), 0), perm); in aclent_printacl()
200 aclent_perms((tp->a_perm & mask), perm); in aclent_printacl()
201 (void) printf("#effective:%s\n", perm); in aclent_printacl()
205 aclent_perms(tp->a_perm, perm); in aclent_printacl()
831 aclent_perm_txt(dynaclstr_t * dstr,o_mode_t perm) aclent_perm_txt() argument
[all...]
/titanic_51/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_nfs_acl.c689 ushort_t perm; in detail_aclent() local
695 perm = getxdr_u_short(); in detail_aclent()
699 detail_uname(id), detail_perm(perm)); in detail_aclent()
703 detail_perm(perm)); in detail_aclent()
707 detail_gname(id), detail_perm(perm)); in detail_aclent()
711 detail_perm(perm)); in detail_aclent()
715 detail_perm(perm)); in detail_aclent()
719 detail_perm(perm)); in detail_aclent()
723 detail_uname(id), detail_perm(perm)); in detail_aclent()
727 detail_perm(perm)); in detail_aclent()
791 detail_perm(ushort_t perm) detail_perm() argument
[all...]
/titanic_51/usr/src/cmd/fs.d/nfs/mountd/
H A Dmountd.c2288 int perm = 0; /* Set when "ro", "rw" or "root" is matched */ in check_client_old() local
2307 perm |= NFSAUTH_GROUPS; in check_client_old()
2318 if (perm & NFSAUTH_GROUPS) { in check_client_old()
2322 perm &= ~NFSAUTH_GROUPS; in check_client_old()
2332 perm |= NFSAUTH_RO; in check_client_old()
2340 perm |= NFSAUTH_RW; in check_client_old()
2359 perm |= NFSAUTH_ROOT; in check_client_old()
2360 perm |= NFSAUTH_UIDMAP | NFSAUTH_GIDMAP; in check_client_old()
2363 if (perm & NFSAUTH_GROUPS) { in check_client_old()
2367 perm in check_client_old()
2647 int perm = 0; /* Set when "ro", "rw" or "root" is matched */ check_client_new() local
[all...]
/titanic_51/usr/src/common/zfs/
H A Dzfs_deleg.c71 zfs_valid_permission_name(const char *perm) in zfs_valid_permission_name() argument
73 if (zfs_deleg_canonicalize_perm(perm)) in zfs_valid_permission_name()
76 return (permset_namecheck(perm, NULL, NULL)); in zfs_valid_permission_name()
80 zfs_deleg_canonicalize_perm(const char *perm) in zfs_deleg_canonicalize_perm() argument
86 if (strcmp(perm, zfs_deleg_perm_tab[i].z_perm) == 0) in zfs_deleg_canonicalize_perm()
87 return (perm); in zfs_deleg_canonicalize_perm()
90 prop = zfs_name_to_prop(perm); in zfs_deleg_canonicalize_perm()
/titanic_51/usr/src/cmd/mdb/common/modules/ipc/
H A Dipc.c79 ipcperm_print(uintptr_t addr, kipc_perm_t *perm) in ipcperm_print() argument
84 res = mdb_vread(&proj, sizeof (kproject_t), (uintptr_t)perm->ipc_proj); in ipcperm_print()
87 mdb_warn("failed to read kproject_t at %#p", perm->ipc_proj); in ipcperm_print()
89 mdb_printf("%0?p %5d %5d", addr, perm->ipc_ref, perm->ipc_id); in ipcperm_print()
90 if (perm->ipc_key) in ipcperm_print()
91 mdb_printf(" %8x", perm->ipc_key); in ipcperm_print()
94 mdb_printf(" %5#o", perm->ipc_mode & 07777); in ipcperm_print()
99 mdb_printf(" %5d %5d %5d %5d\n", perm->ipc_uid, perm in ipcperm_print()
108 kipc_perm_t perm; ipcperm() local
393 kipc_perm_t perm; ipcid_impl() local
442 findkey(uintptr_t addr,kipc_perm_t * perm,findkey_data_t * arg) findkey() argument
[all...]
/titanic_51/usr/src/uts/common/fs/zfs/
H A Ddsl_deleg.c107 const char *perm = nvpair_name(permpair); in dsl_deleg_can_allow() local
109 if (strcmp(perm, ZFS_DELEG_PERM_ALLOW) == 0) in dsl_deleg_can_allow()
112 if ((error = dsl_deleg_access(ddname, perm, cr)) != 0) in dsl_deleg_can_allow()
188 const char *perm = nvpair_name(permpair); in dsl_deleg_set_sync() local
192 perm, 8, 1, &n, tx) == 0); in dsl_deleg_set_sync()
194 "%s %s", whokey, perm); in dsl_deleg_set_sync()
238 const char *perm = nvpair_name(permpair); in dsl_deleg_unset_sync() local
241 (void) zap_remove(mos, jumpobj, perm, tx); in dsl_deleg_unset_sync()
249 "%s %s", whokey, perm); in dsl_deleg_unset_sync()
405 * there is no perm i
409 dsl_check_access(objset_t * mos,uint64_t zapobj,char type,char checkflag,void * valp,const char * perm) dsl_check_access() argument
429 dsl_check_user_access(objset_t * mos,uint64_t zapobj,const char * perm,int checkflag,cred_t * cr) dsl_check_user_access() argument
543 dsl_deleg_access_impl(dsl_dataset_t * ds,const char * perm,cred_t * cr) dsl_deleg_access_impl() argument
647 dsl_deleg_access(const char * dsname,const char * perm,cred_t * cr) dsl_deleg_access() argument
[all...]
/titanic_51/usr/src/lib/libast/common/uwin/
H A Dcrypt.c488 static void init_perm(C_block perm[64/CHUNKBITS][1<<CHUNKBITS], in init_perm()
500 perm[i][j].b[k>>3] |= 1<<(k&07); in init_perm()
513 static unsigned char perm[64], tmp32[32]; /* "static" for speed */ in init_des() local
525 perm[i] = 0; in init_des()
537 perm[i] = (unsigned char) k; in init_des()
540 prtab("pc1tab", perm, 8); in init_des()
542 init_perm(PC1ROT, perm, 8, 8); in init_des()
550 perm[i] = pc2inv[i] = 0; in init_des()
561 perm[i] = pc2inv[k]; in init_des()
564 prtab("pc2tab", perm, 8); in init_des()
[all …]
/titanic_51/usr/src/contrib/ast/src/lib/libast/uwin/
H A Dcrypt.c481 * Initialize "perm" to represent transformation "p", which rearranges
486 * "perm" must be all-zeroes on entry to this routine.
488 static void init_perm(C_block perm[64/CHUNKBITS][1<<CHUNKBITS], in init_perm()
500 perm[i][j].b[k>>3] |= 1<<(k&07); in init_perm()
513 static unsigned char perm[64], tmp32[32]; /* "static" for speed */ in init_des() local
525 perm[i] = 0; in init_des()
537 perm[i] = (unsigned char) k; in init_des()
540 prtab("pc1tab", perm, 8); in init_des()
542 init_perm(PC1ROT, perm, 8, 8); in init_des()
550 perm[ in init_des()
[all...]
/titanic_51/usr/src/contrib/ast/src/lib/libast/aso/
H A Daso-sem.c61 int perm;
82 perm = S_IRUSR|S_IWUSR;
87 if (strneq(path, "perm=", 5))
93 perm = strperm(tmp, NiL, perm);
106 if ((id = semget(key, size, IPC_CREAT|IPC_EXCL|perm)) >= 0)
127 else if ((id = semget(key, size, perm)) >= 0)
H A Daso-fcntl.c54 int perm;
89 perm = S_IRUSR|S_IWUSR;
95 if (strneq(path, "perm=", 5))
101 perm = strperm(tmp, NiL, perm);
120 if (fd >= 0 || (fd = open(path, O_RDWR|O_cloexec)) < 0 && (fd = open(path, O_CREAT|O_RDWR|O_cloexec, perm)) >= 0)
/titanic_51/usr/src/cmd/logadm/
H A Dlogadm-upgrade96 perm=$(${LS} -l ${f} | ${AWK} '{printf("%s %s:%s", $1, $3, $4)}')
98 msg_exit ${SMF_EXIT_ERR_FATAL} "${perm}"
100 if [ "${perm}" != "-r--r--r-- root:sys" ]; then
102 echo " expected -r--r--r-- root:sys but got ${perm}"
/titanic_51/usr/src/tools/protocmp/
H A Dprotocmp.c164 'T', "File Name", "Reloc/Sym name", "perm", "owner", "group", in print_header()
308 if (check_perm && (i->perm != j->perm)) in elem_compare()
322 char perm[12], ref_cnt[12]; in print_elem() local
351 perm[0] = '-'; in print_elem()
352 perm[1] = '\0'; in print_elem()
354 (void) snprintf(perm, sizeof (perm), "%o", e->perm); in print_elem()
366 check_sym && e->symsrc != NULL ? e->symsrc : "-", perm, in print_elem()
584 mode_t perm; set_values() local
[all...]
/titanic_51/usr/src/cmd/killall/
H A Dkillall.c45 char perm[] = "permission denied\n"; in main() local
48 (void) write(2, perm, sizeof (perm)-1); in main()
/titanic_51/usr/src/cmd/cmd-inet/usr.sbin/
H A Dndd.c148 ndd_perm2str(uint_t perm) in ndd_perm2str() argument
150 switch (perm) { in ndd_perm2str()
183 uint_t proto, perm; in print_ipadm2ndd() local
199 perm = atoi(rwtag); in print_ipadm2ndd()
208 perm = nimap->ndd_perm; in print_ipadm2ndd()
210 ndd_perm2str(perm)); in print_ipadm2ndd()
226 ndd_perm2str(perm)); in print_ipadm2ndd()
247 uint_t proto, perm = 0, flags = 0; in do_ipadm_getset() local
267 perm = nimap->ndd_perm; in do_ipadm_getset()
289 if (perm in do_ipadm_getset()
[all...]
/titanic_51/usr/src/cmd/filesync/
H A Dacls.c226 int type, perm, id; in show_acls() local
244 perm = list[i].a_perm; in show_acls()
286 *s++ = (perm & 04) ? 'r' : '-'; in show_acls()
287 *s++ = (perm & 02) ? 'w' : '-'; in show_acls()
288 *s++ = (perm & 01) ? 'x' : '-'; in show_acls()

12345