Bug 1052401

Summary: Unauthorized SELinux context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-20 08:02:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nicolas Mailhot 2014-01-13 18:54:48 UTC
Description of problem:
Jan 13 19:50:30 arekh crond[3698]: (nim) Unauthorized SELinux context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 file_context=unconfined_u:object_r:user_cron_spool_t:s0 (/var/spool/cron/nim)
Jan 13 19:50:30 arekh crond[3698]: (nim) FAILED (loading cron table)

selinux-policy-targeted-3.13.1-13.fc21.noarch
cronie-1.4.11-4.fc21.x86_64

Comment 1 Miroslav Grepl 2014-01-14 08:09:16 UTC
Try to turn on the cron_userdomain_transition boolean

# setsebool -P cron_userdomain_transition 1

Comment 2 Daniel Walsh 2014-01-14 21:51:58 UTC
This might be caused by the entrypoint change?

Comment 3 Miroslav Grepl 2014-01-15 08:14:42 UTC
Definitely yes but I believe it is correct and users need to turn on the boolean. It has been adopted from upstream.

Comment 4 Daniel Walsh 2014-01-16 20:28:32 UTC
Which boolean?

Comment 5 Miroslav Grepl 2014-01-17 08:34:24 UTC
# setsebool -P cron_userdomain_transition 1

Comment 6 Nicolas Mailhot 2014-01-18 08:49:10 UTC
Does not work

Unauthorized SELinux context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 file_context=unconfined_u:object_r:user_cron_spool_t:s0 (/var/spool/cron/nim)

getsebool cron_userdomain_transition
cron_userdomain_transition --> on

Comment 7 Miroslav Grepl 2014-01-19 20:19:02 UTC
Ok,taking back. You are right, this boolean does not affect unconfined_t SELinux user.

Comment 8 Miroslav Grepl 2014-01-20 08:02:09 UTC
commit 31456ed1981a7668ab06890151527e42b02a7e2e
Author: Miroslav Grepl <mgrepl>
Date:   Mon Jan 20 09:01:49 2014 +0100

    Add cron unconfined role support for uncofined SELinux user