summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtin-admin.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-03-13 08:14:26 -0400
committerColin Walters <walters@verbum.org>2014-03-13 08:21:45 -0400
commite11de9357cea643b45a2e5e3f94d33dbd84d9ca3 (patch)
treec9ff9a8582190452b456f1f6a493a97462113bcc /src/ostree/ot-builtin-admin.c
parent1f7f7382b176921bf44c7030474e59e0dfe25894 (diff)
downloadostree-e11de9357cea643b45a2e5e3f94d33dbd84d9ca3.tar.gz
admin: selinux-ensure-labeled: new builtin
Code like rpm-ostree generates disk images directly. In order to ensure SELinux labeling is correct, it currently has a helper program that runs over the deployment root, then over the whole disk and to only set a label if none exist. In order to make it easier to write installers such as Anaconda without having them depend on rpm-ostree (or whatever other build-server side program), pull in the helper code here.
Diffstat (limited to 'src/ostree/ot-builtin-admin.c')
-rw-r--r--src/ostree/ot-builtin-admin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ostree/ot-builtin-admin.c b/src/ostree/ot-builtin-admin.c
index e4ff7fe2..7ba4fc5c 100644
--- a/src/ostree/ot-builtin-admin.c
+++ b/src/ostree/ot-builtin-admin.c
@@ -38,6 +38,9 @@ typedef struct {
} OstreeAdminCommand;
static OstreeAdminCommand admin_subcommands[] = {
+#ifdef HAVE_SELINUX
+ { "selinux-ensure-labeled", ot_admin_builtin_selinux_ensure_labeled },
+#endif
{ "os-init", ot_admin_builtin_os_init },
{ "init-fs", ot_admin_builtin_init_fs },
{ "deploy", ot_admin_builtin_deploy },