diff options
author | Richard Jones <rjones@trick.home.annexia.org> | 2009-08-12 16:31:06 +0100 |
---|---|---|
committer | Richard Jones <rjones@trick.home.annexia.org> | 2009-08-12 17:23:58 +0100 |
commit | 2361905686c62b4163232139c3d390acd2c07916 (patch) | |
tree | 94f3810a9471541b9c47d8fad4bb99601c0c162d /appliance/init | |
parent | 8157503b09e24667ddab833c1d12dd643ceac71b (diff) | |
download | libguestfs-2361905686c62b4163232139c3d390acd2c07916.tar.gz libguestfs-2361905686c62b4163232139c3d390acd2c07916.tar.xz libguestfs-2361905686c62b4163232139c3d390acd2c07916.zip |
If using SELinux, mount /selinux in the appliance.
If selinux=1 on the Linux kernel command line, then we mount
/selinux in the appliance. We will also bind-mount this
directory into guests when we run commands.
Diffstat (limited to 'appliance/init')
-rwxr-xr-x | appliance/init | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/appliance/init b/appliance/init index b33a34cb..fe135b44 100755 --- a/appliance/init +++ b/appliance/init @@ -33,6 +33,10 @@ else modprobe virtio_net fi +if grep -sq selinux=1 /proc/cmdline; then + mount -t selinuxfs none /selinux +fi + modprobe dm_mod ||: ifconfig lo 127.0.0.1 |