Bug 1173522 - SELinux is preventing /usr/bin/mktemp from 'read' accesses on the chr_file urandom.
Summary: SELinux is preventing /usr/bin/mktemp from 'read' accesses on the chr_file ur...
Keywords:
Status: CLOSED DUPLICATE of bug 1173477
Alias: None
Product: Fedora
Classification: Fedora
Component: icecream
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:633df4c444e87625e80fe9c0ee8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-12 10:56 UTC by Slawomir Czarko
Modified: 2014-12-12 13:12 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-12-12 13:12:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Slawomir Czarko 2014-12-12 10:56:11 UTC
Description of problem:
This happens when running g++ on a machine with icecream installed.
SELinux is preventing /usr/bin/mktemp from 'read' accesses on the chr_file urandom.

*****  Plugin catchall_boolean (47.5 confidence) suggests  *******************

If you want to allow users to resolve user passwd entries directly from ldap rather then using a sssd server
Then you must tell SELinux about this by enabling the 'authlogin_nsswitch_use_ldap' boolean.
You can read 'None' man page for more details.
Do
setsebool -P authlogin_nsswitch_use_ldap 1

*****  Plugin catchall_boolean (47.5 confidence) suggests  *******************

If you want to enable reading of urandom for all domains.
Then you must tell SELinux about this by enabling the 'global_ssp' boolean.
You can read 'None' man page for more details.
Do
setsebool -P global_ssp 1

*****  Plugin catchall (6.38 confidence) suggests  ***************************

If you believe that mktemp should be allowed read access on the urandom chr_file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep mktemp /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:iceccd_t:s0
Target Context                system_u:object_r:urandom_device_t:s0
Target Objects                urandom [ chr_file ]
Source                        mktemp
Source Path                   /usr/bin/mktemp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-8.21-13.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.26.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.14.23-100.fc19.x86_64 #1 SMP Thu
                              Oct 30 18:36:00 UTC 2014 x86_64 x86_64
Alert Count                   2
First Seen                    2014-12-12 11:49:10 CET
Last Seen                     2014-12-12 11:49:10 CET
Local ID                      15f51755-7b2f-470d-92d4-a4fa9d45c4bf

Raw Audit Messages
type=AVC msg=audit(1418381350.180:5180): avc:  denied  { read } for  pid=17803 comm="mktemp" name="urandom" dev="devtmpfs" ino=1033 scontext=system_u:system_r:iceccd_t:s0 tcontext=system_u:object_r:urandom_device_t:s0 tclass=chr_file


type=SYSCALL msg=audit(1418381350.180:5180): arch=x86_64 syscall=open success=no exit=EACCES a0=406e2d a1=0 a2=17c3090 a3=3b93bb97d8 items=0 ppid=17706 pid=17803 auid=4294967295 uid=988 gid=985 euid=988 suid=988 fsuid=988 egid=985 sgid=985 fsgid=985 tty=(none) ses=4294967295 comm=mktemp exe=/usr/bin/mktemp subj=system_u:system_r:iceccd_t:s0 key=(null)

Hash: mktemp,iceccd_t,urandom_device_t,chr_file,read

Additional info:
reporter:       libreport-2.2.2
hashmarkername: setroubleshoot
kernel:         3.14.23-100.fc19.x86_64
type:           libreport

Potential duplicate: bug 1162330

Comment 1 Slawomir Czarko 2014-12-12 10:57:28 UTC
This might be actually for icecream package.

Comment 2 Michal Schmidt 2014-12-12 13:12:53 UTC
This has the same cause as bug 1173477.

*** This bug has been marked as a duplicate of bug 1173477 ***


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