Skip to content

Commit

Permalink
allow smart-proxy with PuppetCA to read some etc files
Browse files Browse the repository at this point in the history
  • Loading branch information
PopiBrossard committed Jul 26, 2024
1 parent 0bfceca commit dd09789
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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

0 comments on commit dd09789

Please sign in to comment.