Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Jan 29, 2021
1 parent 42d9fe4 commit 4651d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/security/selinux.rb
Expand Up @@ -60,7 +60,7 @@ def initialize

# Returns the policy set in booting params
def policy
@policy ||= match_policy(policy_from_kernel_params) || :disabled
@policy ||= match_policy(policy_options_from_kernel) || :disabled
end

# Use the given policy for the next boot (in running system is needed to #save)
Expand Down Expand Up @@ -108,7 +108,7 @@ def match_policy(policy_options)
self.class.policies.key(policy_options)
end

def policy_from_kernel_params
def policy_options_from_kernel
Hash[*self.class.policy_keys.flat_map { |key| [key, read_param(key)] }]
end

Expand Down

0 comments on commit 4651d99

Please sign in to comment.