mirror of
https://github.com/SELinuxProject/setools
synced 2025-01-28 10:32:47 +00:00
sesearch: Fix xperm options for consistency.
The options should have been like --allowxperm but were like --allowx. Fix to be consistent with sediff, which has these options. Fortunately argparse recognizes abbreviations of long options, so anyone that started using, --allowx, for example, can still use that.
This commit is contained in:
parent
0ca66d2302
commit
38cd43c80b
8
sesearch
8
sesearch
@ -37,25 +37,25 @@ rtypes.add_argument("-A", action="store_true", help="Search allow and allowxperm
|
||||
rtypes.add_argument("--allow", action="append_const",
|
||||
const="allow", dest="tertypes",
|
||||
help="Search allow rules.")
|
||||
rtypes.add_argument("--allowx", action="append_const",
|
||||
rtypes.add_argument("--allowxperm", action="append_const",
|
||||
const="allowxperm", dest="tertypes",
|
||||
help="Search allowxperm rules.")
|
||||
rtypes.add_argument("--auditallow", action="append_const",
|
||||
const="auditallow", dest="tertypes",
|
||||
help="Search auditallow rules.")
|
||||
rtypes.add_argument("--auditallowx", action="append_const",
|
||||
rtypes.add_argument("--auditallowxperm", action="append_const",
|
||||
const="auditallowxperm", dest="tertypes",
|
||||
help="Search auditallowxperm rules.")
|
||||
rtypes.add_argument("--dontaudit", action="append_const",
|
||||
const="dontaudit", dest="tertypes",
|
||||
help="Search dontaudit rules.")
|
||||
rtypes.add_argument("--dontauditx", action="append_const",
|
||||
rtypes.add_argument("--dontauditxperm", action="append_const",
|
||||
const="dontauditxperm", dest="tertypes",
|
||||
help="Search dontauditxperm rules.")
|
||||
rtypes.add_argument("--neverallow", action="append_const",
|
||||
const="neverallow", dest="tertypes",
|
||||
help="Search neverallow rules.")
|
||||
rtypes.add_argument("--neverallowx", action="append_const",
|
||||
rtypes.add_argument("--neverallowxperm", action="append_const",
|
||||
const="neverallowxperm", dest="tertypes",
|
||||
help="Search neverallowxperm rules.")
|
||||
rtypes.add_argument("-T", "--type_trans", action="append_const",
|
||||
|
Loading…
Reference in New Issue
Block a user