]> granicus.if.org Git - cronie/commitdiff
Keyring will be created after restart of computer and services
authorMarcela <marca@caladan.englab.brq.redhat.com>
Tue, 27 May 2008 11:59:11 +0000 (13:59 +0200)
committerMarcela <marca@caladan.englab.brq.redhat.com>
Tue, 27 May 2008 11:59:11 +0000 (13:59 +0200)
won't be dying on selinux denial. The reason for this change
was pam-devels update.

src/security.c

index 2c20f90e3f8900c9ab36dbd6624f41733bf42531..3e13cc874f13ffb92de53f65ce4e1311bf50a706 100644 (file)
@@ -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:"