Smack: Fix setting label on successful file open
authorMarcin Niesluchowski <m.niesluchow@samsung.com>
Tue, 19 Aug 2014 12:26:32 +0000 (14:26 +0200)
committerCasey Schaufler <casey@schaufler-ca.com>
Mon, 25 Aug 2014 21:27:28 +0000 (14:27 -0700)
commitd83d2c26461d661384676a4eed935d925b0fcc34
tree7f37947642d81d58f7a48e8ea9473a1894257c36
parentda1b63566c469bf3e2b24182114422e16b1aa34c
Smack: Fix setting label on successful file open

While opening with CAP_MAC_OVERRIDE file label is not set.
Other calls may access it after CAP_MAC_OVERRIDE is dropped from process.

Signed-off-by: Marcin Niesluchowski <m.niesluchow@samsung.com>
security/smack/smack_lsm.c