/security/keys/ |
D | permission.c | 43 if (gid_valid(key->gid) && key->perm & KEY_GRP_ALL) { in key_task_permission() 44 if (gid_eq(key->gid, cred->fsgid)) { in key_task_permission() 49 ret = groups_search(cred->group_info, key->gid); in key_task_permission()
|
D | process_keys.c | 228 keyring = keyring_alloc("_tid", new->uid, new->gid, new, in install_thread_keyring_to_cred() 275 keyring = keyring_alloc("_pid", new->uid, new->gid, new, in install_process_keyring_to_cred() 330 keyring = keyring_alloc("_ses", cred->uid, cred->gid, cred, in install_session_keyring_to_cred() 395 new_cred->thread_keyring->gid = new_cred->fsgid; in key_fsgid_changed() 871 name, old->uid, old->gid, old, in join_session_keyring() 926 new-> gid = old-> gid; in key_change_session_keyring()
|
D | keyctl.c | 684 from_kgid_munged(current_user_ns(), key->gid), in keyctl_describe_key() 887 kgid_t gid; in keyctl_chown_key() local 890 gid = make_kgid(current_user_ns(), group); in keyctl_chown_key() 894 if ((group != (gid_t) -1) && !gid_valid(gid)) in keyctl_chown_key() 921 if (group != (gid_t) -1 && !gid_eq(gid, key->gid) && !in_group_p(gid)) in keyctl_chown_key() 971 key->gid = gid; in keyctl_chown_key() 1609 !gid_eq(pcred->gid, mycred->egid) || in keyctl_session_to_parent()
|
D | key.c | 225 kuid_t uid, kgid_t gid, const struct cred *cred, in key_alloc() argument 294 key->gid = gid; in key_alloc()
|
D | proc.c | 237 from_kgid_munged(seq_user_ns(m), key->gid), in proc_keys_show()
|
D | keyring.c | 521 struct key *keyring_alloc(const char *description, kuid_t uid, kgid_t gid, in keyring_alloc() argument 531 uid, gid, cred, perm, flags, restrict_link); in keyring_alloc()
|
/security/tomoyo/ |
D | tomoyo.c | 361 static int tomoyo_path_chown(const struct path *path, kuid_t uid, kgid_t gid) in tomoyo_path_chown() argument 368 if (!error && gid_valid(gid)) in tomoyo_path_chown() 370 from_kgid(&init_user_ns, gid)); in tomoyo_path_chown()
|
D | audit.c | 201 from_kgid(&init_user_ns, stat->gid), in tomoyo_print_header() 210 from_kgid(&init_user_ns, stat->gid), in tomoyo_print_header()
|
D | condition.c | 743 stat->gid = inode->i_gid; in tomoyo_get_attributes() 1005 value = from_kgid(&init_user_ns, stat->gid); in tomoyo_condition()
|
D | common.h | 569 kgid_t gid; member
|
/security/integrity/evm/ |
D | evm_crypto.c | 149 gid_t gid; in hmac_add_misc() member 170 hmac_misc.gid = from_kgid(&init_user_ns, inode->i_gid); in hmac_add_misc()
|
/security/ |
D | commoncap.c | 760 { return !gid_eq(new->egid, old->gid); } in __is_setgid() 846 new->egid = new->gid; in cap_bprm_set_creds()
|
D | security.c | 1098 int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) in security_path_chown() argument 1102 return call_int_hook(path_chown, 0, path, uid, gid); in security_path_chown()
|
/security/apparmor/ |
D | lsm.c | 382 static int apparmor_path_chown(const struct path *path, kuid_t uid, kgid_t gid) in apparmor_path_chown() argument
|