]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Set a security context on /dev and /dev/pts mounts
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 25 Jan 2012 14:12:54 +0000 (14:12 +0000)
committerEric Blake <eblake@redhat.com>
Fri, 3 Feb 2012 00:45:19 +0000 (17:45 -0700)
commit5df67cdcd37f18094526b9cf66252dfa8fc88b2c
treef342ac1e0465b916e6fa9196db3a1b85626bf311
parent0f01192e7e5c0fb8ead1ae1c92f03aefc2b3cfc0
Set a security context on /dev and /dev/pts mounts

To allow the container to access /dev and /dev/pts when under
sVirt, set an explicit mount option. Also set a max size on
the /dev mount to prevent DOS on memory usage

* src/lxc/lxc_container.c: Set /dev mount context
* src/lxc/lxc_controller.c: Set /dev/pts mount context
src/lxc/lxc_container.c
src/lxc/lxc_controller.c