Searched refs:key_ref (Results 1 – 3 of 3) sorted by relevance
155 static inline struct key *key_ref_to_ptr(const key_ref_t key_ref) in key_ref_to_ptr() argument157 return (struct key *) ((unsigned long) key_ref & ~1UL); in key_ref_to_ptr()160 static inline bool is_key_possessed(const key_ref_t key_ref) in is_key_possessed() argument162 return (unsigned long) key_ref & 1UL; in is_key_possessed()311 static inline void key_ref_put(key_ref_t key_ref) in key_ref_put() argument313 key_put(key_ref_to_ptr(key_ref)); in key_ref_put()
1866 int security_key_permission(key_ref_t key_ref, const struct cred *cred,1883 static inline int security_key_permission(key_ref_t key_ref, in security_key_permission() argument
376 LSM_HOOK(int, 0, key_permission, key_ref_t key_ref, const struct cred *cred,