Smack: Remove unnecessary smack_known_invalid
authorCasey Schaufler <casey@schaufler-ca.com>
Mon, 14 Nov 2016 17:38:15 +0000 (09:38 -0800)
committerCasey Schaufler <casey@schaufler-ca.com>
Tue, 15 Nov 2016 17:34:39 +0000 (09:34 -0800)
commit152f91d4d11a30106b9cc0b27b47e0e80b633ee8
tree33fdd28f8075586b8c11ea4175400b51cd8eb38c
parent8c15d66e429afd099b66f05393527c23f85ca41c
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>
security/smack/smack.h
security/smack/smack_access.c
security/smack/smack_lsm.c
security/smack/smackfs.c