Bug 2481569

Summary: At the end of a selinux sandbox, some of its runtime directories are not removed
Product: [Fedora] Fedora Reporter: Alphonse Steiner <alphsteiner>
Component: policycoreutilsAssignee: Petr Lautrbach <plautrba>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 44CC: dwalsh, lvrabec, mmalik, plautrba, vmojzis
Target Milestone: ---Keywords: Desktop
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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
Handle the forgotten runtime directories none

Description Alphonse Steiner 2026-05-26 17:37:48 UTC
When running a sandbox command, it creates runtime directories into /tmp.
Some of them are not removed when the sandbox is closed (/tmp/.sandbox_runtime_XXXX, /tmp/.sandbox-$USER-XXXX)
I am attaching a patch to handle them.

Reproducible: Always

Steps to Reproduce:
1.run a sandbox
2.look at the output of: ls -l /tmp/.sandbox*
3.some runtime directories are still there

Comment 1 Alphonse Steiner 2026-05-26 17:39:09 UTC
Created attachment 2143010 [details]
Handle the forgotten runtime directories