Bug 573773 - SELinux is preventing /var/lib/boinc/projects/milkyway.cs.rpi.edu_milkyway/milkyway_0.18_x86_64-pc-linux-gnu "search" access .
Summary: SELinux is preventing /var/lib/boinc/projects/milkyway.cs.rpi.edu_milkyway/mi...
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: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:5c6a2b422d4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-15 18:33 UTC by Vaclav "sHINOBI" Misek
Modified: 2010-03-24 00:49 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.7.15-1.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-24 00:49:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vaclav "sHINOBI" Misek 2010-03-15 18:33:09 UTC
Summary:

SELinux is preventing
/var/lib/boinc/projects/milkyway.cs.rpi.edu_milkyway/milkyway_0.18_x86_64-pc-linux-gnu
"search" access .

Detailed Description:

[milkyway_0.18_x has a permissive type (boinc_t). This access was not denied.]

SELinux denied access requested by milkyway_0.18_x. It is not expected that this
access is required by milkyway_0.18_x 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:sysctl_kernel_t:SystemLow
Target Objects                None [ dir ]
Source                        milkyway_0.18_x
Source Path                   /var/lib/boinc/projects/milkyway.cs.rpi.edu_milkyw
                              ay/milkyway_0.18_x86_64-pc-linux-gnu
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
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.x86_64 #1
                              SMP Wed Feb 24 19:55:32 UTC 2010 x86_64 x86_64
Alert Count                   14
First Seen                    Mon 15 Mar 2010 08:10:48 AM CET
Last Seen                     Mon 15 Mar 2010 07:23:53 PM CET
Local ID                      e96b4853-4ab8-4756-a241-c195d7be18b4
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1268677433.543:23): avc:  denied  { search } for  pid=2145 comm="milkyway_0.18_x" scontext=system_u:system_r:boinc_t:s0 tcontext=system_u:object_r:sysctl_kernel_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1268677433.543:23): avc:  denied  { read } for  pid=2145 comm="milkyway_0.18_x" scontext=system_u:system_r:boinc_t:s0 tcontext=system_u:object_r:sysctl_kernel_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1268677433.543:23): arch=c000003e syscall=156 success=yes exit=0 a0=7fff038fc130 a1=0 a2=10 a3=8 items=0 ppid=2059 pid=2145 auid=4294967295 uid=495 gid=491 euid=495 suid=495 fsuid=495 egid=491 sgid=491 fsgid=491 tty=(none) ses=4294967295 comm="milkyway_0.18_x" exe="/var/lib/boinc/projects/milkyway.cs.rpi.edu_milkyway/milkyway_0.18_x86_64-pc-linux-gnu" subj=system_u:system_r:boinc_t:s0 key=(null)



Hash String generated from  catchall,milkyway_0.18_x,boinc_t,sysctl_kernel_t,dir,search
audit2allow suggests:

#============= boinc_t ==============
allow boinc_t sysctl_kernel_t:dir search;
allow boinc_t sysctl_kernel_t:file read;

Comment 1 Daniel Walsh 2010-03-15 21:04:21 UTC
Why are these files labeled sysctl_kernel_t?

Is this a symbolic link?

Comment 2 Vaclav "sHINOBI" Misek 2010-03-15 21:39:53 UTC
All files in this directory are labeled as system_u:object_r:boinc_var_lib_t:SystemLow and there are no symlinks there.

Comment 3 Miroslav Grepl 2010-03-16 09:27:26 UTC
Dan,
this access is required by milkyway boinc project which is located in the /var/lib/boinc/ directory.


kernel_read_kernel_sysctls(boinc_t)

Comment 4 Daniel Walsh 2010-03-16 14:37:20 UTC
Fixed in selinux-policy-3.7.14-5.fc13.noarch

Comment 5 Fedora Update System 2010-03-18 17:25:02 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:06 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:08 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.


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