mirror of
https://github.com/SELinuxProject/setools
synced 2025-02-21 06:27:02 +00:00
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.
43 lines
517 B
Plaintext
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
|