Bug 573646

Summary: SELinux is preventing /usr/bin/boinc_client "getattr" access on /dev/pts/ptmx.
Product: [Fedora] Fedora Reporter: Bruce Cowan <bruce>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:21afaf3fb1663a691fb185e8c48f6a6de82da0c33dca2a95a848d5da0da831a4
Fixed In Version: selinux-policy-3.7.19-6.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-28 03:07:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
audit.log
none
boinc patch none

Description Bruce Cowan 2010-03-15 13:38:30 UTC
Summary:

SELinux is preventing /usr/bin/boinc_client "getattr" access on /dev/pts/ptmx.

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:s0
Target Context                system_u:object_r:ptmx_t:s0
Target Objects                /dev/pts/ptmx [ chr_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           
Policy RPM                    selinux-policy-3.7.14-3.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33-1.fc13.i686 #1 SMP Wed Feb
                              24 20:11:36 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Mon 15 Mar 2010 13:37:02 GMT
Last Seen                     Mon 15 Mar 2010 13:37:02 GMT
Local ID                      41122bb0-4e05-484c-95b3-0ed8326667de
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1268660222.886:17171): avc:  denied  { getattr } for  pid=1188 comm="boinc_client" path="/dev/pts/ptmx" dev=devpts ino=2 scontext=system_u:system_r:boinc_t:s0 tcontext=system_u:object_r:ptmx_t:s0 tclass=chr_file

node=(removed) type=SYSCALL msg=audit(1268660222.886:17171): arch=40000003 syscall=195 success=yes exit=0 a0=9619c44 a1=bfd6365c a2=d87ff4 a3=3 items=0 ppid=1 pid=1188 auid=4294967295 uid=491 gid=481 euid=491 suid=491 fsuid=491 egid=481 sgid=481 fsgid=481 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,ptmx_t,chr_file,getattr
audit2allow suggests:

#============= boinc_t ==============
allow boinc_t ptmx_t:chr_file getattr;

Comment 1 Daniel Walsh 2010-03-15 13:47:22 UTC
Miroslav, does boinc use pseudo terminals?

Comment 2 Miroslav Grepl 2010-03-16 15:04:19 UTC
Dan,
let's dontaudit it.

Comment 3 Daniel Walsh 2010-03-16 18:28:25 UTC
You can dontaudit these rules for now using

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

Fixed in selinux-policy-3.7.14-5.fc13.noarch

Comment 4 Bruce Cowan 2010-03-16 23:02:35 UTC
Thanks a lot.

Comment 5 Fedora Update System 2010-03-18 17:25:11 UTC
selinux-policy-3.7.15-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.15-1.fc13

Comment 6 Fedora Update System 2010-03-23 02:18:15 UTC
selinux-policy-3.7.15-1.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-1.fc13

Comment 7 Fedora Update System 2010-03-24 00:49:16 UTC
selinux-policy-3.7.15-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Bruce Cowan 2010-04-18 19:37:27 UTC
Actually, there are a lot of SELinux problems when running BOINC other than this one.

Comment 9 Daniel Walsh 2010-04-19 02:15:37 UTC
Please attach your audit.log

Comment 10 Bruce Cowan 2010-04-19 17:50:17 UTC
Created attachment 407649 [details]
audit.log

The BOINC bits are from line 153.

Comment 11 Miroslav Grepl 2010-04-20 11:43:57 UTC
Created attachment 407796 [details]
boinc patch

Dan,
the patch for boinc policy.

Comment 12 Daniel Walsh 2010-04-20 12:21:56 UTC
Fixed in selinux-policy-3.7.19-3.fc13.noarch

Comment 13 Fedora Update System 2010-04-26 19:51:40 UTC
selinux-policy-3.7.19-6.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-6.fc13

Comment 14 Fedora Update System 2010-04-27 05:48:55 UTC
selinux-policy-3.7.19-6.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.19-6.fc13

Comment 15 Fedora Update System 2010-04-28 03:06:01 UTC
selinux-policy-3.7.19-6.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.