/freebsd/contrib/libarchive/cpio/test/ |
H A D | test_owner_parse.c | 42 free_cpio_owner(struct cpio_owner *owner) { in free_cpio_owner() argument 43 owner->uid = -1; in free_cpio_owner() 44 owner->gid = -1; in free_cpio_owner() 45 free(owner->uname); in free_cpio_owner() 46 free(owner->gname); in free_cpio_owner() 55 struct cpio_owner owner; in DEFINE_TEST() 58 assert(0 == owner_parse(ROOT, &owner, &errstr)); in DEFINE_TEST() 59 assert(int_in_list(owner.uid, root_uids, in DEFINE_TEST() 61 assertEqualInt(-1, owner.gid); in DEFINE_TEST() 62 free_cpio_owner(&owner); in DEFINE_TEST() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/acl/off/ |
H A D | dosmode.ksh | 68 owner=$ZFS_ACL_STAFF1 92 log_must user_run $owner touch $testfile 94 log_must user_run $owner $changeflags nouarch $testfile 97 log_must user_run $owner touch $testfile 102 log_must user_run $owner rm $testfile 113 log_must user_run $owner touch $testfile 114 log_must user_run $owner $changeflags hidden $testfile 117 log_must user_run $owner $changeflags 0 $testfile 120 log_must user_run $owner rm $testfile 132 log_must user_run $owner touch $testfile [all …]
|
H A D | posixmode.ksh | 58 owner=$ZFS_ACL_STAFF1 89 log_must user_run $owner touch $file 92 log_must user_run $owner rm $file 94 log_must user_run $owner touch $file 98 log_must user_run $owner touch $file 105 log_must user_run $owner mkdir $dir 107 log_must user_run $owner chmod 007 $dir 121 log_mustnot user_run $owner touch $file 123 log_must chown $owner:$group $file 125 log_mustnot user_run $owner rm $file
|
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | cred.h | 79 struct user_namespace *owner; in zfs_uid_to_vfsuid() local 87 owner = &ns; in zfs_uid_to_vfsuid() 89 owner = idmap_owner(mnt_userns); in zfs_uid_to_vfsuid() 91 if (zfs_no_idmapping(owner, fs_userns)) in zfs_uid_to_vfsuid() 97 return (__kuid_val(make_kuid(owner, uid))); in zfs_uid_to_vfsuid() 103 struct user_namespace *owner; in zfs_gid_to_vfsgid() local 111 owner = &ns; in zfs_gid_to_vfsgid() 113 owner = idmap_owner(mnt_userns); in zfs_gid_to_vfsgid() 115 if (zfs_no_idmapping(owner, fs_userns)) in zfs_gid_to_vfsgid() 121 return (__kgid_val(make_kgid(owner, gid))); in zfs_gid_to_vfsgid() [all …]
|
/freebsd/contrib/sendmail/libsm/ |
H A D | t-shm.c | 45 shminter(owner) in shminter() argument 46 bool owner; in shminter() 51 shm = (int *) sm_shmstart(T_SHMKEY, SHMSIZE, 0, &shmid, owner); 93 return sm_shmstop((void *) shm, shmid, owner); 112 shmbig(owner, size) in shmbig() argument 113 bool owner; in shmbig() 119 shm = (int *) sm_shmstart(T_SHMKEY, size, 0, &shmid, owner); 136 return sm_shmstop((void *) shm, shmid, owner); 156 shmtest(owner) in shmtest() argument 157 int owner; in shmtest() [all …]
|
H A D | t-sem.c | 58 seminter(owner) in seminter() argument 59 bool owner; in seminter() 64 semid = sm_sem_start(T_SM_SEM_KEY, SM_NSEM, 0, owner); 106 if (owner) 159 semtest(owner, uid, gid) in semtest() argument 160 int owner; in semtest() 167 if (!owner && uid != 0) 176 semid = sm_sem_start(T_SM_SEM_KEY, 1, 0, owner); 183 if (owner) 314 if (owner) [all …]
|
H A D | shm.c | 41 sm_shmstart(key, size, shmflg, shmid, owner) 46 bool owner; variable 54 if (owner) 69 sm_shmstop(shm, *shmid, owner); 94 sm_shmstop(shm, shmid, owner) in sm_shmstop() argument 97 bool owner; 103 if (owner && shmid >= 0 && (r = shmctl(shmid, IPC_RMID, NULL)) < 0)
|
H A D | notify.c | 77 sm_notify_start(owner, flags) in sm_notify_start() argument 78 bool owner; in sm_notify_start() 84 if (owner) 104 sm_notify_stop(owner, flags) in sm_notify_stop() argument 105 bool owner; in sm_notify_stop() 108 if (owner)
|
/freebsd/lib/libthr/thread/ |
H A D | thr_umtx.c | 51 uint32_t owner; in __thr_umutex_lock() local 57 owner = mtx->m_owner; in __thr_umutex_lock() 58 if ((owner & ~UMUTEX_CONTESTED) == 0 && in __thr_umutex_lock() 59 atomic_cmpset_acq_32(&mtx->m_owner, owner, id | owner)) in __thr_umutex_lock() 61 if (owner == UMUTEX_RB_OWNERDEAD && in __thr_umutex_lock() 62 atomic_cmpset_acq_32(&mtx->m_owner, owner, in __thr_umutex_lock() 65 if (owner == UMUTEX_RB_NOTRECOV) in __thr_umutex_lock() 78 uint32_t owner; in __thr_umutex_lock_spin() local 89 owner = mtx->m_owner; in __thr_umutex_lock_spin() 90 if ((owner & ~UMUTEX_CONTESTED) == 0 && in __thr_umutex_lock_spin() [all …]
|
/freebsd/tests/sys/acl/ |
H A D | tools-nfs4.test | 41 > # owner: root 43 > owner@:--x-----------:-------:deny 44 > owner@:rw-p---A-W-Co-:-------:allow 51 > owner@:--x-----------:-------:deny 52 > owner@:rw-p---A-W-Co-:-------:allow 61 > # owner: root 63 > owner@:execute::deny 64 > owner@:read_data/write_data/append_data/write_attributes/write_xattr/write_acl/write_… 74 > # owner: root 76 > owner@:--x-----------:-------:deny [all …]
|
H A D | tools-nfs4-psarc.test | 41 > # owner: root 43 > owner@:rw-p--aARWcCos:-------:allow 48 > owner@:rw-p--aARWcCos:-------:allow 55 > # owner: root 57 > owner@:read_data/write_data/append_data/read_attributes/write_attributes/read_xattr/w… 65 > # owner: root 67 > owner@:rw-p--aARWcCos:-------:allow 79 > # owner: root 81 > owner@:rw-p--aARWcCos:-------:allow 95 > # owner: root [all …]
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | policy.c | 109 secpolicy_vnode_access2(const cred_t *cr, struct inode *ip, uid_t owner, in secpolicy_vnode_access2() argument 122 secpolicy_vnode_any_access(const cred_t *cr, struct inode *ip, uid_t owner) in secpolicy_vnode_any_access() argument 124 if (crgetuid(cr) == owner) in secpolicy_vnode_any_access() 131 if (!kuid_has_mapping(cr->user_ns, SUID_TO_KUID(owner))) in secpolicy_vnode_any_access() 148 secpolicy_vnode_chown(const cred_t *cr, uid_t owner) in secpolicy_vnode_chown() argument 150 if (crgetuid(cr) == owner) in secpolicy_vnode_chown() 154 if (!kuid_has_mapping(cr->user_ns, SUID_TO_KUID(owner))) in secpolicy_vnode_chown() 185 secpolicy_vnode_setdac(const cred_t *cr, uid_t owner) in secpolicy_vnode_setdac() argument 187 if (crgetuid(cr) == owner) in secpolicy_vnode_setdac() 191 if (!kuid_has_mapping(cr->user_ns, SUID_TO_KUID(owner))) in secpolicy_vnode_setdac() [all …]
|
/freebsd/contrib/libarchive/cpio/ |
H A D | cmdline.c | 293 owner_parse(const char *spec, struct cpio_owner *owner, const char **errmsg) in owner_parse() argument 298 owner->uid = -1; in owner_parse() 299 owner->gid = -1; in owner_parse() 301 owner->uname = NULL; in owner_parse() 302 owner->gname = NULL; in owner_parse() 340 owner->uid = pwent->pw_uid; in owner_parse() 341 owner->uname = strdup(pwent->pw_name); in owner_parse() 342 if (owner->uname == NULL) { in owner_parse() 347 owner->gid = pwent->pw_gid; in owner_parse() 351 owner->uid = (int)strtoul(user, &end, 10); in owner_parse() [all …]
|
/freebsd/sys/contrib/ck/include/ |
H A D | ck_bytelock.h | 46 unsigned int owner; member 60 bytelock->owner = 0; in ck_bytelock_init() 88 while (ck_pr_cas_uint(&bytelock->owner, 0, slot) == false) in ck_bytelock_write_lock() 123 ck_pr_store_uint(&bytelock->owner, 0); in ck_bytelock_write_unlock() 131 if (ck_pr_load_uint(&bytelock->owner) == slot) { in ck_bytelock_read_lock() 134 ck_pr_store_uint(&bytelock->owner, 0); in ck_bytelock_read_lock() 143 if (ck_pr_load_uint(&bytelock->owner) == 0) in ck_bytelock_read_lock() 147 while (ck_pr_load_uint(&bytelock->owner) != 0) in ck_bytelock_read_lock() 170 if (ck_pr_load_uint(&bytelock->owner) == 0) in ck_bytelock_read_lock() 174 while (ck_pr_load_uint(&bytelock->owner) != 0) in ck_bytelock_read_lock()
|
/freebsd/usr.sbin/memcontrol/ |
H A D | memcontrol.c | 156 char *owner; in listfunc() local 158 owner = NULL; in listfunc() 165 owner = strdup(optarg); in listfunc() 177 if (owner && strcmp(mrd[i].mr_owner, owner)) in listfunc() 187 if (owner) in listfunc() 188 free(owner); in listfunc() 260 char *ep, *owner; in clearfunc() local 264 owner = NULL; in clearfunc() 280 owner = strdup(optarg); in clearfunc() 288 if (owner != NULL) { in clearfunc() [all …]
|
/freebsd/sys/kern/ |
H A D | kern_umtx.c | 916 u_long owner; in do_lock_umtx() local 932 owner = casuword(&umtx->u_owner, UMTX_UNOWNED, id); in do_lock_umtx() 935 if (owner == UMTX_UNOWNED) in do_lock_umtx() 939 if (owner == -1) in do_lock_umtx() 943 if (owner == UMTX_CONTESTED) { in do_lock_umtx() 944 owner = casuword(&umtx->u_owner, in do_lock_umtx() 947 if (owner == UMTX_CONTESTED) in do_lock_umtx() 951 if (owner == -1) in do_lock_umtx() 985 old = casuword(&umtx->u_owner, owner, owner | UMTX_CONTESTED); in do_lock_umtx() 1002 if (old == owner) in do_lock_umtx() [all …]
|
/freebsd/sys/cddl/compat/opensolaris/sys/ |
H A D | policy.h | 46 int secpolicy_vnode_owner(vnode_t *vp, cred_t *cr, uid_t owner); 47 int secpolicy_vnode_chown(vnode_t *vp, cred_t *cr, uid_t owner); 50 int secpolicy_vnode_access(cred_t *cr, vnode_t *vp, uid_t owner, 52 int secpolicy_vnode_access2(cred_t *cr, vnode_t *vp, uid_t owner, 54 int secpolicy_vnode_any_access(cred_t *cr, vnode_t *vp, uid_t owner); 55 int secpolicy_vnode_setdac(vnode_t *vp, cred_t *cr, uid_t owner); 69 int secpolicy_xvattr(vnode_t *vp, xvattr_t *xvap, uid_t owner, cred_t *cr,
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | policy.h | 46 int secpolicy_vnode_owner(vnode_t *vp, cred_t *cr, uid_t owner); 47 int secpolicy_vnode_chown(vnode_t *vp, cred_t *cr, uid_t owner); 50 int secpolicy_vnode_access(cred_t *cr, vnode_t *vp, uid_t owner, 52 int secpolicy_vnode_access2(cred_t *cr, vnode_t *vp, uid_t owner, 54 int secpolicy_vnode_any_access(cred_t *cr, vnode_t *vp, uid_t owner); 55 int secpolicy_vnode_setdac(vnode_t *vp, cred_t *cr, uid_t owner); 69 int secpolicy_xvattr(vnode_t *vp, xvattr_t *xvap, uid_t owner, cred_t *cr,
|
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
H A D | trace_zrlock.h | 46 TP_PROTO(zrlock_t *zrl, kthread_t *owner, uint32_t n), 47 TP_ARGS(zrl, owner, n), 59 __entry->owner_pid = owner ? owner->pid : 0; 77 TP_PROTO(zrlock_t *zrl, kthread_t *owner, uint32_t n), \ 78 TP_ARGS(zrl, owner, n))
|
/freebsd/sys/dev/smbus/ |
H A D | smbconf.c | 52 if (sc->owner) in smbus_intr() 53 SMBUS_INTR(sc->owner, devaddr, low, high, error); in smbus_intr() 135 if (sc->owner && sc->owner != dev) in smbus_request_bus() 138 sc->owner = dev; in smbus_request_bus() 172 if (sc->owner == dev) { in smbus_release_bus() 173 sc->owner = NULL; in smbus_release_bus()
|
/freebsd/tests/sys/cddl/zfs/tests/acl/nontrivial/ |
H A D | zfs_acl_chmod_xattr_002_pos.ksh | 111 typeset owner=$2 116 if [[ $user == root || $owner == $user ]] then 128 typeset owner=$4 134 log=$(logname $acl_target $owner $ZFS_ACL_CUR_USER) 138 log=$(logname $acl_target $owner $g_usr) 142 log=$(logname $acl_target $owner $o_usr) 150 typeset owner=$2 164 "$acl_t" "$owner" "$g_usr" "$o_usr"
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | spl_policy.c | 127 secpolicy_vnode_access(cred_t *cr, vnode_t *vp, uid_t owner, accmode_t accmode) in secpolicy_vnode_access() argument 156 secpolicy_vnode_access2(cred_t *cr, vnode_t *vp, uid_t owner, in secpolicy_vnode_access2() argument 166 return (secpolicy_vnode_access(cr, vp, owner, mode)); in secpolicy_vnode_access2() 170 secpolicy_vnode_any_access(cred_t *cr, vnode_t *vp, uid_t owner) in secpolicy_vnode_any_access() argument 185 if (owner == cr->cr_uid) in secpolicy_vnode_any_access() 208 secpolicy_vnode_setdac(vnode_t *vp, cred_t *cr, uid_t owner) in secpolicy_vnode_setdac() argument 211 if (owner == cr->cr_uid) in secpolicy_vnode_setdac() 383 secpolicy_vnode_owner(vnode_t *vp, cred_t *cr, uid_t owner) in secpolicy_vnode_owner() argument 386 if (owner == cr->cr_uid) in secpolicy_vnode_owner() 396 secpolicy_vnode_chown(vnode_t *vp, cred_t *cr, uid_t owner) in secpolicy_vnode_chown() argument [all …]
|
/freebsd/sys/compat/linux/ |
H A D | linux_futex.c | 365 uint32_t owner, old_owner; in linux_futex_lock_pi() local 400 rv = casueword32(args->uaddr, FUTEX_UNOWNED, &owner, em->em_tid); in linux_futex_lock_pi() 415 if (owner == FUTEX_UNOWNED) { in linux_futex_lock_pi() 433 if ((owner & FUTEX_TID_MASK) == em->em_tid) { in linux_futex_lock_pi() 442 if ((owner & FUTEX_TID_MASK) == FUTEX_UNOWNED) { in linux_futex_lock_pi() 443 old_owner = owner; in linux_futex_lock_pi() 444 owner = owner & (FUTEX_WAITERS | FUTEX_OWNER_DIED); in linux_futex_lock_pi() 445 owner |= em->em_tid; in linux_futex_lock_pi() 446 rv = casueword32(args->uaddr, old_owner, &owner, owner); in linux_futex_lock_pi() 477 (void)casuword32(args->uaddr, owner, old_owner); in linux_futex_lock_pi() [all …]
|
/freebsd/contrib/bearssl/T0/ |
H A D | WordNative.cs | 42 internal WordNative(T0Comp owner, string name, NativeRun code) in WordNative() argument 43 : base(owner, name) in WordNative() 48 internal WordNative(T0Comp owner, string name, in WordNative() argument 50 : this(owner, name, code) in WordNative()
|
/freebsd/usr.sbin/rpc.lockd/ |
H A D | kern.c | 69 static OWNER owner; variable 158 (void)time(&owner.tod); in client_request() 159 owner.pid = getpid(); in client_request() 275 arg4.alock.oh.n_bytes = (char *)&owner; in test_request() 276 arg4.alock.oh.n_len = sizeof(owner); in test_request() 299 arg.alock.oh.n_bytes = (char *)&owner; in test_request() 300 arg.alock.oh.n_len = sizeof(owner); in test_request() 345 arg4.alock.oh.n_bytes = (char *)&owner; in lock_request() 346 arg4.alock.oh.n_len = sizeof(owner); in lock_request() 370 arg.alock.oh.n_bytes = (char *)&owner; in lock_request() [all …]
|