Bug 704844 - SELinux is preventing /usr/sbin/callweaver from 'write' accesses on the sock_file /var/run/callweaver/callweaver.ctl.
Summary: SELinux is preventing /usr/sbin/callweaver from 'write' accesses on the sock_...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:3edce1b74fa...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-15 13:13 UTC by ngomez2
Modified: 2011-07-12 05:17 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.9.7-42.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-12 05:17:33 UTC
Type: ---


Attachments (Terms of Use)

Description ngomez2 2011-05-15 13:13:43 UTC
SELinux is preventing /usr/sbin/callweaver from 'write' accesses on the sock_file /var/run/callweaver/callweaver.ctl.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that callweaver should be allowed write access on the callweaver.ctl sock_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 callweaver /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:logrotate_t:s0-s0:c0.c1023
Target Context                system_u:object_r:var_run_t:s0
Target Objects                /var/run/callweaver/callweaver.ctl [ sock_file ]
Source                        callweaver
Source Path                   /usr/sbin/callweaver
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           callweaver-1.2.1-6.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.13-91.fc14.x86_64 #1 SMP Tue May 3 13:23:06
                              UTC 2011 x86_64 x86_64
Alert Count                   3
First Seen                    dim. 01 mai 2011 11:18:37 CEST
Last Seen                     dim. 15 mai 2011 11:25:55 CEST
Local ID                      eac8db36-029e-4736-ae75-cc8948a9dd94

Raw Audit Messages
type=AVC msg=audit(1305451555.315:44): avc:  denied  { write } for  pid=5463 comm="callweaver" name="callweaver.ctl" dev=dm-1 ino=917728 scontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=sock_file


type=AVC msg=audit(1305451555.315:44): avc:  denied  { connectto } for  pid=5463 comm="callweaver" path="/var/run/callweaver/callweaver.ctl" scontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023 tcontext=system_u:system_r:initrc_t:s0 tclass=unix_stream_socket


type=SYSCALL msg=audit(1305451555.315:44): arch=x86_64 syscall=connect success=yes exit=0 a0=3 a1=7fffc7db0150 a2=6e a3=3b0a997210 items=0 ppid=5462 pid=5463 auid=0 uid=492 gid=489 euid=492 suid=492 fsuid=492 egid=489 sgid=489 fsgid=489 tty=(none) ses=5 comm=callweaver exe=/usr/sbin/callweaver subj=system_u:system_r:logrotate_t:s0-s0:c0.c1023 key=(null)

Hash: callweaver,logrotate_t,var_run_t,sock_file,write

audit2allow

#============= logrotate_t ==============
allow logrotate_t initrc_t:unix_stream_socket connectto;
allow logrotate_t var_run_t:sock_file write;

audit2allow -R

#============= logrotate_t ==============
allow logrotate_t initrc_t:unix_stream_socket connectto;
allow logrotate_t var_run_t:sock_file write;

Comment 1 Miroslav Grepl 2011-05-16 07:18:55 UTC
Looks like we need a new policy for callweaver or find a proper domain.

Comment 2 Daniel Walsh 2011-05-17 09:00:38 UTC
Miroslav I agree but it would probably not be a bad allow this communication also.


I wrote an initial callweaver policy in F16

Comment 3 Miroslav Grepl 2011-05-17 09:47:21 UTC
(In reply to comment #2)
> Miroslav I agree but it would probably not be a bad allow this communication
> also.
> 

Yes, I was thinking also about that. It could prevent other bugs.

Comment 4 Miroslav Grepl 2011-05-17 14:39:06 UTC
Fixed in selinux-policy-3.9.7-42.fc14

Comment 5 Fedora Update System 2011-05-27 15:46:27 UTC
selinux-policy-3.9.7-42.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-42.fc14

Comment 6 Fedora Update System 2011-05-27 20:28:25 UTC
Package selinux-policy-3.9.7-42.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.7-42.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-42.fc14
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2011-07-12 05:15:55 UTC
selinux-policy-3.9.7-42.fc14 has been pushed to the Fedora 14 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.