Home
last modified time | relevance | path

Searched defs:cred (Results 1 – 21 of 21) sorted by relevance

/security/keys/
Dprocess_keys.c46 const struct cred *cred; in install_user_keyrings() local
219 int install_session_keyring_to_cred(struct cred *cred, struct key *keyring) in install_session_keyring_to_cred()
326 const struct cred *cred) in search_my_process_keyrings()
443 const struct cred *cred) in search_process_keyrings()
526 const struct cred *cred; in lookup_user_key() local
Drequest_key.c74 static int umh_keys_init(struct subprocess_info *info, struct cred *cred) in umh_keys_init()
116 const struct cred *cred = current_cred(); in call_sbin_request_key() local
274 const struct cred *cred = current_cred(); in construct_get_dest_keyring() local
355 const struct cred *cred = current_cred(); in construct_alloc_key() local
532 const struct cred *cred = current_cred(); in request_key_and_link() local
Drequest_key_auth.c137 const struct cred *cred = current->cred; in request_key_auth_new() local
242 const struct cred *cred = current_cred(); in key_get_instantiation_authkey() local
Dpermission.c30 int key_task_permission(const key_ref_t key_ref, const struct cred *cred, in key_task_permission()
Dkey.c225 kuid_t uid, kgid_t gid, const struct cred *cred, in key_alloc()
785 const struct cred *cred = current_cred(); in key_create_or_update() local
Dkeyctl.c1017 const struct cred *cred = current_cred(); in keyctl_instantiate_key_common() local
1191 const struct cred *cred = current_cred(); in keyctl_reject_key() local
1482 struct cred *cred; in keyctl_session_to_parent() local
Dkeyring.c260 const struct cred *cred, key_perm_t perm, in keyring_alloc()
317 const struct cred *cred, in keyring_search_aux()
Dinternal.h188 const struct cred *cred; member
Dproc.c185 const struct cred *cred = current_cred(); in proc_keys_show() local
/security/
Dcommoncap.c80 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable()
155 const struct cred *cred, *child_cred; in cap_ptrace_access_check() local
187 const struct cred *cred, *child_cred; in cap_ptrace_traceme() local
216 const struct cred *cred; in cap_capget() local
640 const struct cred *cred = current_cred(); in cap_bprm_secureexec() local
Dsecurity.c196 int security_capable(const struct cred *cred, struct user_namespace *ns, in security_capable()
202 int security_capable_noaudit(const struct cred *cred, struct user_namespace *ns, in security_capable_noaudit()
784 int security_file_open(struct file *file, const struct cred *cred) in security_file_open()
808 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank()
813 void security_cred_free(struct cred *cred) in security_cred_free()
1403 int security_key_alloc(struct key *key, const struct cred *cred, in security_key_alloc()
1415 const struct cred *cred, key_perm_t perm) in security_key_permission()
Dcapability.c372 static int cap_file_open(struct file *file, const struct cred *cred) in cap_file_open()
386 static int cap_cred_alloc_blank(struct cred *cred, gfp_t gfp) in cap_cred_alloc_blank()
391 static void cap_cred_free(struct cred *cred) in cap_cred_free()
869 static int cap_key_alloc(struct key *key, const struct cred *cred, in cap_key_alloc()
879 static int cap_key_permission(key_ref_t key_ref, const struct cred *cred, in cap_key_permission()
/security/selinux/
Dhooks.c165 struct cred *cred = (struct cred *) current->real_cred; in cred_init_security() local
179 static inline u32 cred_sid(const struct cred *cred) in cred_sid()
352 const struct cred *cred) in may_context_mount_sb_relabel()
369 const struct cred *cred) in may_context_mount_inode_relabel()
587 const struct cred *cred = current_cred(); in selinux_set_mnt_opts() local
1500 static int cred_has_capability(const struct cred *cred, in cred_has_capability()
1549 static int inode_has_perm(const struct cred *cred, in inode_has_perm()
1572 static inline int dentry_has_perm(const struct cred *cred, in dentry_has_perm()
1587 static inline int path_has_perm(const struct cred *cred, in path_has_perm()
1607 static int file_has_perm(const struct cred *cred, in file_has_perm()
[all …]
/security/apparmor/
Dlsm.c49 static void apparmor_cred_free(struct cred *cred) in apparmor_cred_free()
58 static int apparmor_cred_alloc_blank(struct cred *cred, gfp_t gfp) in apparmor_cred_alloc_blank()
120 const struct cred *cred; in apparmor_capget() local
139 static int apparmor_capable(const struct cred *cred, struct user_namespace *ns, in apparmor_capable()
376 static int apparmor_file_open(struct file *file, const struct cred *cred) in apparmor_file_open()
512 const struct cred *cred = get_task_cred(task); in apparmor_getprocattr() local
881 struct cred *cred = (struct cred *)current->real_cred; in set_init_cxt() local
Ddomain.c65 const struct cred *cred = NULL; in may_change_ptraced_domain() local
618 const struct cred *cred; in aa_change_hat() local
752 const struct cred *cred; in aa_change_profile() local
Dipc.c100 const struct cred *cred = get_task_cred(tracer); in aa_ptrace() local
/security/tomoyo/
Dtomoyo.c59 static void tomoyo_cred_free(struct cred *cred) in tomoyo_cred_free()
329 static int tomoyo_file_open(struct file *f, const struct cred *cred) in tomoyo_file_open()
548 struct cred *cred = (struct cred *) current_cred(); in tomoyo_init() local
Dsecurityfs_if.c73 struct cred *cred = prepare_creds(); in tomoyo_write_self() local
/security/apparmor/include/
Dcontext.h109 static inline struct aa_profile *aa_cred_profile(const struct cred *cred) in aa_cred_profile()
/security/smack/
Dsmack_lsm.c1354 static int smack_file_open(struct file *file, const struct cred *cred) in smack_file_open()
1376 static int smack_cred_alloc_blank(struct cred *cred, gfp_t gfp) in smack_cred_alloc_blank()
1395 static void smack_cred_free(struct cred *cred) in smack_cred_free()
3155 static int smack_key_alloc(struct key *key, const struct cred *cred, in smack_key_alloc()
3183 const struct cred *cred, key_perm_t perm) in smack_key_permission()
3574 struct cred *cred; in smack_init() local
/security/integrity/ima/
Dima_policy.c168 const struct cred *cred = current_cred(); in ima_match_rules() local