fstools: Handle resizes of the root filesystem.

Resize2fs will create a .ismount-test-file temp file in the root of a
filesystem to resize.

Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>
This commit is contained in:
Chris PeBenito 2022-03-09 20:24:42 +00:00 committed by Chris PeBenito
parent 28ca7991df
commit 27bb8aead9
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ can_exec(fsadm_t, fsadm_exec_t)
allow fsadm_t fsadm_tmp_t:dir manage_dir_perms;
allow fsadm_t fsadm_tmp_t:file manage_file_perms;
files_tmp_filetrans(fsadm_t, fsadm_tmp_t, { file dir })
# resize2fs will create a .ismount-test-file temp file
# in the root of a filesystem to resize
files_root_filetrans(fsadm_t, fsadm_tmp_t, file)
allow fsadm_t fsadm_run_t:dir manage_dir_perms;
allow fsadm_t fsadm_run_t:file manage_file_perms;