Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update - add unified_mode true to resources #149

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This file is used to changes made in each version of the selinux_policy cookbook.

## Unreleased

- Add `unified_mode true` to resources

## 2.4.3 (2020-08-07)

- Ship the correct license file since this cookbook was relicensed - [@tas50](https://github.com/tas50)
Expand Down
2 changes: 2 additions & 0 deletions resources/boolean.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
property :force, [true, false], default: false
property :allow_disabled, [true, false], default: true

unified_mode true

# Set and persist
action :setpersist do
sebool(new_resource, true)
Expand Down
2 changes: 2 additions & 0 deletions resources/fcontext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
property :file_type, String, default: 'a', equal_to: %w(a f d c b s l p)
property :allow_disabled, [true, false], default: true

unified_mode true

action :addormodify do
run_action(:add)
run_action(:modify)
Expand Down
2 changes: 2 additions & 0 deletions resources/install.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
property :allow_disabled, [true, false], default: true

unified_mode true

action :install do
case node['platform_family']
when 'debian'
Expand Down
2 changes: 2 additions & 0 deletions resources/module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
property :cookbook, String # Related to directory
property :allow_disabled, [true, false], default: true

unified_mode true

action :deploy do
run_action(:fetch)
run_action(:compile)
Expand Down
2 changes: 2 additions & 0 deletions resources/permissive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

property :allow_disabled, [true, false], default: true

unified_mode true

# Create if doesn't exist, do not touch if port is already registered (even under different type)
action :add do
execute "selinux-permissive-#{new_resource.name}-add" do
Expand Down
2 changes: 2 additions & 0 deletions resources/port.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
property :secontext, String
property :allow_disabled, [true, false], default: true

unified_mode true

action :addormodify do
# TODO: We can be a bit more clever here, and try to detect if it's already
# there then modify
Expand Down