/linux-6.6.21/kernel/ |
D | uid16.h | 5 long __sys_setuid(uid_t uid); 7 long __sys_setreuid(uid_t ruid, uid_t euid); 9 long __sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); 11 long __sys_setfsuid(uid_t uid);
|
D | sys.c | 529 long __sys_setreuid(uid_t ruid, uid_t euid) in __sys_setreuid() 540 if ((ruid != (uid_t) -1) && !uid_valid(kruid)) in __sys_setreuid() 542 if ((euid != (uid_t) -1) && !uid_valid(keuid)) in __sys_setreuid() 551 if (ruid != (uid_t) -1) { in __sys_setreuid() 559 if (euid != (uid_t) -1) { in __sys_setreuid() 573 if (ruid != (uid_t) -1 || in __sys_setreuid() 574 (euid != (uid_t) -1 && !uid_eq(keuid, old->uid))) in __sys_setreuid() 594 SYSCALL_DEFINE2(setreuid, uid_t, ruid, uid_t, euid) in SYSCALL_DEFINE2() argument 610 long __sys_setuid(uid_t uid) in __sys_setuid() 657 SYSCALL_DEFINE1(setuid, uid_t, uid) in SYSCALL_DEFINE1() argument [all …]
|
/linux-6.6.21/include/linux/ |
D | uidgid.h | 22 uid_t val; 34 static inline uid_t __kuid_val(kuid_t uid) in __kuid_val() 44 static inline uid_t __kuid_val(kuid_t uid) in __kuid_val() 113 return __kuid_val(uid) != (uid_t) -1; in uid_valid() 123 extern kuid_t make_kuid(struct user_namespace *from, uid_t uid); 126 extern uid_t from_kuid(struct user_namespace *to, kuid_t uid); 128 extern uid_t from_kuid_munged(struct user_namespace *to, kuid_t uid); 133 return from_kuid(ns, uid) != (uid_t) -1; in kuid_has_mapping() 143 static inline kuid_t make_kuid(struct user_namespace *from, uid_t uid) in make_kuid() 153 static inline uid_t from_kuid(struct user_namespace *to, kuid_t kuid) in from_kuid() [all …]
|
D | mnt_idmapping.h | 15 uid_t val; 28 static inline uid_t __vfsuid_val(vfsuid_t uid) in __vfsuid_val() 38 static inline uid_t __vfsuid_val(vfsuid_t uid) in __vfsuid_val() 51 return __vfsuid_val(uid) != (uid_t)-1; in vfsuid_valid() 152 return from_kuid(userns, AS_KUIDT(vfsuid)) != (uid_t)-1; in vfsuid_has_mapping()
|
D | highuid.h | 53 #define low2highuid(uid) ((uid) == (old_uid_t)-1 ? (uid_t)-1 : (uid_t)(uid))
|
D | syscalls.h | 430 asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user, 432 asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group); 653 asmlinkage long sys_setreuid(uid_t ruid, uid_t euid); 654 asmlinkage long sys_setuid(uid_t uid); 655 asmlinkage long sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); 656 asmlinkage long sys_getresuid(uid_t __user *ruid, uid_t __user *euid, uid_t __user *suid); 659 asmlinkage long sys_setfsuid(uid_t uid); 983 uid_t user, gid_t group); 987 uid_t user, gid_t group); 1174 int ksys_fchown(unsigned int fd, uid_t user, gid_t group); [all …]
|
/linux-6.6.21/tools/perf/util/ |
D | thread_map.h | 14 struct perf_thread_map *thread_map__new_by_uid(uid_t uid); 16 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid); 20 const char *tid, uid_t uid, bool all_threads);
|
D | thread_map.c | 75 static struct perf_thread_map *__thread_map__new_all_cpus(uid_t uid) in __thread_map__new_all_cpus() 166 struct perf_thread_map *thread_map__new_by_uid(uid_t uid) in thread_map__new_by_uid() 171 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid) in thread_map__new() 294 uid_t uid, bool all_threads) in thread_map__new_str()
|
/linux-6.6.21/fs/ |
D | mnt_idmapping.c | 100 uid_t uid; in make_vfsuid() 109 if (uid == (uid_t)-1) in make_vfsuid() 167 uid_t uid; in from_vfsuid() 173 if (uid == (uid_t)-1) in from_vfsuid()
|
D | nsfs.c | 194 uid_t __user *argp; in ns_ioctl() 195 uid_t uid; in ns_ioctl() 210 argp = (uid_t __user *) arg; in ns_ioctl()
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_tcp4.c | 75 uid_t uid, __u32 seq_num) in dump_tcp_sock() 148 uid_t uid, __u32 seq_num) in dump_tw_sock() 173 uid_t uid, __u32 seq_num) in dump_req_sock() 203 uid_t uid = ctx->uid; in dump_tcp4()
|
D | bpf_iter.h | 94 uid_t uid; 105 uid_t uid __attribute__((aligned(8))); 117 uid_t uid;
|
D | bpf_iter_tcp6.c | 75 uid_t uid, __u32 seq_num) in dump_tcp6_sock() 153 uid_t uid, __u32 seq_num) in dump_tw_sock() 182 uid_t uid, __u32 seq_num) in dump_req_sock() 219 uid_t uid = ctx->uid; in dump_tcp6()
|
D | profiler.h | 66 uid_t uid; 114 uid_t parent_uid;
|
/linux-6.6.21/tools/testing/selftests/rlimits/ |
D | rlimits-per-userns.c | 27 static uid_t user = 60000; 28 static uid_t group = 60000;
|
/linux-6.6.21/security/keys/ |
D | persistent.c | 129 long keyctl_get_persistent(uid_t _uid, key_serial_t destid) in keyctl_get_persistent() 137 if (_uid == (uid_t)-1) { in keyctl_get_persistent()
|
D | internal.h | 256 extern long keyctl_chown_key(key_serial_t, uid_t, gid_t); 276 extern long keyctl_get_persistent(uid_t, key_serial_t); 279 static inline long keyctl_get_persistent(uid_t uid, key_serial_t destring) in keyctl_get_persistent()
|
/linux-6.6.21/usr/ |
D | gen_init_cpio.c | 108 unsigned int mode, uid_t uid, gid_t gid) in cpio_mkslink() 157 uid_t uid, gid_t gid) in cpio_mkgeneric() 245 uid_t uid, gid_t gid, char dev_type, in cpio_mknod() 323 unsigned int mode, uid_t uid, gid_t gid, in cpio_mkfile()
|
/linux-6.6.21/tools/include/nolibc/ |
D | std.h | 28 typedef unsigned int uid_t; typedef
|
D | sys.h | 152 int sys_chown(const char *path, uid_t owner, gid_t group) in sys_chown() 164 int chown(const char *path, uid_t owner, gid_t group) in chown() 366 uid_t sys_geteuid(void) in sys_geteuid() 376 uid_t geteuid(void) in geteuid() 505 uid_t sys_getuid(void) in sys_getuid() 515 uid_t getuid(void) in getuid()
|
/linux-6.6.21/tools/testing/selftests/net/af_unix/ |
D | diag_uid.c | 121 uid_t uid; in render_response() 130 uid = *(uid_t *)RTA_DATA(attr); in render_response()
|
/linux-6.6.21/fs/smb/client/ |
D | cifs_spnego.c | 104 UID_KEY_LEN + (sizeof(uid_t) * 2) + in cifs_get_spnego_key() 105 CREDUID_KEY_LEN + (sizeof(uid_t) * 2) + in cifs_get_spnego_key()
|
/linux-6.6.21/tools/testing/selftests/capabilities/ |
D | test_execve.c | 89 static bool create_and_enter_ns(uid_t inner_uid) in create_and_enter_ns() 91 uid_t outer_uid; in create_and_enter_ns() 234 uid_t gid = getegid(); in do_tests()
|
/linux-6.6.21/drivers/tty/ |
D | tty_audit.c | 66 uid_t uid = from_kuid(&init_user_ns, task_uid(current)); in tty_audit_log() 67 uid_t loginuid = from_kuid(&init_user_ns, audit_get_loginuid(current)); in tty_audit_log()
|
/linux-6.6.21/tools/testing/selftests/cgroup/ |
D | test_cpuset.c | 69 const uid_t test_euid = TEST_UID; in test_cpuset_perms_object() 171 const uid_t test_euid = TEST_UID; in test_cpuset_perms_subtree()
|