mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #888] "firejail --get" always fails #603
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#603
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?
Originally created by @mcarpenter on GitHub (Nov 1, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/888
sandboxfs()tries to create the destination file as unprivileged user at https://github.com/netblue30/firejail/blob/master/src/firejail/ls.c#L388On success, it does not delete the resulting file. Subsequently
copy_filechokes since the target already exists: https://github.com/netblue30/firejail/blob/master/src/firejail/util.c#L195firejail --gettherefore always fails:That's an easily fixable bug but less TOCTOU would be good, generally, throughout. Specifically
copy_fileshould know what rights it has to read/write the source/destination files -- these abilities shouldn't be tested aforetime and thencopy_filegiven free reign viaEUID_ROOT.@netblue30 commented on GitHub (Nov 2, 2016):
I have a fix for --get/--put/TOCTOU problem on 0.9.44-bugfixes branch. I will be releasing it as 0.9.44.2 in the next two weeks - there are more security fixes to go in there. I'll close this bug after I look into copy_file and I merge the bugfix branch on main. Thanks.
@mcarpenter commented on GitHub (Mar 23, 2017):
I just tested 0.9.45, and this is fixed. Thanks!