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

Fixes #37999 - allow smart-proxy with PuppetCA to read some etc files #168

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions foreman-proxy.fc
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@
/var/run/foreman-proxy(/.*)? gen_context(system_u:object_r:foreman_proxy_var_run_t,s0)

/var/spool/foreman-proxy(/.*)? gen_context(system_u:object_r:foreman_proxy_spool_t,s0)

/etc/foreman-proxy(/.*)? gen_context(system_u:object_r:foreman_proxy_etc_t,s0)
6 changes: 6 additions & 0 deletions foreman-proxy.te
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ manage_dirs_pattern(foreman_proxy_t, foreman_proxy_spool_t, foreman_proxy_spool_
manage_files_pattern(foreman_proxy_t, foreman_proxy_spool_t, foreman_proxy_spool_t)
files_spool_filetrans(foreman_proxy_t, foreman_proxy_spool_t, { dir file })


# etc files support
type foreman_proxy_etc_t;
files_type(foreman_proxy_etc_t)
read_files_pattern(foreman_proxy_t, foreman_proxy_etc_t, foreman_proxy_etc_t)

# starting via /bin/env
corecmd_read_bin_symlinks(foreman_proxy_t)

Expand Down