Home
last modified time | relevance | path

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

/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.c77 static int umh_keys_init(struct subprocess_info *info, struct cred *cred) in umh_keys_init()
119 const struct cred *cred = current_cred(); in call_sbin_request_key() local
265 const struct cred *cred = current_cred(); in construct_get_dest_keyring() local
Drequest_key_auth.c167 const struct cred *cred = current_cred(); in request_key_auth_new() local
Dkey.c225 kuid_t uid, kgid_t gid, const struct cred *cred, in key_alloc()
821 const struct cred *cred = current_cred(); in key_create_or_update() local
Dkeyctl.c1100 const struct cred *cred = current_cred(); in keyctl_instantiate_key_common() local
1265 const struct cred *cred = current_cred(); in keyctl_reject_key() local
1556 struct cred *cred; in keyctl_session_to_parent() local
Dinternal.h117 const struct cred *cred; member
Dkeyring.c522 const struct cred *cred, key_perm_t perm, in keyring_alloc()
/security/
Dcommoncap.c65 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable()
136 const struct cred *cred, *child_cred; in cap_ptrace_access_check() local
173 const struct cred *cred, *child_cred; in cap_ptrace_traceme() local
202 const struct cred *cred; in cap_capget() local
694 static inline bool __is_real(kuid_t uid, struct cred *cred) in __is_real()
697 static inline bool __is_eff(kuid_t uid, struct cred *cred) in __is_eff()
700 static inline bool __is_suid(kuid_t uid, struct cred *cred) in __is_suid()
751 #define __cap_grew(target, source, cred) \ argument
753 #define __cap_full(field, cred) \ argument
Dsecurity.c493 static int lsm_cred_alloc(struct cred *cred, gfp_t gfp) in lsm_cred_alloc()
512 static void __init lsm_early_cred(struct cred *cred) in lsm_early_cred()
724 int security_capable(const struct cred *cred, in security_capable()
1525 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank()
1538 void security_cred_free(struct cred *cred) in security_cred_free()
1675 int security_task_prlimit(const struct cred *cred, const struct cred *tcred, in security_task_prlimit()
1703 int sig, const struct cred *cred) in security_task_kill()
2324 int security_key_alloc(struct key *key, const struct cred *cred, in security_key_alloc()
2336 const struct cred *cred, unsigned perm) in security_key_permission()
/security/selinux/
Dhooks.c210 struct cred *cred = (struct cred *) current->real_cred; in cred_init_security() local
220 static inline u32 cred_sid(const struct cred *cred) in cred_sid()
461 const struct cred *cred) in may_context_mount_sb_relabel()
480 const struct cred *cred) in may_context_mount_inode_relabel()
652 const struct cred *cred = current_cred(); in selinux_set_mnt_opts() local
1632 static int cred_has_capability(const struct cred *cred, in cred_has_capability()
1672 static int inode_has_perm(const struct cred *cred, in inode_has_perm()
1695 static inline int dentry_has_perm(const struct cred *cred, in dentry_has_perm()
1711 static inline int path_has_perm(const struct cred *cred, in path_has_perm()
1725 static inline int file_path_has_perm(const struct cred *cred, in file_path_has_perm()
[all …]
/security/safesetid/
Dlsm.c63 static int safesetid_security_capable(const struct cred *cred, in safesetid_security_capable()
/security/apparmor/
Dlsm.c56 static void apparmor_cred_free(struct cred *cred) in apparmor_cred_free()
65 static int apparmor_cred_alloc_blank(struct cred *cred, gfp_t gfp) in apparmor_cred_alloc_blank()
141 const struct cred *cred; in apparmor_capget() local
170 static int apparmor_capable(const struct cred *cred, struct user_namespace *ns, in apparmor_capable()
580 const struct cred *cred = get_task_cred(task); in apparmor_getprocattr() local
730 int sig, const struct cred *cred) in apparmor_task_kill()
1528 struct cred *cred = (struct cred *)current->real_cred; in set_init_ctx() local
Dfile.c679 void aa_inherit_files(const struct cred *cred, struct files_struct *files) in aa_inherit_files()
Ddomain.c1168 const struct cred *cred; in aa_change_hat() local
/security/integrity/ima/
Dima_main.c192 static int process_measurement(struct file *file, const struct cred *cred, in process_measurement()
636 const struct cred *cred, u32 secid) in process_buffer_measurement()
Dima_api.c184 int ima_get_action(struct inode *inode, const struct cred *cred, u32 secid, in ima_get_action()
Dima_policy.c371 const struct cred *cred, u32 secid, in ima_match_rules()
490 int ima_match_policy(struct inode *inode, const struct cred *cred, u32 secid, in ima_match_policy()
/security/integrity/
Ddigsig.c101 const struct cred *cred = current_cred(); in __integrity_init_keyring() local
/security/smack/
Dsmack_lsm.c243 static int smk_bu_credfile(const struct cred *cred, struct file *file, in smk_bu_credfile()
269 #define smk_bu_credfile(cred, file, mode, RC) (RC) argument
1910 static int smack_cred_alloc_blank(struct cred *cred, gfp_t gfp) in smack_cred_alloc_blank()
1922 static void smack_cred_free(struct cred *cred) in smack_cred_free()
1991 static void smack_cred_getsecid(const struct cred *cred, u32 *secid) in smack_cred_getsecid()
2184 int sig, const struct cred *cred) in smack_task_kill()
4219 static int smack_key_alloc(struct key *key, const struct cred *cred, in smack_key_alloc()
4249 const struct cred *cred, unsigned perm) in smack_key_permission()
4770 struct cred *cred = (struct cred *) current->cred; in smack_init() local
Dsmack_access.c632 bool smack_privileged_cred(int cap, const struct cred *cred) in smack_privileged_cred()
Dsmack.h349 static inline struct task_smack *smack_cred(const struct cred *cred) in smack_cred()
405 const struct cred *cred; in smk_of_task_struct() local
/security/selinux/include/
Dobjsec.h152 static inline struct task_security_struct *selinux_cred(const struct cred *cred) in selinux_cred()