diff options
author | James Morris <james.l.morris@oracle.com> | 2014-04-14 11:42:49 +1000 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2014-04-14 11:42:49 +1000 |
commit | b13cebe70775e67323e1c2eff20e1cd174e430a4 (patch) | |
tree | 80e5775c2ce5c90bdef8a2ce487fb70a179217af /security/keys/internal.h | |
parent | ecd740c6f2f092b90b95fa35f757973589eaaca2 (diff) | |
parent | fffea214abf66a8672cfd6697fae65e743e22f11 (diff) | |
download | op-kernel-dev-b13cebe70775e67323e1c2eff20e1cd174e430a4.zip op-kernel-dev-b13cebe70775e67323e1c2eff20e1cd174e430a4.tar.gz |
Merge tag 'keys-20140314' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs into next
Diffstat (limited to 'security/keys/internal.h')
-rw-r--r-- | security/keys/internal.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/security/keys/internal.h b/security/keys/internal.h index 80b2aac..5f20da01 100644 --- a/security/keys/internal.h +++ b/security/keys/internal.h @@ -176,20 +176,11 @@ extern int key_task_permission(const key_ref_t key_ref, /* * Check to see whether permission is granted to use a key in the desired way. */ -static inline int key_permission(const key_ref_t key_ref, key_perm_t perm) +static inline int key_permission(const key_ref_t key_ref, unsigned perm) { return key_task_permission(key_ref, current_cred(), perm); } -/* required permissions */ -#define KEY_VIEW 0x01 /* require permission to view attributes */ -#define KEY_READ 0x02 /* require permission to read content */ -#define KEY_WRITE 0x04 /* require permission to update / modify */ -#define KEY_SEARCH 0x08 /* require permission to search (keyring) or find (key) */ -#define KEY_LINK 0x10 /* require permission to link */ -#define KEY_SETATTR 0x20 /* require permission to change attributes */ -#define KEY_ALL 0x3f /* all the above permissions */ - /* * Authorisation record for request_key(). */ |