Bug 575020 - SELinux is preventing /usr/bin/boinc_client "read" access on /etc/pki/tls/certs/ca-bundle.crt.
Summary: SELinux is preventing /usr/bin/boinc_client "read" access on /etc/pki/tl...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:9484e0fd570...
: 575019 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-19 06:34 UTC by Vaclav "sHINOBI" Misek
Modified: 2010-03-25 22:29 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.7.15-4.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-25 22:29:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vaclav "sHINOBI" Misek 2010-03-19 06:34:46 UTC
Summary:

SELinux is preventing /usr/bin/boinc_client "read" access on
/etc/pki/tls/certs/ca-bundle.crt.

Detailed Description:

[boinc_client has a permissive type (boinc_t). This access was not denied.]

SELinux denied access requested by boinc_client. It is not expected that this
access is required by boinc_client 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:boinc_t:SystemLow
Target Context                system_u:object_r:cert_t:SystemLow
Target Objects                /etc/pki/tls/certs/ca-bundle.crt [ file ]
Source                        boinc_client
Source Path                   /usr/bin/boinc_client
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           boinc-client-6.10.36-1.r20845svn.fc13
Target RPM Packages           ca-certificates-2010-2.fc13
Policy RPM                    selinux-policy-3.7.15-1.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33-10.fc13.x86_64
                              #1 SMP Mon Mar 15 00:46:45 UTC 2010 x86_64 x86_64
Alert Count                   4
First Seen                    Fri 19 Mar 2010 12:10:56 AM CET
Last Seen                     Fri 19 Mar 2010 12:11:17 AM CET
Local ID                      8c9455b6-18fb-42d2-8f55-34bd1b1357c1
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1268953877.603:41853): avc:  denied  { read } for  pid=2019 comm="boinc_client" name="ca-bundle.crt" dev=dm-0 ino=535923 scontext=system_u:system_r:boinc_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268953877.603:41853): avc:  denied  { open } for  pid=2019 comm="boinc_client" name="ca-bundle.crt" dev=dm-0 ino=535923 scontext=system_u:system_r:boinc_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1268953877.603:41853): arch=c000003e syscall=2 success=yes exit=26 a0=ebc4d0 a1=0 a2=0 a3=0 items=0 ppid=1 pid=2019 auid=4294967295 uid=495 gid=491 euid=495 suid=495 fsuid=495 egid=491 sgid=491 fsgid=491 tty=(none) ses=4294967295 comm="boinc_client" exe="/usr/bin/boinc_client" subj=system_u:system_r:boinc_t:s0 key=(null)



Hash String generated from  catchall,boinc_client,boinc_t,cert_t,file,read
audit2allow suggests:

#============= boinc_t ==============
allow boinc_t cert_t:file { read open };

Comment 1 Miroslav Grepl 2010-03-19 07:44:16 UTC
Vaclav, 
could you try to copy ca-bundle.crt to /var/lib/boinc ?

Comment 2 Miroslav Grepl 2010-03-19 07:44:48 UTC
*** Bug 575019 has been marked as a duplicate of this bug. ***

Comment 3 Vaclav "sHINOBI" Misek 2010-03-19 08:02:40 UTC
The rights should be left default or should I change them to boinc:boinc?

Comment 4 Miroslav Grepl 2010-03-19 10:12:27 UTC
Leave the default. Does it work? Are you still getting AVC messages with this change?

ausearch -m avc -ts recent

Comment 5 Daniel Walsh 2010-03-19 12:43:18 UTC
Miroslav, if boinc uses certs it seems reasonable to add this access.

Comment 6 Miroslav Grepl 2010-03-19 15:17:04 UTC
Yes, it is. Let's add this rule.

Comment 7 Vaclav "sHINOBI" Misek 2010-03-21 15:09:45 UTC
Anyway, after copying ca-bundle.crt boinc still tries to open /etc/pki/tls/certs/ca-bundle.crt.
I agree the rule should be best, at least the ca-certs are placed in one location :-). Thanks a lot.

Comment 8 Daniel Walsh 2010-03-22 16:04:51 UTC
You can add these rules for now using

# grep avc /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Fixed in selinux-policy-3.7.15-4.fc13.noarch

Comment 9 Fedora Update System 2010-03-23 13:33:16 UTC
selinux-policy-3.7.15-4.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.15-4.fc13

Comment 10 Fedora Update System 2010-03-24 00:47:27 UTC
selinux-policy-3.7.15-4.fc13 has been pushed to the Fedora 13 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.7.15-4.fc13

Comment 11 Fedora Update System 2010-03-25 22:29:09 UTC
selinux-policy-3.7.15-4.fc13 has been pushed to the Fedora 13 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.