Smack: Verify read access on file open - v3 71/23271/1
authorCasey Schaufler <casey@schaufler-ca.com>
Mon, 21 Apr 2014 18:10:26 +0000 (11:10 -0700)
committerRafal Krypa <r.krypa@samsung.com>
Fri, 20 Jun 2014 15:17:58 +0000 (17:17 +0200)
commitcad1b4f6736037fab28c911f4f19a072d1c23770
treeb03fc7521cf0fac62d9524e112b9ee74776b854e
parentc22549c9449eeb3a3162611927edecbdd1c01507
Smack: Verify read access on file open - v3

Smack believes that many of the operatons that can
be performed on an open file descriptor are read operations.
The fstat and lseek system calls are examples.
An implication of this is that files shouldn't be open
if the task doesn't have read access even if it has
write access and the file is being opened write only.

Targeted for git://git.gitorious.org/smack-next/kernel.git

Change-Id: I63d57bc62cd08fa4e1f128b544e7ed7316456e4c
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_lsm.c