Bug 955389 - SELinux is preventing systemd-journal from 'use' accesses on the fd fd.
Summary: SELinux is preventing systemd-journal from 'use' accesses on the fd fd.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f4b8ce48a0a5f903373d276916b...
: 955390 955391 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-22 23:51 UTC by Moez Roy
Modified: 2013-04-23 08:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-23 08:11:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Moez Roy 2013-04-22 23:51:05 UTC
Description of problem:
SELinux is preventing systemd-journal from 'use' accesses on the fd fd.

*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************

If you want to allow all domains to use other domains file descriptors
Then you must tell SELinux about this by enabling the 'domain_fd_use' boolean.
You can read 'None' man page for more details.
Do
setsebool -P domain_fd_use 1

*****  Plugin catchall (11.6 confidence) suggests  ***************************

If you believe that systemd-journal should be allowed use access on the fd fd 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 systemd-journal /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:syslogd_t:s0
Target Context                system_u:system_r:kernel_t:s0
Target Objects                fd [ fd ]
Source                        systemd-journal
Source Path                   systemd-journal
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-201-2.fc18.5.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-91.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.8-202.fc18.x86_64 #1 SMP Wed
                              Apr 17 23:25:17 UTC 2013 x86_64 x86_64
Alert Count                   5
First Seen                    2013-04-22 16:17:40 PDT
Last Seen                     2013-04-22 16:17:41 PDT
Local ID                      3f67ad7b-822e-42b3-90e3-cee264dce9d5

Raw Audit Messages
type=AVC msg=audit(1366672661.279:516): avc:  denied  { use } for  pid=5491 comm="systemd-journal" path="socket:[6249]" dev="sockfs" ino=6249 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=fd


type=AVC msg=audit(1366672661.279:516): avc:  denied  { use } for  pid=5491 comm="systemd-journal" path="socket:[6252]" dev="sockfs" ino=6252 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=fd


type=AVC msg=audit(1366672661.279:516): avc:  denied  { use } for  pid=5491 comm="systemd-journal" path="socket:[6254]" dev="sockfs" ino=6254 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=fd


type=SYSCALL msg=audit(1366672661.279:516): arch=x86_64 syscall=execve success=yes exit=0 a0=7f1d37b304b0 a1=7f1d37a9a760 a2=7f1d37a9b1e0 a3=ffffffe0 items=0 ppid=1 pid=5491 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=systemd-journal exe=/usr/lib/systemd/systemd-journald subj=system_u:system_r:syslogd_t:s0 key=(null)

Hash: systemd-journal,syslogd_t,kernel_t,fd,use

audit2allow

#============= syslogd_t ==============
#!!!! This avc can be allowed using the boolean 'domain_fd_use'

allow syslogd_t kernel_t:fd use;

audit2allow -R
require {
	type syslogd_t;
}

#============= syslogd_t ==============
kernel_use_fds(syslogd_t)


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.8-202.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-04-23 08:08:39 UTC

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

Comment 2 Miroslav Grepl 2013-04-23 08:11:17 UTC
Please run

# setsebool -P domain_fd_use 1

Comment 3 Miroslav Grepl 2013-04-23 08:11:26 UTC
*** Bug 955390 has been marked as a duplicate of this bug. ***

Comment 4 Miroslav Grepl 2013-04-23 08:11:35 UTC
*** Bug 955391 has been marked as a duplicate of this bug. ***


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