Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1429853 - ptp4l cannot respond to unconfined pmc using UDS
ptp4l cannot respond to unconfined pmc using UDS
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy (Show other bugs)
7.3
All Linux
medium Severity medium
: rc
: ---
Assigned To: Lukas Vrabec
Milos Malik
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-07 05:01 EST by Miroslav Lichvar
Modified: 2018-04-10 08:29 EDT (History)
6 users (show)

See Also:
Fixed In Version: selinux-policy-3.13.1-176.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-04-10 08:28:17 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0763 None None None 2018-04-10 08:29 EDT

  None (edit)
Description Miroslav Lichvar 2017-03-07 05:01:41 EST
Description of problem:
When ptp4l from the linuxptp package is running, pmc doesn't get any responses from ptp4l over Unix domain socket.

type=AVC msg=audit(1488880198.380:52): avc:  denied  { sendto } for  pid=850 comm="ptp4l" path="/run/pmc.884" scontext=system_u:system_r:ptp4l_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=unix_dgram_socket

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-124.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. yum install linuxptp
1. vi /etc/sysconfig/ptp4l (e.g. OPTIONS="-f /etc/ptp4l.conf -i eth0 -S")
2. systemctl start ptp4l
3. pmc -b 0 -u 'GET TIME_STATUS_NP'

Actual results:
# pmc -b 0 -u 'GET TIME_STATUS_NP'
sending: GET TIME_STATUS_NP

Expected results:
# pmc -b 0 -u 'GET TIME_STATUS_NP'
sending: GET TIME_STATUS_NP
        123456.1234.123456-0 seq 0 RESPONSE MANAGEMENT TIME_STATUS_NP
                master_offset              0
                ingress_time               0
                cumulativeScaledRateOffset +0.000000000
                scaledLastGmPhaseChange    0
                gmTimeBaseIndicator        0
                lastGmPhaseChange          0x0000'0000000000000000.0000
                gmPresent                  false
                gmIdentity                 123456.1234.123456
Comment 2 Milos Malik 2017-03-07 05:23:59 EST
Confirmed. Easy to reproduce:
----
type=PROCTITLE msg=audit(03/07/2017 05:22:39.886:416) : proctitle=/usr/sbin/ptp4l -f /etc/ptp4l.conf -i eth0 -S 
type=SYSCALL msg=audit(03/07/2017 05:22:39.886:416) : arch=x86_64 syscall=sendto success=yes exit=104 a0=0x13 a1=0x557a94cff8a8 a2=0x68 a3=0x0 items=0 ppid=1 pid=8991 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=ptp4l exe=/usr/sbin/ptp4l subj=system_u:system_r:ptp4l_t:s0 key=(null) 
type=AVC msg=audit(03/07/2017 05:22:39.886:416) : avc:  denied  { sendto } for  pid=8991 comm=ptp4l path=/run/pmc.9019 scontext=system_u:system_r:ptp4l_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=unix_dgram_socket permissive=1 
----
Comment 3 Milos Malik 2017-03-07 05:26:57 EST
Please, change the priority/severity if not adequate.
Comment 10 errata-xmlrpc 2018-04-10 08:28:17 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0763

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