Blame SOURCES/0003-sssctl-config-check-access-check-report.patch

b2d430
From 0df858e26420bc6fb49819572694fced6791d414 Mon Sep 17 00:00:00 2001
b2d430
From: =?UTF-8?q?Michal=20=C5=BDidek?= <mzidek@redhat.com>
b2d430
Date: Thu, 7 Jul 2016 15:43:11 +0200
b2d430
Subject: [PATCH 03/18] sssctl: config-check access check report
b2d430
MIME-Version: 1.0
b2d430
Content-Type: text/plain; charset=UTF-8
b2d430
Content-Transfer-Encoding: 8bit
b2d430
b2d430
Improve output when access check error
b2d430
is detected by sssctl config-check command.
b2d430
b2d430
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
b2d430
(cherry picked from commit 9dc66cb6b96a885f7272a3c4aa6a44d60cdce82c)
b2d430
---
b2d430
 src/tools/sssctl/sssctl_config.c | 3 ++-
b2d430
 1 file changed, 2 insertions(+), 1 deletion(-)
b2d430
b2d430
diff --git a/src/tools/sssctl/sssctl_config.c b/src/tools/sssctl/sssctl_config.c
b2d430
index fc13582accd63f58c9d8bce59c4d6e898a96b170..4f6dbcdd7d04183c65b6613efbe5ab95df19e2c7 100644
b2d430
--- a/src/tools/sssctl/sssctl_config.c
b2d430
+++ b/src/tools/sssctl/sssctl_config.c
b2d430
@@ -68,7 +68,8 @@ errno_t sssctl_config_check(struct sss_cmdline *cmdline,
b2d430
     /* Check the file permissions */
b2d430
     ret = sss_ini_config_access_check(init_data);
b2d430
     if (ret != EOK) {
b2d430
-        printf(_("Access check on sssd.conf file failed.\n"));
b2d430
+        printf(_("File ownership and permissions check failed. "
b2d430
+               "Expected root:root and 0600.\n"));
b2d430
         ret = EPERM;
b2d430
         goto done;
b2d430
     }
b2d430
-- 
b2d430
2.4.11
b2d430