Skip to content

Commit

Permalink
Fixes #37497 - allow bootdisk to access /dev/shm
Browse files Browse the repository at this point in the history
On EL8 genisoimage doesn't need access to /dev/shm as it does not use
libburn.
On EL9 it *does* use libburn and that needs accss to /dev/shm.

Let's allow it.
  • Loading branch information
evgeni committed Jun 3, 2024
1 parent ed5f66a commit 5e2a6b8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions foreman.te
Original file line number Diff line number Diff line change
Expand Up @@ -518,3 +518,12 @@ allow httpd_t foreman_lib_t:lnk_file { getattr read };
# and manage links
allow foreman_rails_t tmp_t:file map;
allow foreman_rails_t tmp_t:lnk_file { create unlink };

######################################
#
# Foreman Bootdisk plugin
#

# The plugin spawns genisoimage which needs access to /dev/shm
allow foreman_rails_t tmpfs_t:filesystem getattr;
allow foreman_rails_t fs_t:filesystem getattr;

0 comments on commit 5e2a6b8

Please sign in to comment.