Skip to content

fs/zipfs: Report execute permission for files and the root. - #20756

Merged
acassis merged 1 commit into
apache:masterfrom
casaroli:fs-zipfs-xbits
Oct 18, 2026
Merged

acassis merged 1 commit into
apache:masterfrom
casaroli:fs-zipfs-xbits

Conversation

@casaroli

Copy link
Copy Markdown
Contributor

Summary

zipfs reported its files as 0444 and its root directory with no permission bits at all. So a program in a zip archive had no execute bit, and the root directory had no read or search bit.

This PR reports the files and the root directory as 0555.

Impact

Only the mode that stat() reports changes. With CONFIG_SCHED_USER_IDENTITY, exec() checks the execute bit, so with this PR a program on zipfs can run instead of failing with EACCES.

Testing

Build: qemu-armv8a:nsh with CONFIG_FS_ZIPFS, CONFIG_LIB_ZLIB, CONFIG_UTILS_ZIP and CONFIG_UTILS_UNZIP. (With make, fs/zipfs does not find unzip.h on master either; the build used the zlib include path of apps.)

tools/checkpatch.sh -c -u -m -g passes.

zipfs reported its files as 0444 and its root directory with no
permission bits at all.  So a program in a zip archive had no execute
bit, and the root directory had no read or search bit.

Report the files and the root directory as 0555.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
@github-actions github-actions Bot added Area: File System File System issues Size: XS The size of the change in this PR is very small labels Oct 17, 2026
@github-actions

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@acassis
acassis merged commit 4fd68e5 into apache:master Oct 18, 2026
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: File System File System issues Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants