RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1708557 - Selinux prevents cron from running jobs
Summary: Selinux prevents cron from running jobs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cronie
Version: 8.1
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: 8.0
Assignee: Marcel Plch
QA Contact: Jan Houska
URL:
Whiteboard:
: 1703075 1709779 (view as bug list)
Depends On:
Blocks: 1708794
TreeView+ depends on / blocked
 
Reported: 2019-05-10 08:22 UTC by Ondrej Mejzlik
Modified: 2020-11-14 11:02 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 22:25:31 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:3595 0 None None None 2019-11-05 22:25:35 UTC

Comment 2 Milos Malik 2019-05-10 15:20:29 UTC
Unfortunately, I don't see any SELinux denials (checked both enforcing and permissive mode). Removing dontaudit rules did not help.

Comment 5 Jan Houska 2019-05-14 11:21:44 UTC
*** Bug 1709779 has been marked as a duplicate of this bug. ***

Comment 8 Marcel Plch 2019-05-17 13:35:10 UTC
*** Bug 1703075 has been marked as a duplicate of this bug. ***

Comment 10 Jan Houska 2019-08-02 08:48:50 UTC
VERIFIED:

versions:
selinux-policy-3.14.3-9.el8
cronie-1.5.2-4.el8




:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Setup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 17:15:20 ] :: [   PASS   ] :: Checking for the presence of cronie rpm 
:: [ 17:15:20 ] :: [   LOG    ] :: Package versions:
:: [ 17:15:20 ] :: [   LOG    ] ::   cronie-1.5.2-4.el8.aarch64
:: [ 17:15:20 ] :: [   PASS   ] :: Creating tmp directory (Expected 0, got 0)
:: [ 17:15:20 ] :: [   PASS   ] :: Command 'pushd /tmp/tmp.t5hdqF32e6' (Expected 0, got 0)
:: [ 17:15:20 ] :: [   LOG    ] :: rlServiceStart: Service rsyslog already running, stopping first.
:: [ 17:15:21 ] :: [   LOG    ] :: rlServiceStart: Service rsyslog started successfully
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 1s
::   Assertions: 3 good, 0 bad
::   RESULT: PASS


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 17:15:27 ] :: [   INFO   ] :: using '/var/tmp/beakerlib-95848416/backup' as backup destination
:: [ 17:15:27 ] :: [   LOG    ] :: Old CRONDARGS=""
:: [ 17:15:27 ] :: [   LOG    ] :: New CRONDARGS=" -s -m off"
:: [ 17:15:28 ] :: [   LOG    ] :: rlServiceStart: Service crond already running, stopping first.
:: [ 17:15:28 ] :: [   LOG    ] :: rlServiceStart: Service crond started successfully
:: [ 17:16:33 ] :: [   PASS   ] :: Output is logged correctly. (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 66s
::   Assertions: 1 good, 0 bad
::   RESULT: PASS


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Cleanup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 17:16:33 ] :: [   PASS   ] :: Command 'rm /etc/cron.d/testjob' (Expected 0, got 0)
:: [ 17:16:34 ] :: [   PASS   ] :: Command 'rlServiceRestore crond' (Expected 0, got 0)
:: [ 17:16:34 ] :: [   PASS   ] :: Command 'popd' (Expected 0, got 0)
:: [ 17:16:34 ] :: [   PASS   ] :: Removing tmp directory (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 1s
::   Assertions: 4 good, 0 bad
::   RESULT: PASS


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   /CoreOS/cronie/Regression/run-with-syslog-flag
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Uploading journal.xml .done
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 75s
::   Phases: 3 good, 0 bad
::   OVERALL RESULT: PASS

Comment 12 errata-xmlrpc 2019-11-05 22:25:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:3595


Note You need to log in before you can comment on or make changes to this bug.