From 1f80f8f37107f458bf2d71db987c44f05269e659 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Mon, 13 Dec 2010 12:44:09 +0000 Subject: [PATCH] HAVE_SELINUX again --- libdm/libdm-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c index 6ab3172e0..6d8bcbd8a 100644 --- a/libdm/libdm-common.c +++ b/libdm/libdm-common.c @@ -387,10 +387,10 @@ int dm_task_add_target(struct dm_task *dmt, uint64_t start, uint64_t size, return 1; } +#ifdef HAVE_SELINUX static int _selabel_lookup(const char *path, mode_t mode, security_context_t *scontext) { -#ifdef HAVE_SELINUX #ifdef HAVE_SELINUX_LABEL_H if (!_selabel_handle && !(_selabel_handle = selabel_open(SELABEL_CTX_FILE, NULL, 0))) { @@ -407,10 +407,10 @@ static int _selabel_lookup(const char *path, mode_t mode, log_error("matchpathcon failed: %s", strerror(errno)); return 0; } -#endif #endif return 1; } +#endif int dm_prepare_selinux_context(const char *path, mode_t mode) { -- 2.43.5