Home
last modified time | relevance | path

Searched full:owner (Results 1 – 25 of 3724) sorted by relevance

12345678910>>...149

/freebsd/contrib/libarchive/cpio/test/
H A Dtest_owner_parse.c42 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 …]
H A Dtest_gcpio_compat.c70 "--no-preserve-owner", "1 block\n"); in DEFINE_TEST()
72 "--no-preserve-owner", "2 blocks\n"); in DEFINE_TEST()
74 "--no-preserve-owner", "2 blocks\n"); in DEFINE_TEST()
77 "--no-preserve-owner", "7 blocks\n"); in DEFINE_TEST()
80 "--no-preserve-owner", "1 block\n"); in DEFINE_TEST()
82 "--no-preserve-owner", "2 blocks\n"); in DEFINE_TEST()
84 "--no-preserve-owner", "2 blocks\n"); in DEFINE_TEST()
87 "--no-preserve-owner", "7 blocks\n"); in DEFINE_TEST()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/acl/off/
H A Ddosmode.ksh18 # information: Portions Copyright [yyyy] [name of copyright owner]
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
[all …]
H A Dposixmode.ksh18 # information: Portions Copyright [yyyy] [name of copyright owner]
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
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dcred.h79 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 Dt-shm.c35 ** owner -- create segment.
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);
101 ** owner -- create segment.
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);
[all …]
H A Dt-sem.c50 ** owner -- create semaphores.
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)
149 ** owner -- create semaphores.
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);
[all …]
H A Dshm.c30 ** owner -- create segment.
41 sm_shmstart(key, size, shmflg, shmid, owner)
46 bool owner; variable
54 if (owner)
69 sm_shmstop(shm, *shmid, owner);
82 ** owner -- delete segment.
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)
110 ** SM_SHMSETOWNER -- set owner/group/mode of shared memory segment.
H A Dnotify.c68 ** owner -- owner.
77 sm_notify_start(owner, flags) in sm_notify_start() argument
78 bool owner; in sm_notify_start()
84 if (owner)
95 ** owner -- 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 Dthr_umtx.c51 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/cddl/zfs/tests/acl/nontrivial/
H A Dzfs_acl_chmod_xattr_002_pos.ksh18 # information: Portions Copyright [yyyy] [name of copyright owner]
37 # owner/group/everyone are correct.
70 # owner@ group group_users other_users
79 set -A a_flag "owner@" "group@" "everyone@"
84 "owner/group/everyone while remove extended attributes are correct."
108 function logname #acl_target owner user
111 typeset owner=$2
116 if [[ $user == root || $owner == $user ]] then
123 function check_chmod_results #node flag acl_target owner g_usr o_usr
128 typeset owner=$4
[all …]
/freebsd/tests/sys/acl/
H A Dtools-nfs4.test41 > # 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 Dtools-nfs4-psarc.test41 > # 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/bin/chflags/
H A Dchflags.1109 set the nodump flag (owner or super-user only)
111 set the opaque flag (owner or super-user only)
121 set the user append-only flag (owner or super-user only)
123 set the archive flag (owner or super-user only)
125 set the user immutable flag (owner or super-user only)
127 set the hidden file attribute (owner or super-user only)
129 set the offline file attribute (owner or super-user only)
131 set the DOS, Windows and CIFS readonly flag (owner or super-user only)
133 set the sparse file attribute (owner or super-user only)
135 set the DOS, Windows and CIFS system flag (owner or super-user only)
[all …]
/freebsd/contrib/one-true-awk/testdir/
H A Dtest.data145 6bin:*:2:2:System Tools Owner:/bin:/dev/null
148 9sys:*:4:0:System Activity Owner:/usr/adm:/bin/sh
149 10adm:*:5:3:Accounting Files Owner:/usr/adm:/bin/sh
150 11lp:*:9:9:Print Spooler Owner:/var/spool/lp:/bin/sh
151 12auditor:*:11:0:Audit Activity Owner:/auditor:/bin/sh
152 13dbadmin:*:12:0:Security Database Owner:/dbadmin:/bin/sh
165 26rje:*:8:8:RJE Owner:/usr/spool/rje:
168 29man:*:99:995:On-line Manual Owner:/:
175 6b in * 2 2 System Tools Owner /bin /dev/null
178 9s ys * 4 0 System Activity Owner /usr/adm /bin/sh
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dpolicy.c17 * information: Portions Copyright [yyyy] [name of copyright owner]
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()
145 * Determine if subject can chown owner of a file.
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
[all …]
/freebsd/usr.sbin/memcontrol/
H A Dmemcontrol.c81 " set -b <base> -l <length> -o <owner> <attribute>\n"
84 " <owner> text identifier for this setting (7 char max)\n"
94 " clear -o <owner>\n"
95 " <owner> all ranges with this owner will be cleared\n"
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()
[all …]
/freebsd/contrib/sendmail/libsmutil/
H A Dt-lockfile.c28 ** owner -- create file?
38 openfile(owner, filename, flags) in openfile() argument
39 int owner; in openfile()
45 if (owner)
50 fprintf(stderr, "%d: %ld: owner=%d, open(%s) failed\n",
51 (int) pid, (long) time(NULL), owner, filename);
77 fprintf(stderr, "%d: %ld: owner=1, write(%s)=fail\n",
106 fprintf(stderr, "%d: %ld: owner=0, read()=fail\n",
112 fprintf(stderr, "%d: %ld: owner=0, read=%s expected=%s\n",
123 ** owner -- create file?
[all …]
/freebsd/contrib/libarchive/cpio/
H A Dcmdline.c62 { "no-preserve-owner", 0, OPTION_NO_PRESERVE_OWNER },
65 { "owner", 1, 'R' },
69 { "preserve-owner", 0, OPTION_PRESERVE_OWNER },
270 * Parse the argument to the -R or --owner flag.
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()
[all …]
/freebsd/sys/contrib/ck/include/
H A Dck_bytelock.h46 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()
166 * If there is no owner at this point, our slot has in ck_bytelock_read_lock()
170 if (ck_pr_load_uint(&bytelock->owner) == 0) in ck_bytelock_read_lock()
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_policy.c127 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()
235 * If not the owner of the file then check privilege in secpolicy_vnode_setattr()
238 * to add the set-uid bit, if we're not the owner. in secpolicy_vnode_setattr()
257 * To change the owner of a file, or change the group of in secpolicy_vnode_setattr()
[all …]
/freebsd/share/mk/
H A Dbsd.own.mk2 # The include file <bsd.own.mk> set common variables for owner,
18 # BINOWN Binary owner. [root]
36 # LIBOWN Library owner. [${BINOWN}]
51 # KMODOWN Kernel and KLD owner. [${BINOWN}]
60 # EFIOWN EFIDIR owner. [root]
70 # SHAREOWN ASCII text file owner. [root]
79 # CONFOWN Configuration file owner. [root]
86 # DIROWN Directory owner. [root]
96 # DOCOWN Documentation owner. [${SHAREOWN}]
106 # INFOOWN Info owner. [${SHAREOWN}]
[all …]
/freebsd/lib/libsys/
H A Dchown.236 .Nd change owner and group of a file
42 .Fn chown "const char *path" "uid_t owner" "gid_t group"
44 .Fn fchown "int fd" "uid_t owner" "gid_t group"
46 .Fn lchown "const char *path" "uid_t owner" "gid_t group"
48 .Fn fchownat "int fd" "const char *path" "uid_t owner" "gid_t group" "int flag"
50 The owner ID and group ID of the file
56 .Fa owner
59 The owner of a file may change the
64 .Fa owner
157 One of the owner or group id's
/freebsd/sys/kern/
H A Dkern_umtx.c916 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/bin/chmod/
H A Dchmod.1116 Only the owner of a file or the super-user is permitted to change
129 will run with effective uid set to the uid of the file owner.
131 sub-directories created in them to be owned by the directory owner
142 will run with effective gid set to the gid of the file owner.
150 Allow read by owner.
152 Allow write by owner.
154 For files, allow execution by owner.
155 For directories, allow the owner to
176 the owner, read and execute by group members, read and execute by
270 value is specified, the owner, group
[all …]

12345678910>>...149