Fix: allow CIPSO labels with zero categories
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 8 Oct 2013 13:17:23 +0000 (16:17 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 8 Oct 2013 13:17:23 +0000 (16:17 +0300)
commit4e4ea9142727ca7f14bf1d64cd81949b28bb1d0b
treef101aeffbb2bc15bcd32392d2567cf991648c2c0
parentf82cadf3b7a9d84ae0bf2aa06fb8ecff9b4332dc
Fix: allow CIPSO labels with zero categories

There was false restriction in smack_cipso_add_from_file() that
disallowed CIPSO labels without categories.

For example, this example given in the SMACK kernel documentation
should be perfectly legal:

TopSecret 7
libsmack/libsmack.c