forked from cmusatyalab/vmnetx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vmnetx.te
27 lines (23 loc) · 864 Bytes
/
vmnetx.te
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# SELinux policy for vmnetx
module vmnetx 1.3;
require {
type fusefs_t;
type svirt_t;
type virt_home_t;
class filesystem { getattr };
class dir { getattr search open read write add_name remove_name ioctl };
class file { getattr open read write ioctl };
class sock_file { create unlink };
}
## Allow qemu access to files in the vmnetfs filesystem. More-or-less
## reimplements the virt_use_fusefs boolean. There isn't really a better
## way to do this; see bug #7.
allow svirt_t fusefs_t:filesystem { getattr };
allow svirt_t fusefs_t:dir { getattr search open read ioctl };
allow svirt_t fusefs_t:file { getattr open read write ioctl };
## Work around RHBZ#809910
# qemu logging
allow svirt_t virt_home_t:dir { write add_name remove_name };
allow svirt_t virt_home_t:file write;
# Monitor socket
allow svirt_t virt_home_t:sock_file { create unlink };