Bug 2440544

Summary: SELinux is preventing unsquashfs from 'setattr' accesses on the lnk_file .DirIcon.
Product: [Fedora] Fedora Reporter: Arnis K <ai.iens+bugzilla>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: low    
Version: 43CC: ai.iens+bugzilla, dan, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---Flags: zpytela: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:3fad2c35f177694089b44f931a568baa51809657fb8902b9be1e62393989a1c7;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-43.7-1.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-04-22 11:55:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: description
none
File: os_info none

Description Arnis K 2026-02-18 07:58:43 UTC
Description of problem:
SELinux is preventing unsquashfs from 'setattr' accesses on the lnk_file .DirIcon.

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

If you believe that unsquashfs should be allowed setattr access on the .DirIcon lnk_file 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 'unsquashfs' --raw | audit2allow -M my-unsquashfs
# semodule -X 300 -i my-unsquashfs.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:thumb_tmp_t:s0
Target Objects                .DirIcon [ lnk_file ]
Source                        unsquashfs
Source Path                   unsquashfs
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-42.24-1.fc43.noarch
Local Policy RPM              selinux-policy-targeted-42.24-1.fc43.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.18.10-200.fc43.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Wed Feb 11 17:20:05 UTC 2026
                              x86_64
Alert Count                   5
First Seen                    2026-02-18 09:52:32 EET
Last Seen                     2026-02-18 09:52:32 EET
Local ID                      47a9cc14-95e0-425e-89e3-fef7ef057ca9

Raw Audit Messages
type=AVC msg=audit(1771401152.590:554): avc:  denied  { setattr } for  pid=7378 comm="unsquashfs" name=".DirIcon" dev="tmpfs" ino=727 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:thumb_tmp_t:s0 tclass=lnk_file permissive=0


Hash: unsquashfs,thumb_t,thumb_tmp_t,lnk_file,setattr

Version-Release number of selected component:
selinux-policy-targeted-42.24-1.fc43.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing unsquashfs from 'setattr' accesses on the lnk_file .DirIcon.
package:        selinux-policy-targeted-42.24-1.fc43.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.18.10-200.fc43.x86_64
component:      selinux-policy

Comment 1 Arnis K 2026-02-18 07:58:46 UTC
Created attachment 2129824 [details]
File: description

Comment 2 Arnis K 2026-02-18 07:58:47 UTC
Created attachment 2129825 [details]
File: os_info

Comment 3 Fedora Update System 2026-04-28 15:55:41 UTC
FEDORA-2026-80879d3dfe (selinux-policy-43.7-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-80879d3dfe

Comment 4 Fedora Update System 2026-04-29 03:12:18 UTC
FEDORA-2026-80879d3dfe has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-80879d3dfe`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-80879d3dfe

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-04-30 01:21:00 UTC
FEDORA-2026-80879d3dfe (selinux-policy-43.7-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.