RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1429853 - ptp4l cannot respond to unconfined pmc using UDS
Summary: ptp4l cannot respond to unconfined pmc using UDS
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-07 10:01 UTC by Miroslav Lichvar
Modified: 2021-06-10 12:00 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-176.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 12:28:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0763 0 None None None 2018-04-10 12:29:13 UTC

Description Miroslav Lichvar 2017-03-07 10:01:41 UTC
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 10:23:59 UTC
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 10:26:57 UTC
Please, change the priority/severity if not adequate.

Comment 10 errata-xmlrpc 2018-04-10 12:28:17 UTC
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.