Bug 2083062 - avc: denied { sys_admin } for pid=674004 comm="systemd-gpt-aut" capability=21 scontext=system_u:system_r:systemd_gpt_generator_t:s0 tcontext=system_u:system_r:systemd_gpt_generator_t:s0 tclass=capability permissive=0
Summary: avc: denied { sys_admin } for pid=674004 comm="systemd-gpt-aut" capability=21...
Keywords:
Status: CLOSED DUPLICATE of bug 2083900
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: aarch64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-09 08:30 UTC by Bruno Goncalves
Modified: 2022-05-11 20:16 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-11 20:16:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Bruno Goncalves 2022-05-09 08:30:02 UTC
Description of problem:

We start to hit the following avc denial while running tests on aarch64.

SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          permissive
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Memory protection checking:     actual (secure)
Max kernel policy version:      33
selinux-policy-37.1-1.fc37.noarch
----
time->Sun May  8 23:24:21 2022
type=AVC msg=audit(1652066661.437:1770): avc:  denied  { sys_admin } for  pid=674004 comm="systemd-gpt-aut" capability=21  scontext=system_u:system_r:systemd_gpt_generator_t:s0 tcontext=system_u:system_r:systemd_gpt_generator_t:s0 tclass=capability permissive=0
----
time->Sun May  8 23:24:32 2022
type=AVC msg=audit(1652066672.167:1818): avc:  denied  { sys_admin } for  pid=674050 comm="systemd-gpt-aut" capability=21  scontext=system_u:system_r:systemd_gpt_generator_t:s0 tcontext=system_u:system_r:systemd_gpt_generator_t:s0 tclass=capability permissive=0

Version-Release number of selected component (if applicable):
selinux-policy-37.1-1.fc37.noarch
systemd-251~rc2-1.fc37.aarch64

How reproducible:
It seems easily reproducible with test [1]

Steps to Reproduce:
1. Run test [1]


Additional info:
more logs: https://datawarehouse.cki-project.org/kcidb/tests/3434080
cki issue tracker: https://datawarehouse.cki-project.org/issue/1193

[1] https://gitlab.com/cki-project/kernel-tests/-/tree/main/networking/netfilter

Comment 1 Milos Malik 2022-05-09 09:05:59 UTC
One of our automated tests also triggers these SELinux denials:
 * https://src.fedoraproject.org/tests/selinux/blob/main/f/selinux-policy/systemd-notify-and-similar

Latest test results are visible at:
 * http://artifacts.dev.testing-farm.io/dbf959fd-15e6-4206-8178-45e4d0ae03e8

Comment 2 Carl G. 2022-05-11 20:16:51 UTC

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


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