Bug 2260636 - SELinux is preventing pgrep from 'sys_ptrace' accesses on the cap_userns labeled spamd_update_t.
Summary: SELinux is preventing pgrep from 'sys_ptrace' accesses on the cap_userns labe...
Keywords:
Status: CLOSED DUPLICATE of bug 2252484
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:31b07b7644ca2743310fdf53857...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-27 16:09 UTC by Loye Young
Modified: 2024-01-29 11:50 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-01-29 11:50:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.91 KB, text/plain)
2024-01-27 16:09 UTC, Loye Young
no flags Details
File: os_info (665 bytes, text/plain)
2024-01-27 16:09 UTC, Loye Young
no flags Details

Description Loye Young 2024-01-27 16:09:03 UTC
Description of problem:
pgrep is being called by spamassassin's sa-update, which fails because of this error. 
In turn, sa-update is called nightly by systemd sa-update.timer. 

You probably already know about this problem; it's been happening for months. I was too busy/lazy to check the bugzilla. If so, my apologies, and thank you for your work.
SELinux is preventing pgrep from 'sys_ptrace' accesses on the cap_userns labeled spamd_update_t.

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

If you believe that pgrep should be allowed sys_ptrace access on cap_userns labeled spamd_update_t 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 'pgrep' --raw | audit2allow -M my-pgrep
# semodule -X 300 -i my-pgrep.pp

Additional Information:
Source Context                system_u:system_r:spamd_update_t:s0
Target Context                system_u:system_r:spamd_update_t:s0
Target Objects                Unknown [ cap_userns ]
Source                        pgrep
Source Path                   pgrep
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-39.3-1.fc39.noarch
Local Policy RPM              selinux-policy-targeted-39.3-1.fc39.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.6.13-200.fc39.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sat Jan 20 18:03:28 UTC 2024
                              x86_64
Alert Count                   8
First Seen                    2024-01-25 00:00:02 CST
Last Seen                     2024-01-27 09:14:24 CST
Local ID                      b357b170-4ff7-4443-b7ee-a9ef658c7f9e

Raw Audit Messages
type=AVC msg=audit(1706368464.585:212): avc:  denied  { sys_ptrace } for  pid=24832 comm="pgrep" capability=19  scontext=system_u:system_r:spamd_update_t:s0 tcontext=system_u:system_r:spamd_update_t:s0 tclass=cap_userns permissive=0


Hash: pgrep,spamd_update_t,spamd_update_t,cap_userns,sys_ptrace

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

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing pgrep from 'sys_ptrace' accesses on the cap_userns labeled spamd_update_t.
package:        selinux-policy-targeted-39.3-1.fc39.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.6.13-200.fc39.x86_64
component:      selinux-policy

Comment 1 Loye Young 2024-01-27 16:09:05 UTC
Created attachment 2010954 [details]
File: description

Comment 2 Loye Young 2024-01-27 16:09:06 UTC
Created attachment 2010955 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-01-29 11:50:21 UTC

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


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