add more capabilities to openvswitch_load_module_t

When openvswitch starts, it is denied reading modules.* files, so this patch allows openvswitch to do so.

Signed-off-by: bigclouds <yuelg@chinaunicom.cn>
This commit is contained in:
bigclouds 2022-11-07 02:12:41 +00:00 committed by Gitee
parent d9321b388d
commit e968019d8d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -32,7 +32,7 @@ index b2c63ab..8f76c14 100644
allow openvswitch_load_module_t kernel_t:system module_request;
allow openvswitch_load_module_t modules_conf_t:dir { getattr open read search };
allow openvswitch_load_module_t modules_conf_t:file { getattr open read };
+allow openvswitch_load_module_t modules_dep_t:file open;
+allow openvswitch_load_module_t modules_dep_t:file { getattr map open read };
allow openvswitch_load_module_t modules_object_t:file { map getattr open read };
allow openvswitch_load_module_t modules_object_t:dir { getattr open read search };
allow openvswitch_load_module_t openvswitch_load_module_exec_t:file { entrypoint };