Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 25 of 750) sorted by relevance

12345678910>>...30

/freebsd/contrib/pjdfstest/tests/chown/
H A D00.t30 expect 123,456 lstat ${n0} uid,gid
32 expect 0,0 lstat ${n0} uid,gid
35 uidgid=`${fstest} lstat ${n1} uid,gid`
37 expect 123,456 stat ${n1} uid,gid
38 expect 123,456 stat ${n0} uid,gid
39 expect ${uidgid} lstat ${n1} uid,gid
51 expect 123,456 lstat ${n0} uid,gid
66 expect 65534,65533 lstat ${n0} uid,gid
68 expect 65534,65532 lstat ${n0} uid,gid
70 expect 65534,65531 lstat ${n0} uid,gid
[all …]
H A D08.t28 expect 0,0 stat ${n0} uid,gid
31 expect 65534,65534 stat ${n0} uid,gid
37 expect 65534,65534 stat ${n0} uid,gid
46 expect 65534,65534 stat ${n0} uid,gid
54 expect 0,0 stat ${n0} uid,gid
57 expect 65534,65534 stat ${n0} uid,gid
63 expect 0,0 stat ${n0} uid,gid
66 expect 65534,65534 stat ${n0} uid,gid
72 expect 65534,65534 stat ${n0} uid,gid
79 expect 0,0 stat ${n0} uid,gid
[all …]
/freebsd/usr.bin/top/
H A Dusername.c42 int uid; member
57 username(int uid) in username() argument
61 hashindex = hashit(uid); in username()
62 if (is_empty_hash(hashindex) || (hash_table[hashindex].uid != uid)) in username()
65 hashindex = get_user(uid); in username()
93 enter_user(int uid, char name[], bool wecare) in enter_user() argument
98 fprintf(stderr, "enter_hash(%d, %s, %d)\n", uid, name, wecare); in enter_user()
101 hashindex = hashit(uid); in enter_user()
107 if (hash_table[hashindex].uid == uid) in enter_user()
112 hash_table[hashindex].uid = uid; in enter_user()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/c063/
H A Dt_fchownat.c56 static int getuser(uid_t *uid, gid_t *gid) in getuser() argument
63 *uid = pw->pw_uid; in getuser()
79 uid_t uid; in ATF_TC_BODY() local
83 ATF_REQUIRE(getuser(&uid, &gid) == 0); in ATF_TC_BODY()
89 ATF_REQUIRE(fchownat(dfd, BASEFILE, uid, gid, 0) == 0); in ATF_TC_BODY()
93 ATF_REQUIRE(st.st_uid == uid); in ATF_TC_BODY()
107 uid_t uid; in ATF_TC_BODY() local
111 ATF_REQUIRE(getuser(&uid, &gid) == 0); in ATF_TC_BODY()
117 ATF_REQUIRE(fchownat(AT_FDCWD, BASEFILE, uid, gid, 0) == 0); in ATF_TC_BODY()
120 ATF_REQUIRE(st.st_uid == uid); in ATF_TC_BODY()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/history/
H A Dhistory_009_pos.ksh109 uid=$($ID $HIST_USER | $AWK -F= '{print $2}'| $AWK -F"(" '{print $1}' )
125 "ul\$$uid" "allow" "-l -u $HIST_USER snapshot" \
126 "ul\$$uid" "allow" "-u $HIST_USER snapshot" \
127 "ul\$$uid" "unallow" "-u $HIST_USER snapshot" \
128 "Ul\$$uid" "allow" "-l -u $HIST_USER @set" \
129 "Ul\$$uid" "allow" "-u $HIST_USER @set" \
130 "Ul\$$uid" "unallow" "-u $HIST_USER @set" \
131 "ud\$$uid" "allow" "-d -u $HIST_USER snapshot" \
132 "ud\$$uid" "allow" "-u $HIST_USER snapshot" \
133 "ud\$$uid" "unallow" "-u $HIST_USER snapshot" \
[all …]
/freebsd/libexec/rc/
H A Drc.bsdextended72 ${CMD} add subject uid 0 object not uid 0 mode arxws;
82 ${CMD} add subject uid 3 object not uid 3 mode rxws;
92 ${CMD} add subject uid 25 object not uid 25 mode rxws;
97 ${CMD} add subject uid 26 object not uid 26 mode rxws;
112 ${CMD} add subject uid 65534 object not uid 65534 mode rxws;
120 do ${CMD} add subject uid $x object gid 6 mode arwxs;
129 do ${CMD} add subject not uid $x object uid $x mode n;
136 do ${CMD} add subject not gid $x object uid $x mode n;
/freebsd/usr.sbin/keyserv/
H A Dsetkey.c85 pk_setkey(uid_t uid, keybuf skey) in pk_setkey() argument
87 if (!storesecretkey(uid, skey)) { in pk_setkey()
98 pk_encrypt(uid_t uid, char *remote_name, netobj *remote_key, des_block *key) in pk_encrypt() argument
100 return (pk_crypt(uid, remote_name, remote_key, key, DES_ENCRYPT)); in pk_encrypt()
108 pk_decrypt(uid_t uid, char *remote_name, netobj *remote_key, des_block *key) in pk_decrypt() argument
110 return (pk_crypt(uid, remote_name, remote_key, key, DES_DECRYPT)); in pk_decrypt()
117 pk_netput(uid_t uid, key_netstarg *netstore) in pk_netput() argument
119 if (!store_netname(uid, netstore)) { in pk_netput()
126 pk_netget(uid_t uid, key_netstarg *netstore) in pk_netget() argument
128 if (!fetch_netname(uid, netstore)) { in pk_netget()
[all …]
H A Dkeyserv.c312 key_set_1_svc_prog(uid_t uid, keybuf key) in key_set_1_svc_prog() argument
317 (void) fprintf(stderr, "set(%u, %.*s) = ", uid, in key_set_1_svc_prog()
320 status = pk_setkey(uid, key); in key_set_1_svc_prog()
329 key_encrypt_pk_2_svc_prog(uid_t uid, cryptkeyarg2 *arg) in key_encrypt_pk_2_svc_prog() argument
334 (void) fprintf(stderr, "encrypt(%u, %s, %08x%08x) = ", uid, in key_encrypt_pk_2_svc_prog()
339 res.status = pk_encrypt(uid, arg->remotename, &(arg->remotekey), in key_encrypt_pk_2_svc_prog()
355 key_decrypt_pk_2_svc_prog(uid_t uid, cryptkeyarg2 *arg) in key_decrypt_pk_2_svc_prog() argument
360 (void) fprintf(stderr, "decrypt(%u, %s, %08x%08x) = ", uid, in key_decrypt_pk_2_svc_prog()
365 res.status = pk_decrypt(uid, arg->remotename, &(arg->remotekey), in key_decrypt_pk_2_svc_prog()
381 key_net_put_2_svc_prog(uid_t uid, key_netstarg *arg) in key_net_put_2_svc_prog() argument
[all …]
/freebsd/tests/sys/mac/portacl/
H A Dnobody_test.sh17 bind_test fl fl uid nobody tcp 77
18 bind_test ok ok uid nobody tcp 7777
19 bind_test fl fl uid nobody udp 77
20 bind_test ok ok uid nobody udp 7777
29 bind_test fl fl uid nobody tcp 77
30 bind_test ok ok uid nobody tcp 7777
31 bind_test fl fl uid nobody udp 77
32 bind_test ok ok uid nobody udp 7777
43 bind_test fl fl uid nobody tcp 77
44 bind_test fl ok uid nobody tcp 7777
[all …]
H A Droot_test.sh14 bind_test ok ok uid root tcp 77
15 bind_test ok ok uid root tcp 7777
16 bind_test ok ok uid root udp 77
17 bind_test ok ok uid root udp 7777
28 bind_test fl ok uid root tcp 77
29 bind_test ok ok uid root tcp 7777
30 bind_test fl ok uid root udp 77
31 bind_test ok ok uid root udp 7777
42 bind_test fl ok uid root tcp 77
43 bind_test fl ok uid root tcp 7777
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dcred.h77 struct user_namespace *fs_userns, uid_t uid) in zfs_uid_to_vfsuid() argument
82 return (uid); in zfs_uid_to_vfsuid()
92 return (uid); in zfs_uid_to_vfsuid()
94 uid = from_kuid(fs_userns, KUIDT_INIT(uid)); in zfs_uid_to_vfsuid()
95 if (uid == (uid_t)-1) in zfs_uid_to_vfsuid()
96 return (uid); in zfs_uid_to_vfsuid()
97 return (__kuid_val(make_kuid(owner, uid))); in zfs_uid_to_vfsuid()
125 struct user_namespace *fs_userns, uid_t uid) in zfs_vfsuid_to_uid() argument
130 return (uid); in zfs_vfsuid_to_uid()
140 return (uid); in zfs_vfsuid_to_uid()
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dt-sem.c132 drop_priv(uid, gid) in drop_priv() argument
133 uid_t uid; in drop_priv()
141 r = setuid(uid);
159 semtest(owner, uid, gid) in semtest() argument
161 uid_t uid;
167 if (!owner && uid != 0)
169 r = drop_priv(uid, gid);
185 if (uid != 0)
187 r = sm_semsetowner(semid, uid, gid, 0660);
193 r = drop_priv(uid, gid);
[all …]
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_qp.c134 qp->uid = MLX5_GET(create_qp_in, in, uid); in mlx5_core_create_qp()
149 MLX5_SET(destroy_qp_in, din, uid, qp->uid); in mlx5_core_create_qp()
167 MLX5_SET(destroy_qp_in, in, uid, qp->uid); in mlx5_core_destroy_qp()
207 struct mbox_info *mbox, u16 uid) in modify_qp_mbox_alloc() argument
219 MLX5_SET(typ##_in, in, uid, _uid); \ in modify_qp_mbox_alloc()
235 MOD_QP_IN_SET(qp_2rst, mbox->in, opcode, qpn, uid); in modify_qp_mbox_alloc()
240 MOD_QP_IN_SET(qp_2err, mbox->in, opcode, qpn, uid); in modify_qp_mbox_alloc()
248 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc()
254 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc()
260 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc()
[all …]
/freebsd/bin/pax/
H A Dcache.c166 name_uid(uid_t uid, int frc) in name_uid() argument
177 ptr = uidtb[uid % UID_SZ]; in name_uid()
178 if ((ptr != NULL) && (ptr->valid > 0) && (ptr->uid == uid)) { in name_uid()
195 ptr = uidtb[uid % UID_SZ] = (UIDC *)malloc(sizeof(UIDC)); in name_uid()
197 if ((pw = getpwuid(uid)) == NULL) { in name_uid()
204 ptr->uid = uid; in name_uid()
207 (unsigned long)uid); in name_uid()
216 ptr->uid = uid; in name_uid()
299 uid_name(char *name, uid_t *uid) in uid_name() argument
321 *uid = ptr->uid; in uid_name()
[all …]
/freebsd/crypto/openssh/openbsd-compat/
H A Dpwcache.c48 user_from_uid(uid_t uid, int nouser) in user_from_uid() argument
51 uid_t uid; in user_from_uid() member
59 cp = c_uid + (uid & MASK); in user_from_uid()
60 if (cp->uid != uid || cp->name == NULL) { in user_from_uid()
67 if ((pw = getpwuid(uid)) == NULL) { in user_from_uid()
70 (void)snprintf(nbuf, sizeof(nbuf), "%lu", (u_long)uid); in user_from_uid()
72 cp->uid = uid; in user_from_uid()
/freebsd/sys/fs/nfsclient/
H A Dnfs_kdtrace.h60 #define KDTRACE_NFS_ACCESSCACHE_GET_HIT(vp, uid, mode) do { \ argument
63 nfscl_accesscache_get_hit_id, (vp), (uid), \
67 #define KDTRACE_NFS_ACCESSCACHE_GET_MISS(vp, uid, mode) do { \ argument
70 nfscl_accesscache_get_miss_id, (vp), (uid), \
74 #define KDTRACE_NFS_ACCESSCACHE_LOAD_DONE(vp, uid, rmode, error) do { \ argument
77 nfscl_accesscache_load_done_id, (vp), (uid), \
109 #define KDTRACE_NFS_ACCESSCACHE_GET_HIT(vp, uid, mode) argument
110 #define KDTRACE_NFS_ACCESSCACHE_GET_MISS(vp, uid, mode) argument
111 #define KDTRACE_NFS_ACCESSCACHE_LOAD_DONE(vp, uid, rmode, error) argument
/freebsd/sys/nfs/
H A Dnfs_kdtrace.h52 #define KDTRACE_NFS_ACCESSCACHE_GET_HIT(vp, uid, mode) do { \ argument
55 nfsclient_accesscache_get_hit_id, (vp), (uid), \
59 #define KDTRACE_NFS_ACCESSCACHE_GET_MISS(vp, uid, mode) do { \ argument
62 nfsclient_accesscache_get_miss_id, (vp), (uid), \
66 #define KDTRACE_NFS_ACCESSCACHE_LOAD_DONE(vp, uid, rmode, error) do { \ argument
69 nfsclient_accesscache_load_done_id, (vp), (uid), \
109 #define KDTRACE_NFS_ACCESSCACHE_GET_HIT(vp, uid, mode) argument
110 #define KDTRACE_NFS_ACCESSCACHE_GET_MISS(vp, uid, mode) argument
111 #define KDTRACE_NFS_ACCESSCACHE_LOAD_DONE(vp, uid, rmode, error) argument
/freebsd/contrib/dialog/samples/
H A Dform29 uid=`echo "$ids" | sed -e 's/^uid=//' -e 's/ .*//'`
24 "1 UID:" 2 1 "$uid" 2 12 10 10 \
28 "2 UID:" 6 1 "$uid" 6 12 10 10 \
32 "3 UID:" 10 1 "$uid" 10 12 10 10 \
36 "4 UID:" 14 1 "$uid" 14 12 10 10 \
40 "5 UID:" 18 1 "$uid" 18 12 10 10 \
44 "6 UID:" 22 1 "$uid" 22 12 10 10 \
48 "7 UID:" 26 1 "$uid" 26 12 10 10 \
/freebsd/contrib/kyua/utils/
H A Dpasswd.cpp67 return F("name=%s, uid=%s, gid=%s") % user.name % user.uid % user.gid; in format_user()
82 uid(uid_), in user()
94 return uid == 0; in is_root()
153 passwd_ns::find_user_by_uid(const unsigned int uid) in find_user_by_uid() argument
156 const struct ::passwd* pw = ::getpwuid(uid); in find_user_by_uid()
159 "user with UID %s") % uid); in find_user_by_uid()
160 INV(pw->pw_uid == uid); in find_user_by_uid()
165 if ((*iter).uid == uid) in find_user_by_uid()
169 "user with UID %s") % uid); in find_user_by_uid()
/freebsd/usr.bin/login/
H A Dlogin_audit.c66 uid_t uid = pwd->pw_uid; in au_login_success() local
85 auinfo.ai_auid = uid; in au_login_success()
95 if ((tok = au_to_subject32(uid, geteuid(), getegid(), uid, gid, pid, in au_login_success()
118 uid_t uid; in au_login_fail() local
144 uid = pwd->pw_uid; in au_login_fail()
146 if ((tok = au_to_subject32(uid, geteuid(), getegid(), uid, in au_login_fail()
174 uid_t uid = pwd->pw_uid; in audit_logout() local
192 if ((tok = au_to_subject32(uid, geteuid(), getegid(), uid, gid, pid, in audit_logout()
/freebsd/contrib/pjdfstest/tests/link/
H A D00.t37 expect ${type},0201,3,65534,65533 lstat ${n0} type,mode,nlink,uid,gid
38 expect ${type},0201,3,65534,65533 lstat ${n1} type,mode,nlink,uid,gid
39 expect ${type},0201,3,65534,65533 lstat ${n2} type,mode,nlink,uid,gid
42 expect ENOENT lstat ${n0} type,mode,nlink,uid,gid
43 expect ${type},0201,2,65534,65533 lstat ${n1} type,mode,nlink,uid,gid
44 expect ${type},0201,2,65534,65533 lstat ${n2} type,mode,nlink,uid,gid
47 expect ENOENT lstat ${n0} type,mode,nlink,uid,gid
48 expect ${type},0201,1,65534,65533 lstat ${n1} type,mode,nlink,uid,gid
49 expect ENOENT lstat ${n2} type,mode,nlink,uid,gid
52 expect ENOENT lstat ${n0} type,mode,nlink,uid,gid
[all …]
/freebsd/contrib/libarchive/cpio/test/
H A Dtest_owner_parse.c43 owner->uid = -1; in free_cpio_owner()
59 assert(int_in_list(owner.uid, root_uids, in DEFINE_TEST()
65 assert(int_in_list(owner.uid, root_uids, in DEFINE_TEST()
72 assert(int_in_list(owner.uid, root_uids, in DEFINE_TEST()
79 assertEqualInt(111, owner.uid); in DEFINE_TEST()
84 assertEqualInt(112, owner.uid); in DEFINE_TEST()
89 assertEqualInt(113, owner.uid); in DEFINE_TEST()
94 assertEqualInt(-1, owner.uid); in DEFINE_TEST()
99 assertEqualInt(-1, owner.uid); in DEFINE_TEST()
104 assertEqualInt(116, owner.uid); in DEFINE_TEST()
/freebsd/contrib/pjdfstest/tests/granular/
H A D04.t23 expect 0,0 lstat ${n0} uid,gid
25 expect 0,0 lstat ${n0} uid,gid
28 expect 0,0 lstat ${n0} uid,gid
30 expect 0,65532 lstat ${n0} uid,gid
35 expect 0,0 lstat ${n0} uid,gid
37 expect 0,0 lstat ${n0} uid,gid
40 expect 0,0 lstat ${n0} uid,gid
42 expect 65534,65531 lstat ${n0} uid,gid
/freebsd/crypto/heimdal/kcm/
H A Dacl.c114 if (kcm_is_same_session(client, ccache->uid, ccache->session)) { in kcm_access()
121 if (client->uid == ccache->uid) { in kcm_access()
158 if (ccache->uid != client->uid) in kcm_chmod()
177 uid_t uid, in kcm_chown() argument
186 if (ccache->uid != client->uid) in kcm_chown()
194 ccache->uid = uid; in kcm_chown()
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DUserID.h33 UserID(lldb::user_id_t uid = LLDB_INVALID_UID) : m_uid(uid) {} in m_uid()
53 void SetID(lldb::user_id_t uid) { m_uid = uid; } in SetID()
65 IDMatches(lldb::user_id_t uid) : m_uid(uid) {} in IDMatches()
89 Stream &operator<<(Stream &strm, const UserID &uid);

12345678910>>...30