Home
last modified time | relevance | path

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

/security/keys/
Dpermission.c50 if (key->gid != -1 && key->perm & KEY_GRP_ALL) { in key_task_permission()
51 if (key->gid == cred->fsgid) { in key_task_permission()
56 ret = groups_search(cred->group_info, key->gid); in key_task_permission()
Dprocess_keys.c131 keyring = keyring_alloc("_tid", new->uid, new->gid, new, in install_thread_keyring_to_cred()
177 keyring = keyring_alloc("_pid", new->uid, new->gid, in install_process_keyring_to_cred()
236 keyring = keyring_alloc("_ses", cred->uid, cred->gid, in install_session_keyring_to_cred()
305 tsk->cred->thread_keyring->gid = tsk->cred->fsgid; in key_fsgid_changed()
800 keyring = keyring_alloc(name, old->uid, old->gid, old, in join_session_keyring()
856 new-> gid = old-> gid; in key_replace_session_keyring()
Dkeyctl.c542 key->gid, in keyctl_describe_key()
738 long keyctl_chown_key(key_serial_t id, uid_t uid, gid_t gid) in keyctl_chown_key() argument
746 if (uid == (uid_t) -1 && gid == (gid_t) -1) in keyctl_chown_key()
769 if (gid != (gid_t) -1 && gid != key->gid && !in_group_p(gid)) in keyctl_chown_key()
818 if (gid != (gid_t) -1) in keyctl_chown_key()
819 key->gid = gid; in keyctl_chown_key()
1476 pcred->gid != mycred->egid || in keyctl_session_to_parent()
Dkey.c232 uid_t uid, gid_t gid, const struct cred *cred, in key_alloc() argument
300 key->gid = gid; in key_alloc()
Dproc.c257 key->gid, in proc_keys_show()
Dkeyring.c245 struct key *keyring_alloc(const char *description, uid_t uid, gid_t gid, in keyring_alloc() argument
253 uid, gid, cred, in keyring_alloc()
/security/tomoyo/
Dtomoyo.c376 static int tomoyo_path_chown(struct path *path, uid_t uid, gid_t gid) in tomoyo_path_chown() argument
381 if (!error && gid != (gid_t) -1) in tomoyo_path_chown()
382 error = tomoyo_path_number_perm(TOMOYO_TYPE_CHGRP, path, gid); in tomoyo_path_chown()
Daudit.c194 stat->uid, stat->gid, (unsigned long) in tomoyo_print_header()
201 stat->uid, stat->gid, (unsigned long) in tomoyo_print_header()
Dcondition.c721 stat->gid = inode->i_gid; in tomoyo_get_attributes()
979 value = stat->gid; in tomoyo_condition()
Dcommon.h565 gid_t gid; member
/security/integrity/evm/
Devm_crypto.c102 gid_t gid; in hmac_add_misc() member
110 hmac_misc.gid = inode->i_gid; in hmac_add_misc()
/security/
Dcommoncap.c531 new->egid != old->gid || in cap_bprm_set_creds()
538 new->egid = new->gid; in cap_bprm_set_creds()
601 cred->egid != cred->gid); in cap_bprm_secureexec()
Dsecurity.c453 int security_path_chown(struct path *path, uid_t uid, gid_t gid) in security_path_chown() argument
457 return security_ops->path_chown(path, uid, gid); in security_path_chown()
Dcapability.c307 static int cap_path_chown(struct path *path, uid_t uid, gid_t gid) in cap_path_chown() argument
/security/apparmor/
Dlsm.c355 static int apparmor_path_chown(struct path *path, uid_t uid, gid_t gid) in apparmor_path_chown() argument