Bug 2263634 - SELinux is preventing agetty from using the 'checkpoint_restore' capabilities.
Summary: SELinux is preventing agetty from using the 'checkpoint_restore' capabilities.
Keywords:
Status: CLOSED DUPLICATE of bug 2259622
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ac5692d98e6e1d792c049a32214...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-02-10 10:34 UTC by curtis
Modified: 2024-02-12 08:28 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-02-12 08:28:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.87 KB, text/plain)
2024-02-10 10:34 UTC, curtis
no flags Details
File: os_info (699 bytes, text/plain)
2024-02-10 10:34 UTC, curtis
no flags Details

Description curtis 2024-02-10 10:34:11 UTC
Description of problem:
The error shows after updating from kernel 6.7.3 to 6.7.4
SELinux is preventing agetty from using the 'checkpoint_restore' capabilities.

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

If you believe that agetty should have the checkpoint_restore 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 'agetty' --raw | audit2allow -M my-agetty
# semodule -X 300 -i my-agetty.pp

Additional Information:
Source Context                system_u:system_r:getty_t:s0-s0:c0.c1023
Target Context                system_u:system_r:getty_t:s0-s0:c0.c1023
Target Objects                Unknown [ capability2 ]
Source                        agetty
Source Path                   agetty
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-39.4-1.fc39.noarch
Local Policy RPM              selinux-policy-targeted-39.4-1.fc39.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.7.4-200.fc39.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon Feb 5 22:21:14 UTC 2024 x86_64
Alert Count                   1
First Seen                    2024-02-10 05:14:16 EST
Last Seen                     2024-02-10 05:14:16 EST
Local ID                      7ebd2736-0c75-428f-adb3-dd1905e9d1e7

Raw Audit Messages
type=AVC msg=audit(1707560056.376:165): avc:  denied  { checkpoint_restore } for  pid=2291 comm="agetty" capability=40  scontext=system_u:system_r:getty_t:s0-s0:c0.c1023 tcontext=system_u:system_r:getty_t:s0-s0:c0.c1023 tclass=capability2 permissive=1


Hash: agetty,getty_t,getty_t,capability2,checkpoint_restore

Version-Release number of selected component:
selinux-policy-targeted-39.4-1.fc39.noarch

Additional info:
reporter:       libreport-2.17.11
comment:        The error shows after updating from kernel 6.7.3 to 6.7.4
reason:         SELinux is preventing agetty from using the 'checkpoint_restore' capabilities.
package:        selinux-policy-targeted-39.4-1.fc39.noarch
hashmarkername: setroubleshoot
kernel:         6.7.4-200.fc39.x86_64
type:           libreport
component:      selinux-policy
component:      selinux-policy

Comment 1 curtis 2024-02-10 10:34:13 UTC
Created attachment 2016154 [details]
File: description

Comment 2 curtis 2024-02-10 10:34:14 UTC
Created attachment 2016155 [details]
File: os_info

Comment 3 Cagney 2024-02-11 19:06:42 UTC
It looks like a fix was pushed into rawhide with Bug 2259622, what about f39?

Comment 4 Zdenek Pytela 2024-02-12 08:28:20 UTC
F39 build is planned for a release later this week.

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


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