Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 14 of 14) sorted by relevance

/security/keys/
Dpermission.c43 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()
Dprocess_keys.c228 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()
Dkeyctl.c684 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()
Dkey.c225 kuid_t uid, kgid_t gid, const struct cred *cred, in key_alloc() argument
294 key->gid = gid; in key_alloc()
Dproc.c237 from_kgid_munged(seq_user_ns(m), key->gid), in proc_keys_show()
Dkeyring.c521 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/
Dtomoyo.c361 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()
Daudit.c201 from_kgid(&init_user_ns, stat->gid), in tomoyo_print_header()
210 from_kgid(&init_user_ns, stat->gid), in tomoyo_print_header()
Dcondition.c743 stat->gid = inode->i_gid; in tomoyo_get_attributes()
1005 value = from_kgid(&init_user_ns, stat->gid); in tomoyo_condition()
Dcommon.h569 kgid_t gid; member
/security/integrity/evm/
Devm_crypto.c149 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/
Dcommoncap.c760 { return !gid_eq(new->egid, old->gid); } in __is_setgid()
846 new->egid = new->gid; in cap_bprm_set_creds()
Dsecurity.c1098 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/
Dlsm.c382 static int apparmor_path_chown(const struct path *path, kuid_t uid, kgid_t gid) in apparmor_path_chown() argument