linux-kernel-test/security/smack
Casey Schaufler 5e7270a6dd Smack: Rework file hooks
This is one of those cases where you look at code you did
years ago and wonder what you might have been thinking.
There are a number of LSM hooks that work off of file pointers,
and most of them really want the security data from the inode.
Some, however, really want the security context that the process
had when the file was opened. The difference went undetected in
Smack until it started getting used in a real system with real
testing. At that point it was clear that something was amiss.

This patch corrects the misuse of the f_security value in several
of the hooks. The behavior will not usually be any different, as
the process had to be able to open the file in the first place, and
the old check almost always succeeded, as will the new, but for
different reasons.

Thanks to the Samsung Tizen development team that identified this.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
2015-01-20 16:32:17 -08:00
..
Kconfig Smack: Bring-up access mode 2014-08-28 13:11:56 -07:00
Makefile
smack_access.c security: smack: fix out-of-bounds access in smk_parse_smack() 2014-11-21 13:14:22 -08:00
smack_lsm.c Smack: Rework file hooks 2015-01-20 16:32:17 -08:00
smack.h Make Smack operate on smack_known struct where it still used char* 2014-08-29 10:10:55 -07:00
smackfs.c Make Smack operate on smack_known struct where it still used char* 2014-08-29 10:10:55 -07:00