summaryrefslogtreecommitdiffstats
path: root/include/linux/security.h
diff options
context:
space:
mode:
authorDmitry Kasatkin2014-03-14 18:44:49 +0100
committerDavid Howells2014-03-14 18:44:49 +0100
commitfffea214abf66a8672cfd6697fae65e743e22f11 (patch)
treea1e7c6d02c070bf0a92c9650aee2fd7d292f4623 /include/linux/security.h
parentKEYS: Move the flags representing required permission to linux/key.h (diff)
downloadkernel-qcow2-linux-fffea214abf66a8672cfd6697fae65e743e22f11.tar.gz
kernel-qcow2-linux-fffea214abf66a8672cfd6697fae65e743e22f11.tar.xz
kernel-qcow2-linux-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 <d.kasatkin@samsung.com> Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'include/linux/security.h')
0 files changed, 0 insertions, 0 deletions