Bug 569085 - SELinux is preventing /usr/lib/news/bin/innd "sendto" access on /var/run/news/ctlinnd1N09cI.
Summary: SELinux is preventing /usr/lib/news/bin/innd "sendto" access on /var/run...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:7b711d4ddfe...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-28 00:47 UTC by Robert Nichols
Modified: 2010-05-03 16:08 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.6.32-113.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-05-03 16:08:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Robert Nichols 2010-02-28 00:47:45 UTC
Summary:

SELinux is preventing /usr/lib/news/bin/innd "sendto" access on
/var/run/news/ctlinnd1N09cI.

Detailed Description:

SELinux denied access requested by innd. It is not expected that this access is
required by innd and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:innd_t:s0
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                /var/run/news/ctlinnd1N09cI [ unix_dgram_socket ]
Source                        innd
Source Path                   /usr/lib/news/bin/innd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           inn-2.5.0-6.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-89.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.12-174.2.22.fc12.x86_64 #1 SMP Fri Feb 19
                              18:55:03 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Sat 27 Feb 2010 06:44:35 PM CST
Last Seen                     Sat 27 Feb 2010 06:44:35 PM CST
Local ID                      0968a0ba-c160-4c41-8f16-dc9dcd3842c2
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1267317875.17:12669): avc:  denied  { sendto } for  pid=21079 comm="innd" path="/var/run/news/ctlinnd1N09cI" scontext=unconfined_u:system_r:innd_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=unix_dgram_socket

node=(removed) type=SYSCALL msg=audit(1267317875.17:12669): arch=c000003e syscall=44 success=no exit=-13 a0=d a1=7fbd02752fb0 a2=7 a3=0 items=0 ppid=1 pid=21079 auid=500 uid=9 gid=13 euid=9 suid=9 fsuid=9 egid=13 sgid=13 fsgid=13 tty=(none) ses=14 comm="innd" exe="/usr/lib/news/bin/innd" subj=unconfined_u:system_r:innd_t:s0 key=(null)



Hash String generated from  catchall,innd,innd_t,unconfined_t,unix_dgram_socket,sendto
audit2allow suggests:

#============= innd_t ==============
allow innd_t unconfined_t:unix_dgram_socket sendto;

Comment 1 Robert Nichols 2010-02-28 00:50:33 UTC
Occurs when running "ctlinnd throttle xxx" (as root).

Comment 2 Daniel Walsh 2010-03-01 14:10:03 UTC
Miroslav

add 

userdom_stream_connect(innd_t)

Comment 3 Miroslav Grepl 2010-03-01 14:14:23 UTC
Fixed in selinux-policy-3.6.32-96.fc12

Comment 4 Fedora Update System 2010-03-05 16:54:01 UTC
selinux-policy-3.6.32-99.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-99.fc12

Comment 5 Fedora Update System 2010-03-09 03:21:06 UTC
selinux-policy-3.6.32-99.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-99.fc12

Comment 6 Robert Nichols 2010-03-09 16:25:46 UTC
selinux-policy-3.6.32-99.fc12 appears to fix this problem for me.

Comment 7 Fedora Update System 2010-03-12 04:22:32 UTC
selinux-policy-3.6.32-99.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Robert Nichols 2010-04-04 17:19:00 UTC
Same problem is back in selinux-policy-3.6.32-106, this time apparently caused by running /usr/lib/news/bin/sm from a cron job.


Summary:

SELinux is preventing /usr/lib/news/bin/innd "sendto" access on
/var/run/news/ctlinndEus6ae.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by innd. It is not expected that this access is
required by innd and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:innd_t:s0
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                /var/run/news/ctlinndEus6ae [ unix_dgram_socket ]
Source                        innd
Source Path                   /usr/lib/news/bin/innd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           inn-2.5.0-6.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-106.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux omega-3a.local 2.6.32.10-90.fc12.x86_64 #1
                              SMP Tue Mar 23 09:47:08 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Sun 04 Apr 2010 12:05:02 PM CDT
Last Seen                     Sun 04 Apr 2010 12:05:02 PM CDT
Local ID                      06dddbd8-355e-43fd-9951-956b01fa5740
Line Numbers                  

Raw Audit Messages            

node=omega-3a.local type=AVC msg=audit(1270400702.202:37058): avc:  denied  { sendto } for  pid=2222 comm="innd" path="/var/run/news/ctlinndEus6ae" scontext=system_u:system_r:innd_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=unix_dgram_socket

node=omega-3a.local type=SYSCALL msg=audit(1270400702.202:37058): arch=c000003e syscall=44 success=yes exit=7 a0=d a1=7feefba26640 a2=7 a3=0 items=0 ppid=1 pid=2222 auid=4294967295 uid=9 gid=13 euid=9 suid=9 fsuid=9 egid=13 sgid=13 fsgid=13 tty=(none) ses=4294967295 comm="innd" exe="/usr/lib/news/bin/innd" subj=system_u:system_r:innd_t:s0 key=(null)

Comment 9 Daniel Walsh 2010-04-05 12:55:51 UTC
Robert seems I picked the totally wrong interface.

Miroslav it should have been

userdom_dgram_send(innd_t)

Comment 10 Miroslav Grepl 2010-04-13 16:07:58 UTC
Fixed in selinux-policy-3.6.32-111.fc12

Comment 11 Fedora Update System 2010-04-23 12:43:35 UTC
selinux-policy-3.6.32-113.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-113.fc12

Comment 12 Fedora Update System 2010-04-27 02:22:13 UTC
selinux-policy-3.6.32-113.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-113.fc12

Comment 13 Fedora Update System 2010-05-03 16:06:16 UTC
selinux-policy-3.6.32-113.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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