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

Fix selinux policy on RHEL 8 #413

Merged
merged 2 commits into from
Jul 24, 2023
Merged
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: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
# Change made to fix an issue cause by security fix in Go 1.20.6 & 1.19.11 which was causing TestContainers to fail
# https://github.com/testcontainers/testcontainers-go/issues/1359
with:
go-version-file: 'go.mod'
go-version: '1.19.10'
- name: Run Integration Tests
run: |
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@${{ env.NFPM_VERSION }}
Expand Down
Binary file modified scripts/selinux/nginx_agent.pp
Binary file not shown.
24 changes: 21 additions & 3 deletions scripts/selinux/nginx_agent.te
Original file line number Diff line number Diff line change
Expand Up @@ -409,13 +409,31 @@ require {
#============= nginx_agent_t ==============
files_rw_etc_files(nginx_agent_t)

require {
type nginx_agent_t;
}

#============= nginx_agent_t ==============
files_read_var_lib_files(nginx_agent_t)

require {
type nginx_agent_t;
type dosfs_t;
}

#============= nginx_agent_t ==============
files_manage_usr_files(nginx_agent_t)
files_read_var_lib_files(nginx_agent_t)
allow nginx_agent_t var_lib_t:file write;
allow nginx_agent_t dosfs_t:filesystem getattr;

require {
type nginx_agent_t;
}

#============= nginx_agent_t ==============
apache_manage_lib(nginx_agent_t)

require {
type nginx_agent_t;
}

#============= nginx_agent_t ==============
files_manage_mounttab(nginx_agent_t)