BACKPORT: Smack: Correctly remove SMACK64TRANSMUTE attribute
authorCasey Schaufler <casey@schaufler-ca.com>
Thu, 10 Apr 2014 23:35:36 +0000 (16:35 -0700)
committerRafal Krypa <r.krypa@samsung.com>
Thu, 30 Jun 2016 12:57:35 +0000 (14:57 +0200)
commitb0760e582605d89020cad95eac99a9b0305072b7
tree9fa495c783abc5bddc8ce319a8107b7a12e6ea81
parent27bfb09c80bbbac05c6b84054fdf89b0853b1d15
BACKPORT: Smack: Correctly remove SMACK64TRANSMUTE attribute

Sam Henderson points out that removing the SMACK64TRANSMUTE
attribute from a directory does not result in the directory
transmuting. This is because the inode flag indicating that
the directory is transmuting isn't cleared. The fix is a tad
less than trivial because smk_task and smk_mmap should have
been broken out, too.

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

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
(cherry-picked from upstream f59bdfba3e2b0ba5182f23d96101d106f18132ca)
security/smack/smack_lsm.c