From: Marcela Date: Tue, 27 May 2008 11:59:11 +0000 (+0200) Subject: Keyring will be created after restart of computer and services X-Git-Tag: cronie-1.1~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c1ee6614c04365267fb612fe16bd5e4ce84f2be;p=cronie Keyring will be created after restart of computer and services won't be dying on selinux denial. The reason for this change was pam-devels update. --- diff --git a/src/security.c b/src/security.c index 2c20f90..3e13cc8 100644 --- a/src/security.c +++ b/src/security.c @@ -370,7 +370,7 @@ static int cron_change_selinux_range(user *u,security_context_t ucontext) { } } - if (setexeccon(ucontext) < 0) { + if ((setexeccon(ucontext) < 0) && (setkeycreatecon(ucontext))) { if (security_getenforce() > 0) { syslog(LOG_ERR, "CRON (%s) ERROR:"