mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Autoconf selinux support
If libselinux is detected on your system at configure time link against it. This allows us to use a library call to detect if selinux is enabled and if it is to pass the mount option: "context=\"system_u:object_r:file_t:s0" For now this is required because none of the existing selinux policies are aware of the zfs filesystem type. Because of this they do not properly enable xattr based labeling even though zfs supports all of the required hooks. Until distro's add zfs as a known xattr friendly fs type we must use mntpoint labeling. Alternately, end users could modify their existing selinux policy with a little guidance.
This commit is contained in:
@@ -67,6 +67,7 @@ am__aclocal_m4_deps = \
|
||||
$(top_srcdir)/config/user-libshare.m4 \
|
||||
$(top_srcdir)/config/user-libuuid.m4 \
|
||||
$(top_srcdir)/config/user-nptl_guard_within_stack.m4 \
|
||||
$(top_srcdir)/config/user-selinux.m4 \
|
||||
$(top_srcdir)/config/user-zlib.m4 $(top_srcdir)/config/user.m4 \
|
||||
$(top_srcdir)/config/zfs-build.m4 \
|
||||
$(top_srcdir)/config/zfs-meta.m4 $(top_srcdir)/configure.ac
|
||||
@@ -241,6 +242,7 @@ LDFLAGS = @LDFLAGS@
|
||||
LIBBLKID = @LIBBLKID@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBSELINUX = @LIBSELINUX@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUUID = @LIBUUID@
|
||||
LINUX = @LINUX@
|
||||
|
||||
@@ -66,6 +66,7 @@ am__aclocal_m4_deps = \
|
||||
$(top_srcdir)/config/user-libshare.m4 \
|
||||
$(top_srcdir)/config/user-libuuid.m4 \
|
||||
$(top_srcdir)/config/user-nptl_guard_within_stack.m4 \
|
||||
$(top_srcdir)/config/user-selinux.m4 \
|
||||
$(top_srcdir)/config/user-zlib.m4 $(top_srcdir)/config/user.m4 \
|
||||
$(top_srcdir)/config/zfs-build.m4 \
|
||||
$(top_srcdir)/config/zfs-meta.m4 $(top_srcdir)/configure.ac
|
||||
@@ -139,6 +140,7 @@ LDFLAGS = @LDFLAGS@
|
||||
LIBBLKID = @LIBBLKID@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBSELINUX = @LIBSELINUX@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUUID = @LIBUUID@
|
||||
LINUX = @LINUX@
|
||||
|
||||
@@ -67,6 +67,7 @@ am__aclocal_m4_deps = \
|
||||
$(top_srcdir)/config/user-libshare.m4 \
|
||||
$(top_srcdir)/config/user-libuuid.m4 \
|
||||
$(top_srcdir)/config/user-nptl_guard_within_stack.m4 \
|
||||
$(top_srcdir)/config/user-selinux.m4 \
|
||||
$(top_srcdir)/config/user-zlib.m4 $(top_srcdir)/config/user.m4 \
|
||||
$(top_srcdir)/config/zfs-build.m4 \
|
||||
$(top_srcdir)/config/zfs-meta.m4 $(top_srcdir)/configure.ac
|
||||
@@ -143,6 +144,7 @@ LDFLAGS = @LDFLAGS@
|
||||
LIBBLKID = @LIBBLKID@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBSELINUX = @LIBSELINUX@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUUID = @LIBUUID@
|
||||
LINUX = @LINUX@
|
||||
|
||||
@@ -67,6 +67,7 @@ am__aclocal_m4_deps = \
|
||||
$(top_srcdir)/config/user-libshare.m4 \
|
||||
$(top_srcdir)/config/user-libuuid.m4 \
|
||||
$(top_srcdir)/config/user-nptl_guard_within_stack.m4 \
|
||||
$(top_srcdir)/config/user-selinux.m4 \
|
||||
$(top_srcdir)/config/user-zlib.m4 $(top_srcdir)/config/user.m4 \
|
||||
$(top_srcdir)/config/zfs-build.m4 \
|
||||
$(top_srcdir)/config/zfs-meta.m4 $(top_srcdir)/configure.ac
|
||||
@@ -143,6 +144,7 @@ LDFLAGS = @LDFLAGS@
|
||||
LIBBLKID = @LIBBLKID@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBSELINUX = @LIBSELINUX@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUUID = @LIBUUID@
|
||||
LINUX = @LINUX@
|
||||
|
||||
@@ -67,6 +67,7 @@ am__aclocal_m4_deps = \
|
||||
$(top_srcdir)/config/user-libshare.m4 \
|
||||
$(top_srcdir)/config/user-libuuid.m4 \
|
||||
$(top_srcdir)/config/user-nptl_guard_within_stack.m4 \
|
||||
$(top_srcdir)/config/user-selinux.m4 \
|
||||
$(top_srcdir)/config/user-zlib.m4 $(top_srcdir)/config/user.m4 \
|
||||
$(top_srcdir)/config/zfs-build.m4 \
|
||||
$(top_srcdir)/config/zfs-meta.m4 $(top_srcdir)/configure.ac
|
||||
@@ -203,6 +204,7 @@ LDFLAGS = @LDFLAGS@
|
||||
LIBBLKID = @LIBBLKID@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBSELINUX = @LIBSELINUX@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUUID = @LIBUUID@
|
||||
LINUX = @LINUX@
|
||||
|
||||
@@ -65,6 +65,7 @@ am__aclocal_m4_deps = \
|
||||
$(top_srcdir)/config/user-libshare.m4 \
|
||||
$(top_srcdir)/config/user-libuuid.m4 \
|
||||
$(top_srcdir)/config/user-nptl_guard_within_stack.m4 \
|
||||
$(top_srcdir)/config/user-selinux.m4 \
|
||||
$(top_srcdir)/config/user-zlib.m4 $(top_srcdir)/config/user.m4 \
|
||||
$(top_srcdir)/config/zfs-build.m4 \
|
||||
$(top_srcdir)/config/zfs-meta.m4 $(top_srcdir)/configure.ac
|
||||
@@ -178,6 +179,7 @@ LDFLAGS = @LDFLAGS@
|
||||
LIBBLKID = @LIBBLKID@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBSELINUX = @LIBSELINUX@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUUID = @LIBUUID@
|
||||
LINUX = @LINUX@
|
||||
|
||||
@@ -67,6 +67,7 @@ am__aclocal_m4_deps = \
|
||||
$(top_srcdir)/config/user-libshare.m4 \
|
||||
$(top_srcdir)/config/user-libuuid.m4 \
|
||||
$(top_srcdir)/config/user-nptl_guard_within_stack.m4 \
|
||||
$(top_srcdir)/config/user-selinux.m4 \
|
||||
$(top_srcdir)/config/user-zlib.m4 $(top_srcdir)/config/user.m4 \
|
||||
$(top_srcdir)/config/zfs-build.m4 \
|
||||
$(top_srcdir)/config/zfs-meta.m4 $(top_srcdir)/configure.ac
|
||||
@@ -165,6 +166,7 @@ LDFLAGS = @LDFLAGS@
|
||||
LIBBLKID = @LIBBLKID@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBSELINUX = @LIBSELINUX@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUUID = @LIBUUID@
|
||||
LINUX = @LINUX@
|
||||
|
||||
@@ -67,6 +67,7 @@ am__aclocal_m4_deps = \
|
||||
$(top_srcdir)/config/user-libshare.m4 \
|
||||
$(top_srcdir)/config/user-libuuid.m4 \
|
||||
$(top_srcdir)/config/user-nptl_guard_within_stack.m4 \
|
||||
$(top_srcdir)/config/user-selinux.m4 \
|
||||
$(top_srcdir)/config/user-zlib.m4 $(top_srcdir)/config/user.m4 \
|
||||
$(top_srcdir)/config/zfs-build.m4 \
|
||||
$(top_srcdir)/config/zfs-meta.m4 $(top_srcdir)/configure.ac
|
||||
@@ -165,6 +166,7 @@ LDFLAGS = @LDFLAGS@
|
||||
LIBBLKID = @LIBBLKID@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBSELINUX = @LIBSELINUX@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUUID = @LIBUUID@
|
||||
LINUX = @LINUX@
|
||||
|
||||
@@ -67,6 +67,7 @@ am__aclocal_m4_deps = \
|
||||
$(top_srcdir)/config/user-libshare.m4 \
|
||||
$(top_srcdir)/config/user-libuuid.m4 \
|
||||
$(top_srcdir)/config/user-nptl_guard_within_stack.m4 \
|
||||
$(top_srcdir)/config/user-selinux.m4 \
|
||||
$(top_srcdir)/config/user-zlib.m4 $(top_srcdir)/config/user.m4 \
|
||||
$(top_srcdir)/config/zfs-build.m4 \
|
||||
$(top_srcdir)/config/zfs-meta.m4 $(top_srcdir)/configure.ac
|
||||
@@ -203,6 +204,7 @@ LDFLAGS = @LDFLAGS@
|
||||
LIBBLKID = @LIBBLKID@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBSELINUX = @LIBSELINUX@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUUID = @LIBUUID@
|
||||
LINUX = @LINUX@
|
||||
|
||||
@@ -67,6 +67,7 @@ am__aclocal_m4_deps = \
|
||||
$(top_srcdir)/config/user-libshare.m4 \
|
||||
$(top_srcdir)/config/user-libuuid.m4 \
|
||||
$(top_srcdir)/config/user-nptl_guard_within_stack.m4 \
|
||||
$(top_srcdir)/config/user-selinux.m4 \
|
||||
$(top_srcdir)/config/user-zlib.m4 $(top_srcdir)/config/user.m4 \
|
||||
$(top_srcdir)/config/zfs-build.m4 \
|
||||
$(top_srcdir)/config/zfs-meta.m4 $(top_srcdir)/configure.ac
|
||||
@@ -165,6 +166,7 @@ LDFLAGS = @LDFLAGS@
|
||||
LIBBLKID = @LIBBLKID@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBSELINUX = @LIBSELINUX@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUUID = @LIBUUID@
|
||||
LINUX = @LINUX@
|
||||
|
||||
@@ -67,6 +67,7 @@ am__aclocal_m4_deps = \
|
||||
$(top_srcdir)/config/user-libshare.m4 \
|
||||
$(top_srcdir)/config/user-libuuid.m4 \
|
||||
$(top_srcdir)/config/user-nptl_guard_within_stack.m4 \
|
||||
$(top_srcdir)/config/user-selinux.m4 \
|
||||
$(top_srcdir)/config/user-zlib.m4 $(top_srcdir)/config/user.m4 \
|
||||
$(top_srcdir)/config/zfs-build.m4 \
|
||||
$(top_srcdir)/config/zfs-meta.m4 $(top_srcdir)/configure.ac
|
||||
@@ -165,6 +166,7 @@ LDFLAGS = @LDFLAGS@
|
||||
LIBBLKID = @LIBBLKID@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBSELINUX = @LIBSELINUX@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUUID = @LIBUUID@
|
||||
LINUX = @LINUX@
|
||||
|
||||
@@ -67,6 +67,7 @@ am__aclocal_m4_deps = \
|
||||
$(top_srcdir)/config/user-libshare.m4 \
|
||||
$(top_srcdir)/config/user-libuuid.m4 \
|
||||
$(top_srcdir)/config/user-nptl_guard_within_stack.m4 \
|
||||
$(top_srcdir)/config/user-selinux.m4 \
|
||||
$(top_srcdir)/config/user-zlib.m4 $(top_srcdir)/config/user.m4 \
|
||||
$(top_srcdir)/config/zfs-build.m4 \
|
||||
$(top_srcdir)/config/zfs-meta.m4 $(top_srcdir)/configure.ac
|
||||
@@ -165,6 +166,7 @@ LDFLAGS = @LDFLAGS@
|
||||
LIBBLKID = @LIBBLKID@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBSELINUX = @LIBSELINUX@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUUID = @LIBUUID@
|
||||
LINUX = @LINUX@
|
||||
|
||||
Reference in New Issue
Block a user