diff options
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.patch | 32 |
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 @@ | |||
1 | From 9ef211dcb89edbad605c49964faf302fb97b6ba9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Guy Shapiro <guy.shapiro@mobi-wize.com> | ||
3 | Date: Thu, 24 Aug 2017 10:58:14 +0300 | ||
4 | Subject: [PATCH] Disable hard link check by default | ||
5 | |||
6 | Without the "-p" flag, cronie does several checks on the | ||
7 | crontab files. Those checks prevent crontrab files from being | ||
8 | editable by unauthorized users. | ||
9 | One of those checks won't permit loading file that is | ||
10 | hard link count greater than 1. | ||
11 | |||
12 | When OSTree manages crontab file, it uses hard links. | ||
13 | All those user checks are irrelevant in the case embedded system, so | ||
14 | disable them by default. | ||
15 | |||
16 | Signed-off-by: Guy Shapiro <guy.shapiro@mobi-wize.com> | ||
17 | --- | ||
18 | crond.sysconfig | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/crond.sysconfig b/crond.sysconfig | ||
22 | index 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 | -- | ||
31 | 2.1.4 | ||
32 | |||