Skip to content

Commit

Permalink
Merge pull request #842 from WavyEbuilder/main
Browse files Browse the repository at this point in the history
systemd: various changes
  • Loading branch information
pebenito authored Jan 6, 2025
2 parents 63f0c51 + 4a08aff commit cc1f455
Show file tree
Hide file tree
Showing 3 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 @@ -89,6 +89,7 @@ dev_dontaudit_write_sysfs_files(bootloader_t)
# needed on some hardware
dev_rw_nvram(bootloader_t)

fs_list_auto_mountpoints(bootloader_t)
fs_getattr_xattr_fs(bootloader_t)
fs_getattr_dos_fs(bootloader_t)
fs_getattr_tmpfs(bootloader_t)
Expand Down
1 change: 1 addition & 0 deletions policy/modules/system/systemd.fc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/etc/udev/hwdb\.bin -- gen_context(system_u:object_r:systemd_hwdb_t,s0)

/run/log/journal(/.*)? gen_context(system_u:object_r:systemd_journal_t,s0)
/run/log/systemd(/.*)? gen_context(system_u:object_r:systemd_log_t,s0)

/usr/bin/journalctl -- gen_context(system_u:object_r:systemd_journalctl_exec_t,s0)
/usr/bin/systemd-analyze -- gen_context(system_u:object_r:systemd_analyze_exec_t,s0)
Expand Down
3 changes: 3 additions & 0 deletions policy/modules/system/systemd.te
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,9 @@ tunable_policy(`systemd_logind_get_bootloader',`
fs_list_dos(systemd_logind_t)
fs_read_dos_files(systemd_logind_t)

# automounted bootloader partitions have dosfs_t for contents inside them, so we only need to allow getattr
fs_getattr_autofs(systemd_logind_t)

files_search_boot(systemd_logind_t)
')
# systemd-logind uses util-linux's blkid in order to find the ESP (EFI System Partition).
Expand Down

0 comments on commit cc1f455

Please sign in to comment.