mirror of
https://github.com/SELinuxProject/refpolicy
synced 2025-03-11 07:40:18 +00:00
zed: allow managing /etc/exports.d/zfs.exports
Signed-off-by: Kenton Groombridge <concord@gentoo.org>
This commit is contained in:
parent
b74dbb649e
commit
838ff87b62
@ -87,6 +87,24 @@ interface(`rpc_read_exports',`
|
||||
allow $1 exports_t:file read_file_perms;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Create export files.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`rpc_create_exports',`
|
||||
gen_require(`
|
||||
type exports_t;
|
||||
')
|
||||
|
||||
create_files_pattern($1, exports_t, exports_t)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Write export files.
|
||||
|
@ -71,6 +71,12 @@ udev_search_runtime(zed_t)
|
||||
|
||||
zfs_rw_zpool_cache(zed_t)
|
||||
|
||||
optional_policy(`
|
||||
# for managing /etc/exports.d/zfs.exports
|
||||
rpc_create_exports(zed_t)
|
||||
rpc_write_exports(zed_t)
|
||||
')
|
||||
|
||||
########################################
|
||||
#
|
||||
# zfs local policy
|
||||
|
Loading…
Reference in New Issue
Block a user