diff options
| author | Dmitry Kasatkin <[email protected]> | 2014-03-14 17:44:49 +0000 |
|---|---|---|
| committer | David Howells <[email protected]> | 2014-03-14 17:44:49 +0000 |
| commit | fffea214abf66a8672cfd6697fae65e743e22f11 (patch) | |
| tree | a1e7c6d02c070bf0a92c9650aee2fd7d292f4623 /security/selinux/hooks.c | |
| parent | KEYS: Move the flags representing required permission to linux/key.h (diff) | |
| download | kernel-fffea214abf66a8672cfd6697fae65e743e22f11.tar.gz kernel-fffea214abf66a8672cfd6697fae65e743e22f11.zip | |
smack: fix key permission verification
For any keyring access type SMACK always used MAY_READWRITE access check.
It prevents reading the key with label "_", which should be allowed for anyone.
This patch changes default access check to MAY_READ and use MAY_READWRITE in only
appropriate cases.
Signed-off-by: Dmitry Kasatkin <[email protected]>
Signed-off-by: David Howells <[email protected]>
Acked-by: Casey Schaufler <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
