Allow frr_t create /root/.history_frr with a private type

The file can be created when the frr service starts, so
a file transition is needed to be defined in the policy.
This commit is contained in:
Zdenek Pytela 2022-08-09 20:49:52 +02:00
parent 4a6900f6dc
commit 1e7608b86e

4
frr.te
View File

@ -112,3 +112,7 @@ optional_policy(`
optional_policy(` optional_policy(`
networkmanager_read_state(frr_t) networkmanager_read_state(frr_t)
') ')
optional_policy(`
userdom_admin_home_dir_filetrans(frr_t, frr_conf_t, file, ".history_frr")
')