Smack: prevent revoke-subject from failing when unseen label is written to it
authorRafal Krypa <r.krypa@samsung.com>
Tue, 27 Nov 2012 15:28:11 +0000 (16:28 +0100)
committerYin Kangkai <kangkai.yin@linux.intel.com>
Thu, 26 Dec 2013 14:33:52 +0000 (22:33 +0800)
commit6593d34bbd87273bdb453953b985339611672218
treeb30d1791e063d8ad7bdbb5a503b0bcb8abd84bda
parent9a6dceefc272bad1a669dd58bbc6f31e1121c398
Smack: prevent revoke-subject from failing when unseen label is written to it

commit d15d9fad16f6aa459cf4926a1d3aba36b004e9a2 upstream

Special file /smack/revoke-subject will silently accept labels that are not
present on the subject label list. Nothing has to be done for such labels,
as there are no rules for them to revoke.

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

Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
security/smack/smackfs.c