Home
last modified time | relevance | path

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

12

/security/apparmor/include/
Dcred.h22 static inline struct aa_label *cred_label(const struct cred *cred) in cred_label()
30 static inline void set_cred_label(const struct cred *cred, in set_cred_label()
47 static inline struct aa_label *aa_cred_raw_label(const struct cred *cred) in aa_cred_raw_label()
61 static inline struct aa_label *aa_get_newest_cred_label(const struct cred *cred) in aa_get_newest_cred_label()
/security/keys/
Dprocess_keys.c77 const struct cred *cred = current_cred(); in look_up_user_keyrings() local
185 struct key *get_user_session_keyring_rcu(const struct cred *cred) in get_user_session_keyring_rcu()
317 int install_session_keyring_to_cred(struct cred *cred, struct key *keyring) in install_session_keyring_to_cred()
426 const struct cred *cred = ctx->cred; in search_cred_keyrings_rcu() local
557 const struct cred *cred = ctx->cred; in search_process_keyrings_rcu() local
Dpermission.c26 int key_task_permission(const key_ref_t key_ref, const struct cred *cred, in key_task_permission()
Drequest_key.c80 static int umh_keys_init(struct subprocess_info *info, struct cred *cred) in umh_keys_init()
122 const struct cred *cred = current_cred(); in call_sbin_request_key() local
268 const struct cred *cred = current_cred(); in construct_get_dest_keyring() local
Drequest_key_auth.c166 const struct cred *cred = current_cred(); in request_key_auth_new() local
Dkey.c226 kuid_t uid, kgid_t gid, const struct cred *cred, in key_alloc()
824 const struct cred *cred = current_cred(); in key_create_or_update() local
Dkeyctl.c1176 const struct cred *cred = current_cred(); in keyctl_instantiate_key_common() local
1338 const struct cred *cred = current_cred(); in keyctl_reject_key() local
1632 struct cred *cred; in keyctl_session_to_parent() local
Dinternal.h121 const struct cred *cred; member
/security/
Dcommoncap.c66 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable()
137 const struct cred *cred, *child_cred; in cap_ptrace_access_check() local
174 const struct cred *cred, *child_cred; in cap_ptrace_traceme() local
203 const struct cred *cred; in cap_capget() local
775 static inline bool __is_real(kuid_t uid, struct cred *cred) in __is_real()
778 static inline bool __is_eff(kuid_t uid, struct cred *cred) in __is_eff()
781 static inline bool __is_suid(kuid_t uid, struct cred *cred) in __is_suid()
832 #define __cap_grew(target, source, cred) \ argument
834 #define __cap_full(field, cred) \ argument
Dsecurity.c532 static int lsm_cred_alloc(struct cred *cred, gfp_t gfp) in lsm_cred_alloc()
551 static void __init lsm_early_cred(struct cred *cred) in lsm_early_cred()
803 int security_capable(const struct cred *cred, in security_capable()
1696 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank()
1709 void security_cred_free(struct cred *cred) in security_cred_free()
1874 int security_task_prlimit(const struct cred *cred, const struct cred *tcred, in security_task_prlimit()
1902 int sig, const struct cred *cred) in security_task_kill()
2185 const struct cred *cred, in security_post_notification()
2564 int security_key_alloc(struct key *key, const struct cred *cred, in security_key_alloc()
2575 int security_key_permission(key_ref_t key_ref, const struct cred *cred, in security_key_permission()
/security/selinux/
Dhooks.c214 struct cred *cred = (struct cred *) current->real_cred; in cred_init_security() local
224 static inline u32 cred_sid(const struct cred *cred) in cred_sid()
421 const struct cred *cred) in may_context_mount_sb_relabel()
440 const struct cred *cred) in may_context_mount_inode_relabel()
638 const struct cred *cred = current_cred(); in selinux_set_mnt_opts() local
1648 static int cred_has_capability(const struct cred *cred, in cred_has_capability()
1688 static int inode_has_perm(const struct cred *cred, in inode_has_perm()
1711 static inline int dentry_has_perm(const struct cred *cred, in dentry_has_perm()
1727 static inline int path_has_perm(const struct cred *cred, in path_has_perm()
1741 static inline int file_path_has_perm(const struct cred *cred, in file_path_has_perm()
[all …]
/security/landlock/
Dcred.c29 static void hook_cred_free(struct cred *const cred) in hook_cred_free()
Dcred.h24 landlock_cred(const struct cred *cred) in landlock_cred()
/security/safesetid/
Dlsm.c90 static int safesetid_security_capable(const struct cred *cred, in safesetid_security_capable()
/security/apparmor/
Dlsm.c66 static void apparmor_cred_free(struct cred *cred) in apparmor_cred_free()
75 static int apparmor_cred_alloc_blank(struct cred *cred, gfp_t gfp) in apparmor_cred_alloc_blank()
151 const struct cred *cred; in apparmor_capget() local
180 static int apparmor_capable(const struct cred *cred, struct user_namespace *ns, in apparmor_capable()
602 const struct cred *cred = get_task_cred(task); in apparmor_getprocattr() local
752 int sig, const struct cred *cred) in apparmor_task_kill()
1658 struct cred *cred = (__force struct cred *)current->real_cred; in set_init_ctx() local
Dfile.c687 void aa_inherit_files(const struct cred *cred, struct files_struct *files) in aa_inherit_files()
Ddomain.c1151 const struct cred *cred; in aa_change_hat() local
/security/integrity/
Ddigsig.c100 const struct cred *cred = current_cred(); in __integrity_init_keyring() local
/security/smack/
Dsmack.h335 static inline struct task_smack *smack_cred(const struct cred *cred) in smack_cred()
397 const struct cred *cred; in smk_of_task_struct_subj() local
413 const struct cred *cred; in smk_of_task_struct_obj() local
Dsmack_lsm.c240 static int smk_bu_credfile(const struct cred *cred, struct file *file, in smk_bu_credfile()
266 #define smk_bu_credfile(cred, file, mode, RC) (RC) argument
1911 static int smack_cred_alloc_blank(struct cred *cred, gfp_t gfp) in smack_cred_alloc_blank()
1923 static void smack_cred_free(struct cred *cred) in smack_cred_free()
1992 static void smack_cred_getsecid(const struct cred *cred, u32 *secid) in smack_cred_getsecid()
2199 int sig, const struct cred *cred) in smack_task_kill()
4264 static int smack_key_alloc(struct key *key, const struct cred *cred, in smack_key_alloc()
4294 const struct cred *cred, in smack_key_permission()
4436 const struct cred *cred, in smack_post_notification()
4916 struct cred *cred = (struct cred *) current->cred; in smack_init() local
Dsmack_access.c653 bool smack_privileged_cred(int cap, const struct cred *cred) in smack_privileged_cred()
/security/integrity/ima/
Dima_api.c189 const struct cred *cred, u32 secid, int mask, in ima_get_action()
Dima_policy.c482 const struct cred *cred) in ima_match_rule_data()
536 struct inode *inode, const struct cred *cred, in ima_match_rules()
691 const struct cred *cred, u32 secid, enum ima_hooks func, in ima_match_policy()
Dima_main.c202 static int process_measurement(struct file *file, const struct cred *cred, in process_measurement()
/security/selinux/include/
Dobjsec.h151 static inline struct task_security_struct *selinux_cred(const struct cred *cred) in selinux_cred()

12