BACKPORT: Smack: Remove unnecessary smack_known_invalid sandbox/rkrypa/tizen-security-backport-4.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:09:17 +0000 (17:09 +0100)
commit908c1379401e8af8b673e3fa3a0541533fd72620
treec4f1bee1358c539280809a100f77ef2b6cf1cb4e
parentd8bef8ee923bcb95b4f02601be1abe9cc27946f6
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