Skip to content

Commit

Permalink
Revert change adding loging to Y2Security::Selinux#save
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Feb 12, 2021
1 parent 2f6cfeb commit 5e5edfe
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/lib/y2security/selinux.rb
Expand Up @@ -185,15 +185,8 @@ def mode=(id)
# false if running in installation where selinux is not configurable;
# the Yast::Bootloader#Write return value otherwise
def save
unless configurable?
log.warn("Do NOT set Mode to: #{mode.id}")
log.info("With bootloader kernel params: #{mode.options}")
log.warn("Because it has NOT been enabled in the product control file.")
return false
end
return false unless configurable?

log.info("Set Mode to: #{mode.id}")
log.info("With bootloader kernel params: #{mode.options}")
Yast::Bootloader.modify_kernel_params(mode.options)
config_file.selinux = mode.id.to_s
config_file.save
Expand Down

0 comments on commit 5e5edfe

Please sign in to comment.