]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
add selinux readme file 253/head
authorOndrej Kozina <okozina@redhat.com>
Tue, 2 Aug 2016 13:11:10 +0000 (15:11 +0200)
committerOndrej Kozina <okozina@redhat.com>
Tue, 2 Aug 2016 14:37:50 +0000 (16:37 +0200)
doc/Makefile.am
doc/selinux-readme.txt [new file with mode: 0644]

index 73d2d766172b7feeec5eb73c6e268ee8f9295910..f4e6b41144e7f6d8330620cd575cc5a3b3713e51 100644 (file)
@@ -29,6 +29,10 @@ html: $(man_MANS:%.5=%.html) $(man_MANS:%.8=%.html)
 
 EXTRA_DIST = dbus-protocol.txt manpages.xsl html.xsl
 
+if ENABLE_SELINUX
+EXTRA_DIST += selinux-readme.txt
+endif
+
 clean-local:
        rm -f *.{5,8} *.html
 
diff --git a/doc/selinux-readme.txt b/doc/selinux-readme.txt
new file mode 100644 (file)
index 0000000..c0594d9
--- /dev/null
@@ -0,0 +1,24 @@
+Any distribution interested in enabling selinux support in snapper should be aware
+of following requirements to be able to run snapper in confined environment
+properly.
+
+The snapper with enabled selinux support requires following symbol provided by
+distributed libselinux package: selinux_snapperd_contexts_path. The symbol is
+available in libselinux upstream [1] since commit "b2c1b0baaf52" which should
+land in libselinux version 2.6 and higher.
+
+Also distribution is expected to install a file located on a path acquired via the
+call above. Usually the file is packaged together with selinux-policy. Currently
+the minimal required file content is as follows:
+
+snapperd_data = system_u:object_r:snapperd_data_t:s0
+
+Content description:
+
+a) the selinux context referenced by key 'snapperd_data' is used to label all
+snapper metadata stored in (including) /mnt/dir/.snapshots subvolume or directory.
+
+Keep this file up to date whenever requirements on a selinux enabled snapper gets
+changed!
+
+[1] https://github.com/SELinuxProject/selinux