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 2063181 - AVC check fail for running chronyc
Summary: AVC check fail for running chronyc
Keywords:
Status: CLOSED DUPLICATE of bug 1772852
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.2
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Zdenek Pytela
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-11 13:05 UTC by Radek Duda
Modified: 2022-03-14 14:33 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-14 14:05:22 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-115517 0 None None None 2022-03-14 14:33:19 UTC

Description Radek Duda 2022-03-11 13:05:22 UTC
Description of problem:

AVC check for chronyc fails:

SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Memory protection checking:     actual (secure)
Max kernel policy version:      31
selinux-policy-3.14.3-41.el8_2.9.noarch
----
time->Thu Aug 12 12:22:55 2021
type=PROCTITLE msg=audit(1628785375.500:314): proctitle=6368726F6E796300747261636B696E67
type=SYSCALL msg=audit(1628785375.500:314): arch=c000003e syscall=41 success=no exit=-13 a0=2 a1=80001 a2=0 a3=7ffd74b801b9 items=0 ppid=119734 pid=119735 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="chronyc" exe="/usr/bin/chronyc" subj=unconfined_u:unconfined_r:chronyc_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1628785375.500:314): avc:  denied  { create } for  pid=119735 comm="chronyc" scontext=unconfined_u:unconfined_r:chronyc_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:chronyc_t:s0-s0:c0.c1023 tclass=tcp_socket permissive=0
----
time->Thu Aug 12 12:22:55 2021
type=PROCTITLE msg=audit(1628785375.661:315): proctitle=6368726F6E796300736F757263657374617473
type=SYSCALL msg=audit(1628785375.661:315): arch=c000003e syscall=41 success=no exit=-13 a0=2 a1=80001 a2=0 a3=7ffc0a41a8f9 items=0 ppid=119749 pid=119750 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="chronyc" exe="/usr/bin/chronyc" subj=unconfined_u:unconfined_r:chronyc_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1628785375.661:315): avc:  denied  { create } for  pid=119750 comm="chronyc" scontext=unconfined_u:unconfined_r:chronyc_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:chronyc_t:s0-s0:c0.c1023 tclass=tcp_socket permissive=0
----
time->Thu Aug 12 12:22:55 2021
type=PROCTITLE msg=audit(1628785375.663:316): proctitle=6368726F6E796300736F757263657374617473
type=SYSCALL msg=audit(1628785375.663:316): arch=c000003e syscall=41 success=no exit=-13 a0=2 a1=80001 a2=0 a3=7ffc0a41a8f9 items=0 ppid=119749 pid=119750 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="chronyc" exe="/usr/bin/chronyc" subj=unconfined_u:unconfined_r:chronyc_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1628785375.663:316): avc:  denied  { create } for  pid=119750 comm="chronyc" scontext=unconfined_u:unconfined_r:chronyc_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:chronyc_t:s0-s0:c0.c1023 tclass=tcp_socket permissive=0

Version-Release number of selected component (if applicable):
selinux-policy-3.14.3-41.el8_2.9.noarch


https://beaker.engineering.redhat.com/recipes/10484519/tasks/130391857/results/614656615/logs/avc.log

Comment 2 Milos Malik 2022-03-11 15:10:46 UTC
This issue was fixed in RHEL-8.3. Here is the relevant bug:
 * https://bugzilla.redhat.com/show_bug.cgi?id=1872304

Comment 3 Radek Duda 2022-03-11 16:43:15 UTC
This is a by-product of sos testing.

Comment 4 Zdenek Pytela 2022-03-14 14:05:22 UTC
(In reply to Radek Duda from comment #3)
> This is a by-product of sos testing.

Closing this bz then a dup of 1772852. If it needs to be backported to 8.2, start the accelerated process for the parent bz#1772852.

*** This bug has been marked as a duplicate of bug 1772852 ***


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