aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/src/selinux_internal.h
diff options
context:
space:
mode:
authorPetr Lautrbach <plautrba@redhat.com>2016-06-20 13:09:51 +0200
committerStephen Smalley <sds@tycho.nsa.gov>2016-06-23 12:51:23 -0400
commitb2c1b0baaf52d79f8050fc1e3c146c698ef0ad7a (patch)
tree040967d3d4dfefab5aa764a094c56ca017529c43 /libselinux/src/selinux_internal.h
parent1814207f685e7a744d72ec07016d68f708888769 (diff)
downloadandroid_external_selinux-b2c1b0baaf52d79f8050fc1e3c146c698ef0ad7a.tar.gz
android_external_selinux-b2c1b0baaf52d79f8050fc1e3c146c698ef0ad7a.tar.bz2
android_external_selinux-b2c1b0baaf52d79f8050fc1e3c146c698ef0ad7a.zip
libselinux: add selinux_snapperd_contexts_path()
Snapper needs a way how to set a proper selinux context on btrfs subvolumes originating in snapshot create command. Fs can't handle it on its own so snapper will enforce .snapshots subvolume relabeling according to a file returned by selinux_snapperd_contexts_path(). The format of the file will be similar to other contexts file: snapperd_data = system_u:object_r:snapperd_data_t:s0 Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1247530 https://bugzilla.redhat.com/show_bug.cgi?id=1247532 Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
Diffstat (limited to 'libselinux/src/selinux_internal.h')
-rw-r--r--libselinux/src/selinux_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libselinux/src/selinux_internal.h b/libselinux/src/selinux_internal.h
index 46566f62..9b9145cc 100644
--- a/libselinux/src/selinux_internal.h
+++ b/libselinux/src/selinux_internal.h
@@ -84,6 +84,7 @@ hidden_proto(selinux_mkload_policy)
hidden_proto(selinux_x_context_path)
hidden_proto(selinux_sepgsql_context_path)
hidden_proto(selinux_openssh_contexts_path)
+ hidden_proto(selinux_snapperd_contexts_path)
hidden_proto(selinux_systemd_contexts_path)
hidden_proto(selinux_path)
hidden_proto(selinux_check_passwd_access)