Bug 790949

Summary: SELinux is preventing /bin/bash from 'write' accesses on the None /.
Product: [Fedora] Fedora Reporter: Pascal94 <306power>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c927d601e20b3e6006732a31598f06304b6bf0af8ea71aa790bc184d4a7f30bc
Fixed In Version: selinux-policy-3.10.0-80.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-24 00:40:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pascal94 2012-02-15 19:20:26 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.6-3.fc16.x86_64
reason:         SELinux is preventing /bin/bash from 'write' accesses on the None /.
time:           mer. 15 févr. 2012 20:20:16 CET

description:
:SELinux is preventing /bin/bash from 'write' accesses on the None /.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that bash should be allowed write access on the  <Inconnu> 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 VBoxManage /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:boinc_project_t:s0
:Target Context                system_u:object_r:fs_t:s0
:Target Objects                / [ None ]
:Source                        VBoxManage
:Source Path                   /bin/bash
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           bash-4.2.20-1.fc16.x86_64
:Target RPM Packages           filesystem-2.4.44-1.fc16.x86_64
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux CM-ELITE-341 3.2.6-3.fc16.x86_64 #1 SMP Mon
:                              Feb 13 20:35:42 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    mar. 14 févr. 2012 22:31:24 CET
:Last Seen                     mar. 14 févr. 2012 22:31:24 CET
:Local ID                      958f676e-e71b-4698-b7fa-1557bf3de6dc
:
:Raw Audit Messages
:type=AVC msg=audit(1329255084.305:10048): avc:  denied  { write } for  pid=2554 comm="java" name="boinc" dev=sda1 ino=262992 scontext=system_u:system_r:boinc_project_t:s0 tcontext=system_u:object_r:boinc_var_lib_t:s0 tclass=dirnode=(removed) type=AVC msg=audit(1329255226.687:10087): avc:  denied  { getattr } for  pid=21495 comm="VBoxManage" name="/" dev=sda1 ino=2 scontext=system_u:system_r:boinc_project_t:s0 tcontext=system_u:object_r:fs_t:s0 tclass=filesystemnode=(removed) type=SYSCALL msg=audit(1329255226.687:10087): arch=c000003e syscall=137 success=no exit=-13 a0=4befb2 a1=7ffff4e28f80 a2=fffffffffff50bf0 a3=0 items=0 ppid=21491 pid=21495 auid=4294967295 uid=993 gid=990 euid=993 suid=993 fsuid=993 egid=990 sgid=990 fsgid=990 tty=(none) ses=4294967295 comm="VBoxManage" exe="/bin/bash" subj=system_u:system_r:boinc_project_t:s0 key=(null)
:
:
:Hash: VBoxManage,boinc_project_t,fs_t,None,write
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-16 14:37:29 UTC
*** Bug 790950 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2012-02-16 14:43:20 UTC
Could you please execute these steps

$ semanage permissive -a boinc_project_t

Turn on full auditing

$ auditctl -w /etc/shadow -p w

Try to recreate AVC. Then execute

$ ausearch -m avc -ts recent

Comment 3 Miroslav Grepl 2012-02-16 14:44:53 UTC
*** Bug 790955 has been marked as a duplicate of this bug. ***

Comment 4 Miroslav Grepl 2012-02-16 14:45:24 UTC
*** Bug 790959 has been marked as a duplicate of this bug. ***

Comment 5 Pascal94 2012-02-16 17:57:10 UTC
Hi Miroslav,

Here is the output :

bash-4.2$ sudo semanage permissive -a boinc_project_t
bash-4.2$ sudo auditctl -w /etc/shadow -p w
bash-4.2$ sudo ausearch -m avc -ts recent
<no matches>
bash-4.2$


but I tried another workunit, wich crashed again :-(

Comment 6 Miroslav Grepl 2012-02-20 13:04:21 UTC
Ok, I added some fixes to selinux-policy-3.10.0-76.fc16.noarch which will be available from koji today.

Comment 7 Fedora Update System 2012-02-29 09:35:16 UTC
selinux-policy-3.10.0-78.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-78.fc16

Comment 8 Fedora Update System 2012-03-01 09:26:06 UTC
Package selinux-policy-3.10.0-78.fc16:
* should fix your issue,
* was pushed to the Fedora 16 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.10.0-78.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-2733/selinux-policy-3.10.0-78.fc16
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2012-03-21 02:27:48 UTC
Package selinux-policy-3.10.0-80.fc16:
* should fix your issue,
* was pushed to the Fedora 16 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.10.0-80.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-2733/selinux-policy-3.10.0-80.fc16
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2012-03-24 00:40:00 UTC
selinux-policy-3.10.0-80.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.