/linux-master/security/integrity/platform_certs/ |
H A D | load_ipl_s390.c | 5 #include <linux/cred.h>
|
/linux-master/kernel/ |
H A D | user_namespace.c | 10 #include <linux/cred.h> 43 static void set_cred_user_ns(struct cred *cred, struct user_namespace *user_ns) argument 48 cred->securebits = SECUREBITS_DEFAULT; 49 cred->cap_inheritable = CAP_EMPTY_SET; 50 cred->cap_permitted = CAP_FULL_SET; 51 cred->cap_effective = CAP_FULL_SET; 52 cred->cap_ambient = CAP_EMPTY_SET; 53 cred->cap_bset = CAP_FULL_SET; 55 key_put(cred 178 struct cred *cred; local 1167 const struct cred *cred = file->f_cred; local 1342 struct cred *cred; local [all...] |
H A D | auditsc.c | 381 const struct cred *cred, 389 return audit_compare_uid(cred->uid, name, f, ctx); 391 return audit_compare_gid(cred->gid, name, f, ctx); 393 return audit_compare_uid(cred->euid, name, f, ctx); 395 return audit_compare_gid(cred->egid, name, f, ctx); 399 return audit_compare_uid(cred->suid, name, f, ctx); 401 return audit_compare_gid(cred->sgid, name, f, ctx); 403 return audit_compare_uid(cred->fsuid, name, f, ctx); 405 return audit_compare_gid(cred 380 audit_field_compare(struct task_struct *tsk, const struct cred *cred, struct audit_field *f, struct audit_context *ctx, struct audit_names *name) argument 471 const struct cred *cred; local 1647 const struct cred *cred; local [all...] |
/linux-master/security/apparmor/ |
H A D | file.c | 19 #include "include/cred.h" 80 * @subj_cred: cred of the subject 94 int aa_audit_file(const struct cred *subj_cred, 160 static int path_name(const char *op, const struct cred *subj_cred, 228 static int __aa_path_perm(const char *op, const struct cred *subj_cred, 249 static int profile_path_perm(const char *op, const struct cred *subj_cred, 273 * @subj_cred: subject cred 282 int aa_path_perm(const char *op, const struct cred *subj_cred, 326 static int profile_path_link(const struct cred *subj_cred, 416 * @subj_cred: subject cred 663 const struct cred *cred; member in struct:cred_label 679 aa_inherit_files(const struct cred *cred, struct files_struct *files) argument [all...] |
H A D | lsm.c | 33 #include "include/cred.h" 74 static void apparmor_cred_free(struct cred *cred) argument 76 aa_put_label(cred_label(cred)); 77 set_cred_label(cred, NULL); 83 static int apparmor_cred_alloc_blank(struct cred *cred, gfp_t gfp) argument 85 set_cred_label(cred, NULL); 90 * prepare new cred label for modification by prepare_cred block 92 static int apparmor_cred_prepare(struct cred *ne 127 const struct cred *cred; local 145 const struct cred *cred; local 164 const struct cred *cred; local 196 apparmor_capable(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts) argument 826 const struct cred *cred = get_task_cred(task); local 1012 apparmor_task_kill(struct task_struct *target, struct kernel_siginfo *info, int sig, const struct cred *cred) argument 1039 apparmor_userns_create(const struct cred *cred) argument 1968 struct cred *cred = (__force struct cred *)current->real_cred; local [all...] |
/linux-master/fs/nfs/ |
H A D | delegation.c | 35 put_cred(delegation->cred); 36 delegation->cred = NULL; 220 * @cred: credential to use for request 226 void nfs_inode_reclaim_delegation(struct inode *inode, const struct cred *cred, argument 231 const struct cred *oldcred = NULL; 240 oldcred = delegation->cred; 241 delegation->cred = get_cred(cred); 252 nfs_inode_set_delegation(inode, cred, typ 259 const struct cred *cred; local 384 nfs_update_delegation_cred(struct nfs_delegation *delegation, const struct cred *cred) argument 424 nfs_inode_set_delegation(struct inode *inode, const struct cred *cred, fmode_t type, const nfs4_stateid *stateid, unsigned long pagemod_limit) argument 1272 nfs_delegation_test_free_expired(struct inode *inode, nfs4_stateid *stateid, const struct cred *cred) argument 1292 const struct cred *cred; local 1429 nfs4_copy_delegation_stateid(struct inode *inode, fmode_t flags, nfs4_stateid *dst, const struct cred **cred) argument [all...] |
/linux-master/lib/ |
H A D | debug_info.c | 8 #include <linux/cred.h>
|
/linux-master/include/linux/sunrpc/ |
H A D | svcsock.h | 65 const struct cred *cred);
|
/linux-master/security/apparmor/include/ |
H A D | task.h | 94 int aa_may_ptrace(const struct cred *tracer_cred, struct aa_label *tracer, 95 const struct cred *tracee_cred, struct aa_label *tracee,
|
/linux-master/arch/mips/kernel/ |
H A D | mips-mt-fpaff.c | 14 #include <linux/cred.h> 52 const struct cred *cred = current_cred(), *pcred; local 57 match = (uid_eq(cred->euid, pcred->euid) || 58 uid_eq(cred->euid, pcred->uid));
|
/linux-master/fs/ |
H A D | file_table.c | 18 #include <linux/cred.h> 147 static int init_file(struct file *f, int flags, const struct cred *cred) argument 151 f->f_cred = get_cred(cred); 184 struct file *alloc_empty_file(int flags, const struct cred *cred) argument 206 error = init_file(f, flags, cred); 231 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred) argument 240 error = init_file(f, flags, cred); 258 alloc_empty_backing_file(int flags, const struct cred *cred) argument [all...] |
/linux-master/fs/nfs/flexfilelayout/ |
H A D | flexfilelayoutdev.c | 284 static const struct cred * 287 const struct cred *cred, __rcu **pcred; local 296 cred = rcu_dereference(*pcred); 297 if (!cred) 300 cred = get_cred_rcu(cred); 301 } while(!cred); 303 return cred; 420 const struct cred * 425 const struct cred *cred; local [all...] |
H A D | flexfilelayout.h | 84 const struct cred __rcu *ro_cred; 85 const struct cred __rcu *rw_cred; 220 const struct cred *ff_layout_get_ds_cred(struct nfs4_ff_layout_mirror *mirror, 222 const struct cred *mdscred);
|
/linux-master/security/ |
H A D | security.c | 353 static void __init lsm_early_cred(struct cred *cred); 399 init_debug("cred blob size = %d\n", blob_sizes.lbs_cred); 420 lsm_early_cred((struct cred *) current->cred); 599 * lsm_cred_alloc - allocate a composite cred blob 600 * @cred: the cred that needs a blob 603 * Allocate the cred blob for all the modules 607 static int lsm_cred_alloc(struct cred *cre argument 626 lsm_early_cred(struct cred *cred) argument 1031 security_capable(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts) argument 3047 security_cred_alloc_blank(struct cred *cred, gfp_t gfp) argument 3066 security_cred_free(struct cred *cred) argument 3430 security_task_prlimit(const struct cred *cred, const struct cred *tcred, unsigned int flags) argument 3509 security_task_kill(struct task_struct *p, struct kernel_siginfo *info, int sig, const struct cred *cred) argument 3568 security_create_user_ns(const struct cred *cred) argument 4283 security_post_notification(const struct cred *w_cred, const struct cred *cred, struct watch_notification *n) argument 5256 security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags) argument 5283 security_key_permission(key_ref_t key_ref, const struct cred *cred, enum key_need_perm need_perm) argument [all...] |
/linux-master/security/smack/ |
H A D | smack.h | 290 bool smack_privileged_cred(int cap, const struct cred *cred); 326 static inline struct task_smack *smack_cred(const struct cred *cred) argument 328 return cred->security + smack_blob_sizes.lbs_cred; 388 const struct cred *cred; local 392 cred = __task_cred(t); 393 skp = smk_of_task(smack_cred(cred));
|
/linux-master/include/linux/ |
H A D | key.h | 100 struct cred; 286 const struct cred *cred, 421 const struct cred *cred, 496 extern int install_thread_keyring_to_cred(struct cred *cred); 497 extern void key_fsuid_changed(struct cred *new_cred); 498 extern void key_fsgid_changed(struct cred *new_cred);
|
H A D | kallsyms.h | 24 struct cred; 69 extern bool kallsyms_show_value(const struct cred *cred);
|
H A D | init_task.h | 28 extern struct cred init_cred;
|
/linux-master/security/keys/ |
H A D | internal.h | 13 #include <linux/cred.h> 114 const struct cred *cred; member in struct:keyring_search_context 145 extern struct key *get_user_session_keyring_rcu(const struct cred *); 146 extern int install_thread_keyring_to_cred(struct cred *); 147 extern int install_process_keyring_to_cred(struct cred *); 148 extern int install_session_keyring_to_cred(struct cred *, struct key *); 176 const struct cred *cred,
|
/linux-master/security/selinux/include/ |
H A D | objsec.h | 152 static inline struct task_security_struct *selinux_cred(const struct cred *cred) argument 154 return cred->security + selinux_blob_sizes.lbs_cred;
|
/linux-master/net/core/ |
H A D | scm.c | 49 const struct cred *cred = current_cred(); local 50 kuid_t uid = make_kuid(cred->user_ns, creds->uid); 51 kgid_t gid = make_kgid(cred->user_ns, creds->gid); 58 ((uid_eq(uid, cred->uid) || uid_eq(uid, cred->euid) || 59 uid_eq(uid, cred->suid)) || ns_capable(cred->user_ns, CAP_SETUID)) && 60 ((gid_eq(gid, cred->gid) || gid_eq(gid, cred [all...] |
/linux-master/fs/lockd/ |
H A D | svc.c | 159 const struct cred *cred) 166 SVC_SOCK_DEFAULTS, cred); 172 const int family, const struct cred *cred) 177 cred); 182 cred); 196 const struct cred *cred) 201 err = create_lockd_family(serv, net, PF_INET, cred); 156 create_lockd_listener(struct svc_serv *serv, const char *name, struct net *net, const int family, const unsigned short port, const struct cred *cred) argument 171 create_lockd_family(struct svc_serv *serv, struct net *net, const int family, const struct cred *cred) argument 195 make_socks(struct svc_serv *serv, struct net *net, const struct cred *cred) argument 221 lockd_up_net(struct svc_serv *serv, struct net *net, const struct cred *cred) argument 384 lockd_up(struct net *net, const struct cred *cred) argument [all...] |
/linux-master/fs/smb/server/ |
H A D | smb_common.c | 739 struct cred *cred; local 751 cred = prepare_kernel_cred(&init_task); 752 if (!cred) 755 cred->fsuid = make_kuid(&init_user_ns, uid); 756 cred->fsgid = make_kgid(&init_user_ns, gid); 760 abort_creds(cred); 763 set_groups(cred, gi); 766 if (!uid_eq(cred->fsuid, GLOBAL_ROOT_UID)) 767 cred 780 const struct cred *cred; local [all...] |
/linux-master/drivers/misc/vmw_vmci/ |
H A D | vmci_context.h | 80 const struct cred *cred; member in struct:vmci_ctx 128 const struct cred *cred);
|
/linux-master/security/integrity/ima/ |
H A D | ima_mok.c | 12 #include <linux/cred.h>
|