Skip to content

Commit

Permalink
Documentation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Feb 3, 2021
1 parent f7e6abc commit 92e8a80
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/y2security/selinux_config.rb
Expand Up @@ -56,7 +56,7 @@ class SelinuxConfig
Yast.import "Bootloader"
Yast.import "ProductFeatures"

# @return [Y2Security::SelinuxConfig::Mode] the last set mode, which can be differrent to the
# @return [SelinuxConfig::Mode] the last set mode, which can be differrent to the
# {#running_mode} and {#configured_mode}. A call to {#save} is needed to make it the
# {#configured_mode} for the next boot.
attr_reader :mode
Expand All @@ -71,7 +71,7 @@ def initialize
# It can be the proposed one if running in an installation or the configured mode for a
# running system
#
# @return [Y2Security::SelinuxConfig::Mode]
# @return [SelinuxConfig::Mode]
def initial_mode
@initial_mode ||= Yast::Mode.installation ? propose_mode : configured_mode
end
Expand All @@ -93,7 +93,7 @@ def running_mode

# Returns a collection holding all known SELinux modes
#
# @return [Array<Y2Security::SelinuxConfig::Mode>] a collection of known SELinux modes
# @return [Array<SelinuxConfig::Mode>] a collection of known SELinux modes
def modes
Mode.all
end
Expand All @@ -102,8 +102,8 @@ def modes
#
# @note using nil means to set SELinux mode as disabled.
#
# @param id [Y2Security::SelinuxConfig::Mode, String, Symbol, nil] a SELinux mode or its identifier
# @return [Mode] found SelinuxConfig::Mode by given id; disabled is none found or nil was given
# @param id [SelinuxConfig::Mode, String, Symbol, nil] a SELinux mode or its identifier
# @return [Mode] the SelinuxConfig::Mode by given id or disabled is none found or nil was given
def mode=(id)
found_mode = Mode.find(id) || Mode.find(:disabled)
@mode = found_mode
Expand Down

0 comments on commit 92e8a80

Please sign in to comment.