mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-29 14:56:21 +00:00
sesearch: Fully specify --type/range/role_transition long options.
This will fully match the rule types, plus the ArgumentParser argument abbreviations will enable the previous long options to continue to work. Signed-off-by: Chris PeBenito <pebenito@ieee.org>
This commit is contained in:
parent
822a51d253
commit
76b7b01cda
@ -36,7 +36,7 @@ Find allowxperm rules.
|
||||
Find auditallowxperm rules.
|
||||
.IP "--dontauditxperm"
|
||||
Find dontauditxperm rules.
|
||||
.IP "-T, --type_trans"
|
||||
.IP "-T, --type_transition"
|
||||
Find type_transition rules.
|
||||
.IP "--type_member"
|
||||
Find type_member rules.
|
||||
@ -46,12 +46,12 @@ Find type_change rules.
|
||||
.SS RBAC Rule Types
|
||||
.IP "--role_allow"
|
||||
Find role allow rules.
|
||||
.IP "--role_trans"
|
||||
.IP "--role_transition"
|
||||
Find role_transition rules.
|
||||
.IP "Note: TE/MLS rule searches cannot be mixed with RBAC rule searches"
|
||||
|
||||
.SS MLS Rule Types
|
||||
.IP "--range_trans"
|
||||
.IP "--range_transition"
|
||||
Find range_transition rules.
|
||||
|
||||
.SS Rule Fields
|
||||
|
6
sesearch
6
sesearch
@ -48,7 +48,7 @@ rtypes.add_argument("--dontauditxperm", action="append_const",
|
||||
# rtypes.add_argument("--neverallowxperm", action="append_const",
|
||||
# const=setools.TERuletype.neverallowxperm, dest="tertypes",
|
||||
# help="Search neverallowxperm rules.")
|
||||
rtypes.add_argument("-T", "--type_trans", action="append_const",
|
||||
rtypes.add_argument("-T", "--type_transition", action="append_const",
|
||||
const=setools.TERuletype.type_transition, dest="tertypes",
|
||||
help="Search type_transition rules.")
|
||||
rtypes.add_argument("--type_change", action="append_const",
|
||||
@ -61,12 +61,12 @@ rbacrtypes = parser.add_argument_group("RBAC Rule Types")
|
||||
rbacrtypes.add_argument("--role_allow", action="append_const",
|
||||
const=setools.RBACRuletype.allow, dest="rbacrtypes",
|
||||
help="Search role allow rules.")
|
||||
rbacrtypes.add_argument("--role_trans", action="append_const",
|
||||
rbacrtypes.add_argument("--role_transition", action="append_const",
|
||||
const=setools.RBACRuletype.role_transition, dest="rbacrtypes",
|
||||
help="Search role_transition rules.")
|
||||
|
||||
mlsrtypes = parser.add_argument_group("MLS Rule Types")
|
||||
mlsrtypes.add_argument("--range_trans", action="append_const",
|
||||
mlsrtypes.add_argument("--range_transition", action="append_const",
|
||||
const=setools.MLSRuletype.range_transition, dest="mlsrtypes",
|
||||
help="Search range_transition rules.")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user