Bug 825718

Summary: SELinux is preventing /usr/bin/ls from getattr access on the blk_file /dev/sdb
Product: [Fedora] Fedora Reporter: Antonio T. (sagitter) <anto.trande>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 17CC: anto.trande, dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-03 23:32:15 UTC Type: Bug
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
Alert logs
none
/var/log/messages
none
Alert-sysctl from write access on the file nmi_watchdog none

Description Antonio T. (sagitter) 2012-05-28 09:32:24 UTC
Created attachment 587186 [details]
Alert logs

Description of problem:

These alerts pop up at every boot.
Maybe are connected to Bug769747.


Version-Release number of selected component (if applicable):

selinux-policy-targeted-3.10.0-121.fc17.noarch
selinux-policy-3.10.0-121.fc17.noarch

How reproducible:

By boot up Fedora.

Comment 1 Antonio T. (sagitter) 2012-05-28 09:36:38 UTC
Created attachment 587187 [details]
/var/log/messages

Comment 2 Miroslav Grepl 2012-05-28 16:05:24 UTC
Please could you test it with the latest policy which is available from koji

http://koji.fedoraproject.org/koji/buildinfo?buildID=320274

Thank you.

Comment 3 Antonio T. (sagitter) 2012-05-28 17:28:18 UTC
(In reply to comment #2)
> Please could you test it with the latest policy which is available from koji
> 
> http://koji.fedoraproject.org/koji/buildinfo?buildID=320274
> 
> Thank you.

In https://bugzilla.redhat.com/attachment.cgi?id=587186, there are two SELinux alerts. After selinux-policy update, is signaled only the second one.

Comment 4 Miroslav Grepl 2012-05-29 05:58:28 UTC
Thank you for testing.

Fixed in selinux-policy-3.10.0-128.fc17

Comment 5 Fedora Update System 2012-05-31 06:27:52 UTC
selinux-policy-3.10.0-128.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-128.fc17

Comment 6 Antonio T. (sagitter) 2012-05-31 17:14:21 UTC
(In reply to comment #5)
> selinux-policy-3.10.0-128.fc17 has been submitted as an update for Fedora 17.
> https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-128.fc17

selinux-policy updated
The alert "SELinux is preventing /usr/sbin/sysctl from write access on the file nmi_watchdog" appears again. See https://bugzilla.redhat.com/attachment.cgi?id=587186

Comment 7 Daniel Walsh 2012-05-31 17:20:07 UTC
Please add the new AVC's the bug you link to is fixed.

Comment 8 Daniel Walsh 2012-05-31 17:27:24 UTC
 selinux-policy-3.10.0-129.fc17 will allow tuned to write to kernel_sysctls_t.

Comment 9 Antonio T. (sagitter) 2012-06-01 17:01:26 UTC
Created attachment 588540 [details]
Alert-sysctl from write access on the file nmi_watchdog

Comment 10 Antonio T. (sagitter) 2012-06-01 17:02:05 UTC
(In reply to comment #7)
> Please add the new AVC's the bug you link to is fixed.

See https://bugzilla.redhat.com/attachment.cgi?id=588540

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

Comment 12 Fedora Update System 2012-06-03 23:32:15 UTC
selinux-policy-3.10.0-128.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.