mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #4591] [MERGED] s/S_IWRITE/S_IWUSR/ #5198
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#5198
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/4591
Author: @kmk3
Created: 10/5/2021
Status: ✅ Merged
Merged: 10/9/2021
Merged by: @netblue30
Base:
master← Head:replace-iwrite-iwuser📝 Commits (2)
3050ef0s/S_IWRITE/S_IWUSR/4937f73Merge branch 'master' into replace-iwrite-iwuser📊 Changes
6 files changed (+10 additions, -10 deletions)
View changed files
📝
src/firejail/chroot.c(+1 -1)📝
src/firejail/fs_hostname.c(+2 -2)📝
src/firejail/fs_trace.c(+2 -2)📝
src/firejail/fs_var.c(+3 -3)📝
src/firejail/ls.c(+1 -1)📝
src/firejail/sandbox.c(+1 -1)📄 Description
They are equivalent, but only the latter is POSIX. See sys_stat.h(0p)
of POSIX.1-2017[1]. From Section 14.9.5, The Mode Bits for Access
Permission of the glibc manual[2]:
Current usage:
Commands used to search and replace:
Note: The other related non-POSIX macros are not used anywhere:
[1] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html
[2] https://www.gnu.org/software/libc/manual/html_node/Permission-Bits.html
Misc: I noticed this on #4586.
Since this conflicts with #4586, I'm marking this as a draft until that is
merged.
Note to self: This will need to be rebased/reworded.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.