Home
last modified time | relevance | path

Searched refs:uid_t (Results 1 – 25 of 104) sorted by relevance

12345

/Linux-v6.6/kernel/
Duid16.h5 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);
Dsys.c529 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-v6.6/include/linux/
Duidgid.h22 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 …]
Dmnt_idmapping.h15 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()
Dhighuid.h53 #define low2highuid(uid) ((uid) == (old_uid_t)-1 ? (uid_t)-1 : (uid_t)(uid))
Dsyscalls.h429 asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user,
431 asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group);
652 asmlinkage long sys_setreuid(uid_t ruid, uid_t euid);
653 asmlinkage long sys_setuid(uid_t uid);
654 asmlinkage long sys_setresuid(uid_t ruid, uid_t euid, uid_t suid);
655 asmlinkage long sys_getresuid(uid_t __user *ruid, uid_t __user *euid, uid_t __user *suid);
658 asmlinkage long sys_setfsuid(uid_t uid);
982 uid_t user, gid_t group);
986 uid_t user, gid_t group);
1173 int ksys_fchown(unsigned int fd, uid_t user, gid_t group);
[all …]
/Linux-v6.6/tools/perf/util/
Dthread_map.h14 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);
Dthread_map.c75 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-v6.6/fs/
Dmnt_idmapping.c100 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()
Dnsfs.c194 uid_t __user *argp; in ns_ioctl()
195 uid_t uid; in ns_ioctl()
210 argp = (uid_t __user *) arg; in ns_ioctl()
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dbpf_iter_tcp4.c75 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()
Dbpf_iter.h94 uid_t uid;
105 uid_t uid __attribute__((aligned(8)));
117 uid_t uid;
Dbpf_iter_tcp6.c75 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()
Dprofiler.h66 uid_t uid;
114 uid_t parent_uid;
/Linux-v6.6/tools/testing/selftests/rlimits/
Drlimits-per-userns.c27 static uid_t user = 60000;
28 static uid_t group = 60000;
/Linux-v6.6/security/keys/
Dpersistent.c129 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()
Dinternal.h247 extern long keyctl_chown_key(key_serial_t, uid_t, gid_t);
267 extern long keyctl_get_persistent(uid_t, key_serial_t);
270 static inline long keyctl_get_persistent(uid_t uid, key_serial_t destring) in keyctl_get_persistent()
/Linux-v6.6/usr/
Dgen_init_cpio.c108 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-v6.6/tools/include/nolibc/
Dstd.h28 typedef unsigned int uid_t; typedef
Dsys.h152 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-v6.6/tools/testing/selftests/net/af_unix/
Ddiag_uid.c121 uid_t uid; in render_response()
130 uid = *(uid_t *)RTA_DATA(attr); in render_response()
/Linux-v6.6/fs/smb/client/
Dcifs_spnego.c104 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-v6.6/tools/testing/selftests/capabilities/
Dtest_execve.c89 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-v6.6/tools/testing/selftests/cgroup/
Dtest_cpuset.c69 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()
/Linux-v6.6/drivers/tty/
Dtty_audit.c66 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()

12345