setools/tests/perm_map
Chris PeBenito 448b8ebeae PermissionMapTest: add additional unit tests for error cases
Fix the exposed bugs in PermissionMap.  Add an exception for parse errors
in the permission map file parser, as SyntaxError is not the correct
exception.
2015-04-07 14:40:04 -04:00

43 lines
517 B
Plaintext

# this is an early comment
5
# this is a comment before a class
class infoflow 6
low_w w 1
med_w w 5
hi_w w 10
low_r r 1
med_r r 5
hi_r r 10
# this a comment between classes
class infoflow2 7
# this is a comment before perms
low_w w 1
med_w w 5
hi_w w 10
# this is a comment between perms
low_r r 1 # this is a comment after a perm
med_r r 5
hi_r r 10
super b 10
class infoflow3 1
null n 1
class file 2
execute r 10
entrypoint r 10
class process 1
transition w 10
# this is an extra comment at the end