Bug 2380869 - avc: denied { write } for pid=24032 comm="stress-ng" name="secretmem" dev="secretmem" ino=26612 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:secretmem_t:s0 tclass=anon_inode permissive=1
Summary: avc: denied { write } for pid=24032 comm="stress-ng" name="secretmem" dev=...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: Unspecified
OS: Linux
low
medium
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-16 12:58 UTC by Bruno Goncalves
Modified: 2025-07-21 19:11 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-07-21 19:11:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 2771 0 None Merged Fix kernel_secretmem_use() and add kernel_secretmem_use_inherited() 2025-07-17 06:48:18 UTC

Description Bruno Goncalves 2025-07-16 12:58:58 UTC
Running stress-ng test suite we get the following avc denials on permissive mode.

SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   permissive
Mode from config file:          permissive
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Memory protection checking:     actual (secure)
Max kernel policy version:      34
selinux-policy-41.45-1.fc43.noarch
----
time->Tue Jul 15 05:45:13 2025
type=AVC msg=audit(1752558313.422:473): avc:  denied  { write } for  pid=24032 comm="stress-ng" name="secretmem" dev="secretmem" ino=26612 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:secretmem_t:s0 tclass=anon_inode permissive=1
----
time->Tue Jul 15 05:45:13 2025
type=AVC msg=audit(1752558313.422:474): avc:  denied  { map } for  pid=24032 comm="stress-ng" path=2F7365637265746D656D202864656C6574656429 dev="secretmem" ino=26612 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:secretmem_t:s0 tclass=anon_inode permissive=1
----
time->Tue Jul 15 05:45:13 2025
type=AVC msg=audit(1752558313.422:475): avc:  denied  { read } for  pid=24032 comm="stress-ng" path=2F7365637265746D656D202864656C6574656429 dev="secretmem" ino=26612 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:secretmem_t:s0 tclass=anon_inode permissive=1


Reproducible: Always

Steps to Reproduce:
1.run stress-ng test suite using https://gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/tree/main/stress/stress-ng?ref_type=heads
2.
3.


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