Bug 1397254 - SELinux is preventing rpc.statd from 'write' accesses on the file /run/rpc.statd.lock.
Summary: SELinux is preventing rpc.statd from 'write' accesses on the file /run/rpc.st...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1e4c1fc0a81a01c2f7f2e3072df...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-22 04:20 UTC by Sean McNeil
Modified: 2016-12-09 00:20 UTC (History)
12 users (show)

Fixed In Version: selinux-policy-3.13.1-225.1.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-08 18:23:01 UTC
Type: ---


Attachments (Terms of Use)

Description Sean McNeil 2016-11-22 04:20:15 UTC
Description of problem:
SELinux is preventing rpc.statd from 'write' accesses on the file /run/rpc.statd.lock.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that rpc.statd should be allowed write access on the rpc.statd.lock file 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:
# ausearch -c 'rpc.statd' --raw | audit2allow -M my-rpcstatd
# semodule -X 300 -i my-rpcstatd.pp

Additional Information:
Source Context                system_u:system_r:rpcd_t:s0
Target Context                system_u:object_r:var_run_t:s0
Target Objects                /run/rpc.statd.lock [ file ]
Source                        rpc.statd
Source Path                   rpc.statd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-224.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.6-300.fc25.x86_64 #1 SMP Tue
                              Nov 1 12:36:38 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-11-22 11:11:09 ICT
Last Seen                     2016-11-22 11:11:09 ICT
Local ID                      5f59122c-1495-47c5-b671-d8385bf5539f

Raw Audit Messages
type=AVC msg=audit(1479787869.798:12500): avc:  denied  { write } for  pid=11214 comm="rpc.statd" path="/run/rpc.statd.lock" dev="tmpfs" ino=6341121 scontext=system_u:system_r:rpcd_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=file permissive=0


Hash: rpc.statd,rpcd_t,var_run_t,file,write

Version-Release number of selected component:
selinux-policy-3.13.1-224.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.6-300.fc25.x86_64
type:           libreport

Potential duplicate: bug 1200857

Comment 1 Fedora Update System 2016-11-29 17:04:18 UTC
selinux-policy-3.13.1-225.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-9d027c3768

Comment 2 Brian J. Murrell 2016-11-30 06:27:21 UTC
Description of problem:
Happened shortly after upgrade to F25

Version-Release number of selected component:
selinux-policy-3.13.1-191.14.fc24.noarch
selinux-policy-3.13.1-224.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.8-300.fc25.x86_64
type:           libreport

Comment 3 Fedora Update System 2016-12-03 04:31:43 UTC
selinux-policy-3.13.1-225.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-9d027c3768

Comment 4 Fedora Update System 2016-12-05 17:02:48 UTC
selinux-policy-3.13.1-225.1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-e3864b8972

Comment 5 Fedora Update System 2016-12-07 02:25:54 UTC
selinux-policy-3.13.1-225.1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-e3864b8972

Comment 6 Mattia Verga 2016-12-07 15:41:09 UTC
Description of problem:
NFS shares are not mounted on startup and SElinux alert pops up

Version-Release number of selected component:
selinux-policy-3.13.1-224.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.11-300.fc25.x86_64
type:           libreport

Comment 7 Fedora Update System 2016-12-08 18:23:01 UTC
selinux-policy-3.13.1-225.1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Tony 2016-12-09 00:20:31 UTC
Description of problem:
dnf update a few days ago. When the machine rebooted, I saw this.

Version-Release number of selected component:
selinux-policy-3.13.1-224.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.11-300.fc25.x86_64
type:           libreport


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