kubernetes: allow container engines to mount on DRI devices if enabled
Signed-off-by: Kenton Groombridge <concord@gentoo.org>
This commit is contained in:
parent
16323cfce2
commit
a0018e4e85
@ -2065,6 +2065,24 @@ interface(`dev_manage_dri_dev',`
|
||||
allow $1 dri_device_t:chr_file map;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Mount on the dri devices.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`dev_mounton_dri_dev',`
|
||||
gen_require(`
|
||||
type dri_device_t;
|
||||
')
|
||||
|
||||
allow $1 dri_device_t:chr_file mounton;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Automatic type transition to the type
|
||||
|
@ -147,6 +147,10 @@ tunable_policy(`container_read_public_content',`
|
||||
miscfiles_mounton_all_public_files(kubernetes_container_engine_domain)
|
||||
')
|
||||
|
||||
tunable_policy(`container_use_dri',`
|
||||
dev_mounton_dri_dev(kubernetes_container_engine_domain)
|
||||
')
|
||||
|
||||
tunable_policy(`container_use_nfs',`
|
||||
fs_getattr_nfs(kubernetes_container_engine_domain)
|
||||
fs_remount_nfs(kubernetes_container_engine_domain)
|
||||
|
Loading…
Reference in New Issue
Block a user