From: Dmitry Kasatkin Date: Fri, 14 Mar 2014 17:44:49 +0000 (+0000) Subject: smack: fix key permission verification X-Git-Tag: omap-for-v3.16/fixes-against-rc1~70^2~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fffea214abf66a8672cfd6697fae65e743e22f11;p=pandora-kernel.git 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 Signed-off-by: David Howells Acked-by: Casey Schaufler --- Reading git-diff-tree failed