Skip to content

Commit

Permalink
Move unconfined_domain(sap_unconfined_t) to an optional block
Browse files Browse the repository at this point in the history
This policy statement needs to be in an optional block for cases
when the unconfined module is disabled or removed.

Resolves: RHEL-37663
  • Loading branch information
zpytela committed Jun 11, 2024
1 parent 542f31f commit f464b86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion policy/modules/contrib/sap.te
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ type sap_unconfined_t;
type sap_exec_t;
files_type(sap_exec_t);
init_daemon_domain(sap_unconfined_t, sap_exec_t)
unconfined_domain(sap_unconfined_t)

#type sap_tmp_t;
#files_tmp_file(sap_tmp_t);
#manage_dirs_pattern(sap_unconfined_t, sap_tmp_t, sap_tmp_t)
#manage_files_pattern(sap_unconfined_t, sap_tmp_t, sap_tmp_t)
#files_tmp_filetrans(sap_unconfined_t, sap_tmp_t, { dir file })

optional_policy(`
unconfined_domain(sap_unconfined_t)
')

0 comments on commit f464b86

Please sign in to comment.