BACKPORT: Smack: Remove unnecessary smack_known_invalid sandbox/rkrypa/tizen-security-backport-3.4
authorCasey Schaufler <casey@schaufler-ca.com>
Mon, 14 Nov 2016 17:38:15 +0000 (09:38 -0800)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 21 Nov 2016 16:02:13 +0000 (17:02 +0100)
commit08fbd9d4faefd77c962db250de1cf225a047955f
tree9413d0084c10c3cbebdef22d48a407c61f113e86
parentd519c20f58b693339443d27a483904afead2e3c0
BACKPORT: Smack: Remove unnecessary smack_known_invalid

The invalid Smack label ("") and the Huh ("?") Smack label
serve the same purpose and having both is unnecessary.
While pulling out the invalid label it became clear that
the use of smack_from_secid() was inconsistent, so that
is repaired. The setting of inode labels to the invalid
label could never happen in a functional system, has
never been observed in the wild and is not what you'd
really want for a failure behavior in any case. That is
removed.

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