summaryrefslogtreecommitdiffstats
path: root/recipes-extended/cronie/files/Disable-hard-link-check-by-default.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/cronie/files/Disable-hard-link-check-by-default.patch')
-rw-r--r--recipes-extended/cronie/files/Disable-hard-link-check-by-default.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-extended/cronie/files/Disable-hard-link-check-by-default.patch b/recipes-extended/cronie/files/Disable-hard-link-check-by-default.patch
new file mode 100644
index 0000000..cd3bfbe
--- /dev/null
+++ b/recipes-extended/cronie/files/Disable-hard-link-check-by-default.patch
@@ -0,0 +1,32 @@
1From 9ef211dcb89edbad605c49964faf302fb97b6ba9 Mon Sep 17 00:00:00 2001
2From: Guy Shapiro <guy.shapiro@mobi-wize.com>
3Date: Thu, 24 Aug 2017 10:58:14 +0300
4Subject: [PATCH] Disable hard link check by default
5
6Without the "-p" flag, cronie does several checks on the
7crontab files. Those checks prevent crontrab files from being
8editable by unauthorized users.
9One of those checks won't permit loading file that is
10hard link count greater than 1.
11
12When OSTree manages crontab file, it uses hard links.
13All those user checks are irrelevant in the case embedded system, so
14disable them by default.
15
16Signed-off-by: Guy Shapiro <guy.shapiro@mobi-wize.com>
17---
18 crond.sysconfig | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/crond.sysconfig b/crond.sysconfig
22index ee23703..1cb083f 100644
23--- a/crond.sysconfig
24+++ b/crond.sysconfig
25@@ -1,3 +1,3 @@
26 # Settings for the CRON daemon.
27 # CRONDARGS= : any extra command-line startup arguments for crond
28-CRONDARGS=
29+CRONDARGS="-p"
30--
312.1.4
32