Home
last modified time | relevance | path

Searched refs:suid (Results 1 – 25 of 29) sorted by relevance

12

/linux/kernel/
A Duid16.c58 SYSCALL_DEFINE3(setresuid16, old_uid_t, ruid, old_uid_t, euid, old_uid_t, suid) in SYSCALL_DEFINE3() argument
61 low2highuid(suid)); in SYSCALL_DEFINE3()
68 old_uid_t ruid, euid, suid; in SYSCALL_DEFINE3() local
72 suid = high2lowuid(from_kuid_munged(cred->user_ns, cred->suid)); in SYSCALL_DEFINE3()
76 retval = put_user(suid, suidp); in SYSCALL_DEFINE3()
A Dsys.c543 !uid_eq(old->suid, keuid) && in __sys_setreuid()
555 new->suid = new->euid; in __sys_setreuid()
608 new->suid = new->uid = kuid; in __sys_setuid()
655 ksuid = make_kuid(ns, suid); in __sys_setresuid()
695 if (suid != (uid_t) -1) in __sys_setresuid()
696 new->suid = ksuid; in __sys_setresuid()
716 return __sys_setresuid(ruid, euid, suid); in SYSCALL_DEFINE3()
723 uid_t ruid, euid, suid; in SYSCALL_DEFINE3() local
727 suid = from_kuid_munged(cred->user_ns, cred->suid); in SYSCALL_DEFINE3()
733 return put_user(suid, suidp); in SYSCALL_DEFINE3()
[all …]
A Dcred.c49 .suid = GLOBAL_ROOT_UID,
325 new->suid = new->fsuid = new->euid; in prepare_exec_creds()
509 !uid_eq(new->suid, old->suid) || in commit_creds()
857 from_kuid_munged(&init_user_ns, cred->suid), in dump_invalid_creds()
A Duid16.h9 long __sys_setresuid(uid_t ruid, uid_t euid, uid_t suid);
A Dauditsc.c396 return audit_compare_uid(cred->suid, name, f, ctx); in audit_field_compare()
410 return audit_uid_comparator(cred->uid, f->op, cred->suid); in audit_field_compare()
419 cred->suid); in audit_field_compare()
425 return audit_uid_comparator(cred->euid, f->op, cred->suid); in audit_field_compare()
430 return audit_uid_comparator(cred->suid, f->op, cred->fsuid); in audit_field_compare()
508 result = audit_uid_comparator(cred->suid, f->op, f->uid); in audit_filter_rules()
997 ctx->uid = ctx->euid = ctx->suid = ctx->fsuid = KUIDT_INIT(0); in audit_reset_context()
1628 from_kuid(&init_user_ns, cred->suid), in audit_log_uring()
A Daudit.h137 kuid_t uid, euid, suid, fsuid; member
A Dsignal.c817 return uid_eq(cred->euid, tcred->suid) || in kill_ok_by_cred()
819 uid_eq(cred->uid, tcred->suid) || in kill_ok_by_cred()
1502 return uid_eq(cred->euid, pcred->suid) || in kill_as_cred_perm()
1504 uid_eq(cred->uid, pcred->suid) || in kill_as_cred_perm()
A Dptrace.c334 uid_eq(caller_uid, tcred->suid) && in __ptrace_may_access()
A Daudit.c2212 from_kuid(&init_user_ns, cred->suid), in audit_log_task_info()
/linux/security/safesetid/
A Dlsm.c160 uid_eq(new_id.uid, old->suid)) in id_permitted_for_cred()
180 __kuid_val(old->suid), __kuid_val(new_id.uid)); in id_permitted_for_cred()
207 id_permitted_for_cred(old, (kid_t){.uid = new->suid}, UID) && in safesetid_task_fix_setuid()
/linux/arch/s390/kernel/
A Dcompat_linux.h98 long compat_sys_s390_setresuid16(u16 ruid, u16 euid, u16 suid);
99 long compat_sys_s390_getresuid16(u16 __user *ruid, u16 __user *euid, u16 __user *suid);
/linux/include/linux/
A Dcred.h121 kuid_t suid; /* saved UID of the task */ member
385 #define current_suid() (current_cred_xxx(suid))
A Dsyscalls.h752 asmlinkage long sys_setresuid(uid_t ruid, uid_t euid, uid_t suid);
753 asmlinkage long sys_getresuid(uid_t __user *ruid, uid_t __user *euid, uid_t __user *suid);
1220 asmlinkage long sys_setresuid16(old_uid_t ruid, old_uid_t euid, old_uid_t suid);
1222 old_uid_t __user *euid, old_uid_t __user *suid);
/linux/drivers/connector/
A DKconfig21 events such as fork, exec, id change (uid, gid, suid, etc), and exit.
/linux/Documentation/admin-guide/cifs/
A Dusage.rst93 utility as suid (e.g. ``chmod +s /sbin/mount.cifs``). To enable users to
102 Note that when the mount.cifs utility is run suid (allowing user mounts),
104 disallow execution of an suid program mounted on the remote target.
106 and execution of suid programs on the remote target would be enabled
109 though to be able to pass the suid flag to mount requires rebuilding
124 as suid (e.g. ``chmod +s /sbin/umount.cifs``) or equivalent (some distributions
126 equivalent suid effect). For this utility to succeed the target path
131 (instead of using mount.cifs and unmount.cifs as suid) to add a line
415 Do not allow remote executables with the suid bit
429 suid
[all …]
/linux/security/
A Dcommoncap.c932 new->suid = new->fsuid = new->euid; in cap_bprm_creds_from_file()
1093 uid_eq(old->suid, root_uid)) && in cap_emulate_setxuid()
1096 !uid_eq(new->suid, root_uid))) { in cap_emulate_setxuid()
/linux/Documentation/security/
A Dcredentials.rst420 uid_t task_cred_xxx(task, suid);
422 will retrieve 'struct cred::suid' from the task, doing the appropriate RCU
494 int alter_suid(uid_t suid)
503 new->suid = suid;
/linux/security/keys/
A Dprocess_keys.c930 new-> suid = old-> suid; in key_change_session_keyring()
A Dkeyctl.c1679 !uid_eq(pcred->suid, mycred->euid) || in keyctl_session_to_parent()
/linux/net/core/
A Dscm.c57 uid_eq(uid, cred->suid)) || ns_capable(cred->user_ns, CAP_SETUID)) && in scm_check_creds()
/linux/fs/
A Dfcntl.c726 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm()
727 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && in sigio_perm()
/linux/Documentation/filesystems/
A Dfuse.rst230 2. creating a filesystem containing a suid or sgid application, then executing this application
263 whole system. For example a suid application locking a
A Daffs.rst141 - All other flags (suid, sgid, ...) are ignored and will
/linux/fs/proc/
A Darray.c185 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->suid)); in task_state()
/linux/kernel/cgroup/
A Dcgroup-v1.c517 !uid_eq(cred->euid, tcred->suid)) in __cgroup1_procs_write()

Completed in 55 milliseconds

12