Skip to content

Commit

Permalink
changes from review and help text
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Feb 12, 2021
1 parent 369bb15 commit 432e112
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/yast2-firewall.spec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Source0: %{name}-%{version}.tar.bz2
BuildRequires: update-desktop-files
BuildRequires: yast2-devtools >= 4.2.2
# for proposing selinux
BuildRequires: yast2-security >= 4.2.16
BuildRequires: yast2-security >= 4.2.17
# Removed zone name from common attributes definition
BuildRequires: yast2 >= 4.1.67
BuildRequires: rubygem(%rb_default_ruby_abi:yast-rake)
Expand Down
15 changes: 14 additions & 1 deletion src/lib/y2firewall/widgets/proposal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ def initialize(settings)
end

def label
_("SELinux Mode")
# TRANSLATORS: SELinu Mode just SELinux is already content of frame.
_("Mode")
end

def items
Expand All @@ -224,6 +225,18 @@ def init
def store
@settings.selinux_config.mode = value
end

def help
_(
"<p>Sets default selinux mode. Modes are: <ul>" \
"<li><b>Enforcing</b> the state that enforces SELinux security policy. "\
"Access is denied to users and programs unless permitted by " \
"SELinux security policy rules. All denial messages are logged.</li> "\
"<b>Permissive</b> is a diagnostic state. The security policy rules are " \
"not enforced, but SELinux sends denial messages to a log file.</li>" \
"<b>Disabled</b> SELinux does not enforce a security policy.</li></ul></p>"
)
end
end
end
end

0 comments on commit 432e112

Please sign in to comment.