diff options
author | 2022-08-26 14:02:45 -0400 | |
---|---|---|
committer | 2022-09-03 12:07:50 -0700 | |
commit | 5135e685790073660abb1e0ef52816fb542f75a9 (patch) | |
tree | be10ee4b9ea2302c9a3c280999042214ff1a93ac | |
parent | firewalld: allow to load kernel modules (diff) | |
download | hardened-refpolicy-5135e685790073660abb1e0ef52816fb542f75a9.tar.gz hardened-refpolicy-5135e685790073660abb1e0ef52816fb542f75a9.tar.bz2 hardened-refpolicy-5135e685790073660abb1e0ef52816fb542f75a9.zip |
firewalld: write tmpfs files
node=localhost type=AVC msg=audit(1661536245.787:9531): avc: denied { write } for pid=1008 comm="firewalld" path=2F6D656D66643A6C6962666669202864656C6574656429 dev="tmpfs" ino=2564 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file permissive=1
node=localhost type=AVC msg=audit(1661536245.788:9532): avc: denied { map } for pid=1008 comm="firewalld" path=2F6D656D66643A6C6962666669202864656C6574656429 dev="tmpfs" ino=2564 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file permissive=1
node=localhost type=AVC msg=audit(1661536245.788:9532): avc: denied { read execute } for pid=1008 comm="firewalld" path=2F6D656D66643A6C6962666669202864656C6574656429 dev="tmpfs" ino=2564 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file permissive=1
Signed-off-by: Dave Sugar <dsugar100@gmail.com>
Signed-off-by: Jason Zaman <perfinion@gentoo.org>
-rw-r--r-- | policy/modules/services/firewalld.te | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/policy/modules/services/firewalld.te b/policy/modules/services/firewalld.te index a32e4b93..32e16898 100644 --- a/policy/modules/services/firewalld.te +++ b/policy/modules/services/firewalld.te @@ -24,6 +24,9 @@ logging_log_file(firewalld_var_log_t) type firewalld_tmp_t; files_tmp_file(firewalld_tmp_t) +type firewalld_tmpfs_t; +files_tmpfs_file(firewalld_tmpfs_t) + ######################################## # # Local policy @@ -54,6 +57,11 @@ manage_dirs_pattern(firewalld_t, firewalld_runtime_t, firewalld_runtime_t) manage_files_pattern(firewalld_t, firewalld_runtime_t, firewalld_runtime_t) files_runtime_filetrans(firewalld_t, firewalld_runtime_t, { dir file }) +manage_dirs_pattern(firewalld_t, firewalld_tmpfs_t, firewalld_tmpfs_t) +manage_files_pattern(firewalld_t, firewalld_tmpfs_t, firewalld_tmpfs_t) +mmap_read_files_pattern(firewalld_t, firewalld_tmpfs_t, firewalld_tmpfs_t) +fs_tmpfs_filetrans(firewalld_t, firewalld_tmpfs_t, { dir file }) + kernel_read_crypto_sysctls(firewalld_t) kernel_read_network_state(firewalld_t) kernel_read_system_state(firewalld_t) |