]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
build: default selinuxfs mount point to /sys/fs/selinux
authorDaniel J Walsh <dwalsh@redhat.com>
Fri, 28 Sep 2012 18:11:43 +0000 (14:11 -0400)
committerEric Blake <eblake@redhat.com>
Fri, 28 Sep 2012 19:50:06 +0000 (13:50 -0600)
Currently if you build on a machine that does not support SELinux we end up
with the default mount point being /selinux, since this is moved to
/sys/fs/selinux, we should start defaulting there.

I believe this is causing a bug in libvirt-lxc when /selinux does not exists,
even though /sys/fs/selinux exists.

configure.ac

index ae26de7ba9a72272ed4da3ad84fe29cc13336ee6..13967e90bb254ae6c3f9b914aac932d238b291e4 100644 (file)
@@ -1455,9 +1455,8 @@ fi
 if test "$with_selinux" = "yes"; then
   AC_MSG_CHECKING([SELinux mount point])
   if test "$with_selinux_mount" = "check" || test -z "$with_selinux_mount"; then
-    if test -d /sys/fs/selinux ; then
-      SELINUX_MOUNT=/sys/fs/selinux
-    else
+    SELINUX_MOUNT=/sys/fs/selinux
+    if ! test -d ${SELINUX_MOUNT} && test -d /selinux ; then
       SELINUX_MOUNT=/selinux
     fi
   else