-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from mobiwize/morty
Fix cronie and OSTree conflicts
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
SRC_URI += "file://Disable-hard-link-check-by-default.patch " | ||
export SPOOL_DIR = "${datadir}/cronie-spool" | ||
FILES_${PN} += "${datadir}/cronie-spool" | ||
|
||
do_install_append () { | ||
install -d ${D}${datadir}/cronie-spool/ | ||
} |
32 changes: 32 additions & 0 deletions
32
recipes-extended/cronie/files/Disable-hard-link-check-by-default.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From 9ef211dcb89edbad605c49964faf302fb97b6ba9 Mon Sep 17 00:00:00 2001 | ||
From: Guy Shapiro <[email protected]> | ||
Date: Thu, 24 Aug 2017 10:58:14 +0300 | ||
Subject: [PATCH] Disable hard link check by default | ||
|
||
Without the "-p" flag, cronie does several checks on the | ||
crontab files. Those checks prevent crontrab files from being | ||
editable by unauthorized users. | ||
One of those checks won't permit loading file that is | ||
hard link count greater than 1. | ||
|
||
When OSTree manages crontab file, it uses hard links. | ||
All those user checks are irrelevant in the case embedded system, so | ||
disable them by default. | ||
|
||
Signed-off-by: Guy Shapiro <[email protected]> | ||
--- | ||
crond.sysconfig | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/crond.sysconfig b/crond.sysconfig | ||
index ee23703..1cb083f 100644 | ||
--- a/crond.sysconfig | ||
+++ b/crond.sysconfig | ||
@@ -1,3 +1,3 @@ | ||
# Settings for the CRON daemon. | ||
# CRONDARGS= : any extra command-line startup arguments for crond | ||
-CRONDARGS= | ||
+CRONDARGS="-p" | ||
-- | ||
2.1.4 | ||
|