/linux/kernel/ |
A D | uid16.c | 38 SYSCALL_DEFINE2(setregid16, old_gid_t, rgid, old_gid_t, egid) in SYSCALL_DEFINE2() argument 40 return __sys_setregid(low2highgid(rgid), low2highgid(egid)); in SYSCALL_DEFINE2() 81 SYSCALL_DEFINE3(setresgid16, old_gid_t, rgid, old_gid_t, egid, old_gid_t, sgid) in SYSCALL_DEFINE3() argument 83 return __sys_setresgid(low2highgid(rgid), low2highgid(egid), in SYSCALL_DEFINE3() 91 old_gid_t rgid, egid, sgid; in SYSCALL_DEFINE3() local 94 egid = high2lowgid(from_kgid_munged(cred->user_ns, cred->egid)); in SYSCALL_DEFINE3() 98 !(retval = put_user(egid, egidp))) in SYSCALL_DEFINE3()
|
A D | sys.c | 366 kegid = make_kgid(ns, egid); in __sys_setregid() 387 if (egid != (gid_t) -1) { in __sys_setregid() 392 new->egid = kegid; in __sys_setregid() 399 new->sgid = new->egid; in __sys_setregid() 400 new->fsgid = new->egid; in __sys_setregid() 750 kegid = make_kgid(ns, egid); in __sys_setresgid() 780 if (egid != (gid_t) -1) in __sys_setresgid() 781 new->egid = kegid; in __sys_setresgid() 784 new->fsgid = new->egid; in __sys_setresgid() 806 gid_t rgid, egid, sgid; in SYSCALL_DEFINE3() local [all …]
|
A D | uid16.h | 8 long __sys_setregid(gid_t rgid, gid_t egid); 10 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid);
|
A D | cred.c | 52 .egid = GLOBAL_ROOT_GID, 326 new->sgid = new->fsgid = new->egid; in prepare_exec_creds() 468 !gid_eq(old->egid, new->egid) || in commit_creds() 514 !gid_eq(new->egid, old->egid) || in commit_creds() 861 from_kgid_munged(&init_user_ns, cred->egid), in dump_invalid_creds()
|
A D | groups.c | 231 if (!gid_eq(grp, cred->egid)) in in_egroup_p()
|
A D | auditsc.c | 392 return audit_compare_gid(cred->egid, name, f, ctx); in audit_field_compare() 433 return audit_gid_comparator(cred->gid, f->op, cred->egid); in audit_field_compare() 440 return audit_gid_comparator(cred->egid, f->op, cred->sgid); in audit_field_compare() 442 return audit_gid_comparator(cred->egid, f->op, cred->fsgid); in audit_field_compare() 524 result = audit_gid_comparator(cred->egid, f->op, f->gid); in audit_filter_rules() 998 ctx->gid = ctx->egid = ctx->sgid = ctx->fsgid = KGIDT_INIT(0); in audit_reset_context() 1630 from_kgid(&init_user_ns, cred->egid), in audit_log_uring()
|
A D | audit.h | 138 kgid_t gid, egid, sgid, fsgid; member
|
A D | user_namespace.c | 73 kgid_t group = new->egid; in create_user_ns() 1165 gid_eq(gid, cred->egid)) in new_idmap_permitted()
|
A D | ptrace.c | 336 gid_eq(caller_gid, tcred->egid) && in __ptrace_may_access()
|
/linux/arch/s390/kernel/ |
A D | compat_linux.h | 94 long compat_sys_s390_setregid16(u16 rgid, u16 egid); 100 long compat_sys_s390_setresgid16(u16 rgid, u16 egid, u16 sgid); 101 long compat_sys_s390_getresgid16(u16 __user *rgid, u16 __user *egid, u16 __user *sgid);
|
/linux/security/safesetid/ |
A D | lsm.c | 163 if (gid_eq(new_id.gid, old->gid) || gid_eq(new_id.gid, old->egid) || in id_permitted_for_cred() 183 __kgid_val(old->gid), __kgid_val(old->egid), in id_permitted_for_cred() 230 id_permitted_for_cred(old, (kid_t){.gid = new->egid}, GID) && in safesetid_task_fix_setgid()
|
/linux/include/linux/ |
A D | cred.h | 124 kgid_t egid; /* effective GID of the task */ member 384 #define current_egid() (current_cred_xxx(egid)) 417 *(_egid) = __cred->egid; \
|
A D | syscalls.h | 748 asmlinkage long sys_setregid(gid_t rgid, gid_t egid); 754 asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); 755 asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid); 1216 asmlinkage long sys_setregid16(old_gid_t rgid, old_gid_t egid); 1223 asmlinkage long sys_setresgid16(old_gid_t rgid, old_gid_t egid, old_gid_t sgid); 1225 old_gid_t __user *egid, old_gid_t __user *sgid);
|
/linux/arch/alpha/kernel/ |
A D | asm-offsets.c | 32 DEFINE(CRED_EGID, offsetof(struct cred, egid)); in foo()
|
/linux/include/uapi/linux/ |
A D | cn_proc.h | 94 __u32 egid; member
|
/linux/Documentation/ABI/testing/ |
A D | ima_policy | 26 [uid=] [euid=] [gid=] [egid=] 45 egid:= decimal value
|
/linux/ipc/ |
A D | util.c | 281 kgid_t egid; in ipc_addid() local 299 current_euid_egid(&euid, &egid); in ipc_addid() 301 new->gid = new->cgid = egid; in ipc_addid()
|
/linux/drivers/connector/ |
A D | cn_proc.c | 146 ev->event_data.id.e.egid = from_kgid_munged(&init_user_ns, cred->egid); in proc_id_connector()
|
/linux/security/ |
A D | commoncap.c | 836 { return !gid_eq(new->egid, old->gid); } in __is_setgid() 926 new->egid = new->gid; in cap_bprm_creds_from_file() 933 new->sgid = new->fsgid = new->egid; in cap_bprm_creds_from_file()
|
/linux/security/keys/ |
A D | keyctl.c | 1680 !gid_eq(pcred->gid, mycred->egid) || in keyctl_session_to_parent() 1681 !gid_eq(pcred->egid, mycred->egid) || in keyctl_session_to_parent() 1682 !gid_eq(pcred->sgid, mycred->egid)) in keyctl_session_to_parent()
|
A D | process_keys.c | 933 new-> egid = old-> egid; in key_change_session_keyring()
|
/linux/net/core/ |
A D | scm.c | 58 ((gid_eq(gid, cred->gid) || gid_eq(gid, cred->egid) || in scm_check_creds()
|
/linux/fs/proc/ |
A D | array.c | 188 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->egid)); in task_state()
|
/linux/security/integrity/ima/ |
A D | ima_policy.c | 597 if (!rule->gid_op(cred->egid, rule->gid) in ima_match_rules() 601 } else if (!rule->gid_op(cred->egid, rule->gid)) in ima_match_rules()
|
/linux/fs/ |
A D | binfmt_elf_fdpic.c | 659 NEW_AUX_ENT(AT_EGID, (elf_addr_t) from_kgid_munged(cred->user_ns, cred->egid)); in create_elf_fdpic_tables()
|