Bug 2123930 - SELinux is preventing systemd-gpt-aut from using the 'sys_admin' capabilities.
Summary: SELinux is preventing systemd-gpt-aut from using the 'sys_admin' capabilities.
Keywords:
Status: CLOSED DUPLICATE of bug 2083900
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 37
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3d82aa1a07192e9f8734391de04...
: 2152881 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-03 06:55 UTC by Ian Laurie
Modified: 2022-12-13 12:16 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-09-05 05:47:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ian Laurie 2022-09-03 06:55:53 UTC
Description of problem:
First login to Xfce Security Lab freshly installed from 20220831.n.0.
SELinux is preventing systemd-gpt-aut from using the 'sys_admin' capabilities.

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

If you believe that systemd-gpt-aut should have the sys_admin capability 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 'systemd-gpt-aut' --raw | audit2allow -M my-systemdgptaut
# semodule -X 300 -i my-systemdgptaut.pp

Additional Information:
Source Context                system_u:system_r:systemd_gpt_generator_t:s0
Target Context                system_u:system_r:systemd_gpt_generator_t:s0
Target Objects                Unknown [ capability ]
Source                        systemd-gpt-aut
Source Path                   systemd-gpt-aut
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-37.8-1.fc37.noarch
Local Policy RPM              selinux-policy-targeted-37.8-1.fc37.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.19.3-300.fc37.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sun Aug 21 16:17:41 UTC 2022
                              x86_64 x86_64
Alert Count                   2
First Seen                    2022-09-03 16:47:06 AEST
Last Seen                     2022-09-03 16:47:11 AEST
Local ID                      cb0af560-5374-40ed-9335-c216f928f3e6

Raw Audit Messages
type=AVC msg=audit(1662187631.833:329): avc:  denied  { sys_admin } for  pid=3079 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


Hash: systemd-gpt-aut,systemd_gpt_generator_t,systemd_gpt_generator_t,capability,sys_admin

Version-Release number of selected component:
selinux-policy-targeted-37.8-1.fc37.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.17.2
hashmarkername: setroubleshoot
kernel:         5.19.3-300.fc37.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2022-09-05 05:47:37 UTC

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

Comment 2 Vitor Coló 2022-12-13 12:16:35 UTC
*** Bug 2152881 has been marked as a duplicate of this bug. ***


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