Lines Matching defs:cred
14 #include <linux/cred.h>
22 static inline struct aa_label *cred_label(const struct cred *cred)
24 struct aa_label **blob = cred->security + apparmor_blob_sizes.lbs_cred;
30 static inline void set_cred_label(const struct cred *cred,
33 struct aa_label **blob = cred->security + apparmor_blob_sizes.lbs_cred;
40 * aa_cred_raw_label - obtain cred's label
41 * @cred: cred to obtain label from (NOT NULL)
47 static inline struct aa_label *aa_cred_raw_label(const struct cred *cred)
49 struct aa_label *label = cred_label(cred);
56 * aa_get_newest_cred_label - obtain the newest label on a cred
57 * @cred: cred to obtain label from (NOT NULL)
61 static inline struct aa_label *aa_get_newest_cred_label(const struct cred *cred)
63 return aa_get_newest_label(aa_cred_raw_label(cred));
71 * This fn will not update the tasks cred to the most up to date version
84 * This fn will not update the tasks cred, so it is safe inside of locks
105 * task cred may be updated
121 * This must NOT be used if the task cred could be updated within the
143 * This must NOT be used if the task cred could be updated within the
156 /* task cred will keep the reference */