filesystem, init: allow systemd to create pstore dirs

Signed-off-by: Kenton Groombridge <me@concord.sh>
This commit is contained in:
Kenton Groombridge 2021-04-12 16:33:55 -04:00
parent c0b1c7be66
commit 8887862973
2 changed files with 20 additions and 0 deletions

View File

@ -3868,6 +3868,25 @@ interface(`fs_getattr_pstore_dirs',`
dev_search_sysfs($1)
')
########################################
## <summary>
## Create pstore directories.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`fs_create_pstore_dirs',`
gen_require(`
type pstore_t;
')
create_dirs_pattern($1, pstore_t, pstore_t)
dev_search_sysfs($1)
')
########################################
## <summary>
## Relabel to/from pstore_t directories.

View File

@ -441,6 +441,7 @@ ifdef(`init_systemd',`
# mount-setup
fs_unmount_autofs(init_t)
fs_getattr_pstore_dirs(init_t)
fs_create_pstore_dirs(init_t)
# for network namespaces
fs_read_nsfs_files(init_t)