Skip to content

Commit

Permalink
systemd: allow getattr of namespace files for more components
Browse files Browse the repository at this point in the history
Followup of #840 with a few more systemd components.

Signed-off-by: Rahul Sandhu <[email protected]>
  • Loading branch information
WavyEbuilder committed Jan 11, 2025
1 parent c89e874 commit c74cb85
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions policy/modules/admin/bootloader.te
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ ifdef(`distro_redhat',`
ifdef(`init_systemd',`
# these rules are required by systemd-boot-update
fs_getattr_cgroup(bootloader_t)
fs_getattr_nsfs_files(bootloader_t)
init_read_state(bootloader_t)
init_rw_inherited_stream_socket(bootloader_t)

Expand Down
1 change: 1 addition & 0 deletions policy/modules/system/logging.te
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ ifdef(`init_systemd',`
domain_read_all_domains_state(syslogd_t)

fs_list_cgroup_dirs(syslogd_t)
fs_getattr_nsfs_files(syslogd_t)
fs_watch_memory_pressure(syslogd_t)
fs_getattr_nsfs_files(syslogd_t)

Expand Down
1 change: 1 addition & 0 deletions policy/modules/system/lvm.te
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ sysnet_write_config(lvm_t)
userdom_use_inherited_user_terminals(lvm_t)

ifdef(`init_systemd',`
fs_getattr_nsfs_files(lvm_t)
fs_list_pstore_dirs(lvm_t)
fs_manage_hugetlbfs_dirs(lvm_t)
fs_search_cgroup_dirs(lvm_t)
Expand Down
2 changes: 2 additions & 0 deletions policy/modules/system/systemd.te
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@ files_read_usr_files(systemd_locale_t)

fs_getattr_all_fs(systemd_locale_t)
fs_search_cgroup_dirs(systemd_locale_t)
fs_getattr_nsfs_files(systemd_locale_t)

init_stream_connect(systemd_locale_t)

Expand Down Expand Up @@ -1557,6 +1558,7 @@ manage_sock_files_pattern(systemd_nsresourced_t, systemd_nsresourced_runtime_t,
init_runtime_filetrans(systemd_nsresourced_t, systemd_nsresourced_runtime_t, dir)

fs_getattr_cgroup(systemd_nsresourced_t)
fs_getattr_nsfs_files(systemd_nsresourced_t)

# for /proc/1/environ
init_read_state(systemd_nsresourced_t)
Expand Down

0 comments on commit c74cb85

Please sign in to comment.