Skip to content

Commit

Permalink
ovs: allow reading svirt_tmp_t
Browse files Browse the repository at this point in the history
Required by live migration

Resolves: rhbz#1542107

Signed-off-by: Lon Hohberger <lhh@redhat.com>
  • Loading branch information
lhh committed Feb 7, 2018
1 parent c6158ce commit 4e6703e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions os-ovs.te
Expand Up @@ -17,6 +17,7 @@ gen_require(`
type init_tmp_t;
type tun_tap_device_t;
type svirt_t;
type svirt_tmpfs_t;
type virt_cache_t;
class dir search;
class file { write read getattr open };
Expand Down Expand Up @@ -109,3 +110,6 @@ corenet_tcp_connect_all_ports(openvswitch_t)
# #1498797
allow openvswitch_t self:capability { audit_write dac_override };
allow openvswitch_t self:netlink_audit_socket { create nlmsg_relay read write };

# #1542107
allow openvswitch_t svirt_tmpfs_t:file { read write };
1 change: 1 addition & 0 deletions tests/bz1542107
@@ -0,0 +1 @@
type=AVC msg=audit(1517841541.153:650): avc: denied { read write } for pid=7168 comm="vhost_thread2" path=2F6D656D66643A76686F73742D6C6F67202864656C6574656429 dev="tmpfs" ino=324410 scontext=system_u:system_r:openvswitch_t:s0 tcontext=system_u:object_r:svirt_tmpfs_t:s0 tclass=file

0 comments on commit 4e6703e

Please sign in to comment.