Disable/remove neverallow options in frontends.

These rules are not available in the binary policy. Keep library support in
case this changes in the future.

Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
This commit is contained in:
Chris PeBenito 2023-04-03 09:13:31 -04:00
parent dee89793f8
commit 06335957b7
4 changed files with 18 additions and 14 deletions

View File

@ -35,16 +35,12 @@ sesearch \- утилита опроса политики SELinux
Найти правила включения журналирования событий.
.IP "--dontaudit"
Найти правила запрета журналирования событий.
.IP "--neverallow"
Найти запрещающие правила.
.IP "--allowxperm"
Найти расширенные разрешительные правила.
.IP "--auditallowxperm"
Найти расширенные правила включения журналирования событий.
.IP "--dontauditxperm"
Найти расширенные правила запрета журналирования событий.
.IP "--neverallowxperm"
Найти расширенные запрещающие правила.
.IP "-T, --type_trans"
Найти правила перехода типов.
.IP "--type_member"

View File

@ -30,16 +30,12 @@ Find allow rules.
Find auditallow rules.
.IP "--dontaudit"
Find dontaudit rules.
.IP "--neverallow"
Find neverallow rules.
.IP "--allowxperm"
Find allowxperm rules.
.IP "--auditallowxperm"
Find auditallowxperm rules.
.IP "--dontauditxperm"
Find dontauditxperm rules.
.IP "--neverallowxperm"
Find neverallowxperm rules.
.IP "-T, --type_trans"
Find type_transition rules.
.IP "--type_member"

View File

@ -42,12 +42,12 @@ rtypes.add_argument("--dontaudit", action="append_const",
rtypes.add_argument("--dontauditxperm", action="append_const",
const=setools.TERuletype.dontauditxperm, dest="tertypes",
help="Search dontauditxperm rules.")
rtypes.add_argument("--neverallow", action="append_const",
const=setools.TERuletype.neverallow, dest="tertypes",
help="Search neverallow rules.")
rtypes.add_argument("--neverallowxperm", action="append_const",
const=setools.TERuletype.neverallowxperm, dest="tertypes",
help="Search neverallowxperm rules.")
# rtypes.add_argument("--neverallow", action="append_const",
# const=setools.TERuletype.neverallow, dest="tertypes",
# help="Search neverallow rules.")
# 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",
const=setools.TERuletype.type_transition, dest="tertypes",
help="Search type_transition rules.")

View File

@ -465,6 +465,12 @@
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="neverallow">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Neverallow is not available in binary policies.</string>
</property>
<property name="text">
<string>Neverallow</string>
</property>
@ -482,6 +488,12 @@
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="neverallowxperm">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Neverallowxperms is not available in binary policies.</string>
</property>
<property name="text">
<string>Neverallowxperms</string>
</property>