Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/uts/common/os/
H A Dipc.c805 *perm = result; in ipc_lookup()
821 perm->ipc_ref++; in ipc_hold()
932 *permp = perm; in ipc_keylookup()
1011 if (perm) { in ipc_get()
1030 perm->ipc_cuid = perm->ipc_uid = crgetuid(cr); in ipc_get()
1031 perm->ipc_cgid = perm->ipc_gid = crgetgid(cr); in ipc_get()
1037 *permp = perm; in ipc_get()
1314 for (perm = list_head(&service->ipcs_usedids); perm != NULL; in ipc_ids()
1315 perm = list_next(&service->ipcs_usedids, perm)) { in ipc_ids()
1357 for (perm = list_head(&service->ipcs_usedids); perm != NULL; in ipc_remove_zone()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dstrperm.c54 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()
165 perm &= ~who; in strperm()
167 perm = 0; in strperm()
171 perm |= typ; in strperm()
175 perm &= ~typ; in strperm()
179 perm &= typ; in strperm()
[all …]
H A Dfmtperm.c47 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()
69 if (perm & S_IRGRP) in fmtperm()
71 if (perm & S_IWGRP) in fmtperm()
73 if (perm & S_IXGRP) in fmtperm()
83 if (perm & S_IROTH) in fmtperm()
85 if (perm & S_IWOTH) in fmtperm()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/delegate/
H A Ddelegate_common.kshlib93 typeset perm
137 typeset perm
162 typeset perm=$2
166 case $perm in
202 typeset perm=$2
206 case $perm in
303 typeset perm=$2
307 case $perm in
379 typeset perm=$2
408 typeset perm=$2
[all …]
/illumos-gate/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 )
/illumos-gate/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')
/illumos-gate/usr/src/test/smbclient-tests/tests/smbmount/
H A Dtp_smbmount_011.ksh63 perm=$(cd $TMNT; ls -l a|awk '{ print $1}')
64 if [[ $perm != "-rwxr--r--" && $perm != "-rwxr--r--+" ]]; then
65 tet_infoline "ls expect get 744 permission, but get $perm"
74 perm=$(cd $TMNT; ls -ld d|awk '{ print $1}')
75 if [[ $perm != "drwxr-xr-x" && $perm != "drwxr-xr-x+" ]]; then
76 tet_infoline "ls expect get 755 permission, but get $perm"
H A Dtp_smbmount_012.ksh69 perm=$(ls -ld $TMNT |awk '{ print $1}')
70 if [[ $perm != "dr-xr-----" && $perm != "dr-xr-----+" ]]; then
71 cti_fail "FAIL: the expect result is get 540 permission, but get $perm"
/illumos-gate/usr/src/cmd/power/
H A Dconf.c259 if (!pm_status.perm) { in update_cprconfig()
264 } else if (!cpr_status.perm) { in update_cprconfig()
418 if (cip->status->perm) in search()
439 cpr_status.perm, cpr_status.update, in write_conf()
440 pm_status.perm, pm_status.update); in write_conf()
455 if (cpr_status.perm && pm_status.perm) in write_conf()
531 ruid, cpr_status.perm, pm_status.perm); in main()
533 if ((!cpr_status.perm && !pm_status.perm) || in main()
534 (rflag && !(cpr_status.perm && pm_status.perm))) in main()
541 if (pm_status.perm) in main()
[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_src, cip->alt); in parse_conf_file()
/illumos-gate/usr/src/lib/libsec/common/
H A Dacltext.c73 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()
205 aclent_perms(tp->a_perm, perm); in aclent_printacl()
209 aclent_perms(tp->a_perm, perm); in aclent_printacl()
216 aclent_perms(tp->a_perm, perm); in aclent_printacl()
835 if (perm & S_IROTH) in aclent_perm_txt()
839 if (perm & S_IWOTH) in aclent_perm_txt()
[all …]
/illumos-gate/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()
703 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()
727 detail_perm(perm)); in detail_aclent()
735 detail_perm(perm)); in detail_aclent()
739 detail_perm(perm)); in detail_aclent()
743 detail_perm(perm)); in detail_aclent()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dmountd.c2441 perm |= NFSAUTH_RO; in check_client_old()
2449 perm |= NFSAUTH_RW; in check_client_old()
2468 perm |= NFSAUTH_ROOT; in check_client_old()
2673 perm |= NFSAUTH_RW; in check_client_old()
2681 if (perm & NFSAUTH_RO && perm & NFSAUTH_RW) { in check_client_old()
2695 return (perm); in check_client_old()
2804 perm |= NFSAUTH_RO; in check_client_new()
2815 perm |= NFSAUTH_RW; in check_client_new()
3052 perm |= NFSAUTH_RW; in check_client_new()
3060 if (perm & NFSAUTH_RO && perm & NFSAUTH_RW) { in check_client_new()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/ipc/
H A Dipc.c89 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->ipc_gid, in ipcperm_print()
100 perm->ipc_cuid, perm->ipc_cgid); in ipcperm_print()
108 kipc_perm_t perm; in ipcperm() local
121 ipcperm_print(addr, &perm); in ipcperm()
392 kipc_perm_t perm; in ipcid_impl() local
425 if (perm.ipc_id != (uint_t)id) in ipcid_impl()
[all …]
/illumos-gate/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()
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()
439 ZFS_DELEG_USER, checkflag, &id, perm) == 0) in dsl_check_user_access()
445 ZFS_DELEG_GROUP, checkflag, &id, perm) == 0) in dsl_check_user_access()
[all …]
/illumos-gate/usr/src/common/zfs/
H A Dzfs_deleg.c83 zfs_valid_permission_name(const char *perm) in zfs_valid_permission_name() argument
85 if (zfs_deleg_canonicalize_perm(perm)) in zfs_valid_permission_name()
88 return (permset_namecheck(perm, NULL, NULL)); in zfs_valid_permission_name()
92 zfs_deleg_canonicalize_perm(const char *perm) in zfs_deleg_canonicalize_perm() argument
98 if (strcmp(perm, zfs_deleg_perm_tab[i].z_perm) == 0) in zfs_deleg_canonicalize_perm()
99 return (perm); in zfs_deleg_canonicalize_perm()
102 prop = zfs_name_to_prop(perm); in zfs_deleg_canonicalize_perm()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/
H A Dcrypt.c525 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()
588 prtab("ietab", perm, 8); in init_des()
590 init_perm(IE3264, perm, 4, 8); in init_des()
602 perm[k-1] = i+1; in init_des()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/aso/
H A Daso-sem.c61 int perm;
82 perm = S_IRUSR|S_IWUSR;
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;
101 perm = strperm(tmp, NiL, perm);
120 … (fd = open(path, O_RDWR|O_cloexec)) < 0 && (fd = open(path, O_CREAT|O_RDWR|O_cloexec, perm)) >= 0)
/illumos-gate/usr/src/tools/protocmp/
H A Dprotocmp.c308 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; in set_values() local
658 perm = ep == NULL ? 0755 : ep->perm; in set_values()
659 if (set_perm && ((perm ^ sbp->st_mode) & ~S_IFMT) != 0) { in set_values()
661 (void) printf("chmod %lo %s\n", perm, fname); in set_values()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/
H A Dzfs_acl_chmod_inherit_003_pos.ksh127 typeset expacl perm inh act
165 perm=${expacl%:*}
166 inh=${perm##*:}
168 perm=${perm%:*}
176 expacl="$perm:$inh"
186 expacl="$perm:------I:$act"
/illumos-gate/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}"
/illumos-gate/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 == MOD_PROP_PERM_WRITE) in do_ipadm_getset()
[all …]
/illumos-gate/usr/src/cmd/killall/
H A Dkillall.c44 char perm[] = "permission denied\n"; in main() local
47 (void) write(2, perm, sizeof (perm)-1); in main()
/illumos-gate/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