Skip to content

tmpfiles: Tolerate EACCES/ENOSYS when resolving declared paths - #2382

Open
gursewak1997 wants to merge 1 commit into
bootc-dev:mainfrom
gursewak1997:bootc2379
Open

tmpfiles: Tolerate EACCES/ENOSYS when resolving declared paths#2382
gursewak1997 wants to merge 1 commit into
bootc-dev:mainfrom
gursewak1997:bootc2379

Conversation

@gursewak1997

Copy link
Copy Markdown
Contributor

The path canonicalization added in cfec5cc opens the parent directory of every declared tmpfiles.d path to get its (dev, ino) identity. Entries like selinux-policy's w /sys/fs/selinux/checkreqprot point at virtual filesystem paths that return EACCES in rootless containers (and ENOSYS under QEMU emulation). Treat these the same as a missing parent; return None, since the /var walker cannot encounter inaccessible paths either.

Fixes: #2379

@bootc-bot
bootc-bot Bot requested a review from jmarrero August 14, 2026 19:13
The path canonicalization added in cfec5cc opens the parent directory
of every declared tmpfiles.d path to get its (dev, ino) identity.
Entries like selinux-policy's `w /sys/fs/selinux/checkreqprot` point
at virtual filesystem paths that return EACCES in rootless containers
(and ENOSYS under QEMU emulation). Treat these the same as a missing
parent — return None — since the /var walker cannot encounter
inaccessible paths either.

Fixes: bootc-dev#2379

Assisted-by: AI
Signed-off-by: gursewak1997 <gursmangat@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bootc container lint fails with EACCES on /sys/fs/selinux/checkreqprot under rootless podman — regression in 1.16.7 (var-tmpfiles)

1 participant