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>
Mon, 14 Oct 2013 10:00:02 +0000 (13:00 +0300)
commit3d14d8d2d0c5b6fa02d592376b9b04ac7b7f6ab4
treeb9e283ddf0a8acc7ce961765f393f097e8ebb445
parent2d1cb7bafdda2d03d9b581198380a37d2476acf4
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
(cherry picked from commit 4e4ea9142727ca7f14bf1d64cd81949b28bb1d0b)
libsmack/libsmack.c