mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #483] private dir owner #344
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#344
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 @saddy001 on GitHub (Apr 26, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/483
I tried to sandbox pidgin like so:
firejail --blacklist=/media --private=~/Programme/telegram --net=lxcbr0 --dns=8.8.8.8 --nosound pidginIn order to prevent it from reading my directories, accessing my private network etc. The first time it started fine but then it doesn't start up any more (the GUI window does not show). I see some dbus errors...
And when I start into a shell I see "groups: Es ist kein Name zur Gruppen‐ID 65534 zu finden" (No name found for this group ID).
ls -hla says
...
dr-x------ 2 65534 65534 40 Apr 26 19:17 .purple
So it seems that the pidgin process created this dir with user/group "65534" which doesn't exist. It tried to chown the dir from outside the sandbox, which was successful, but from the inside it shows the same invalid owner again.
Thanks for your great work by the way.
@netblue30 commented on GitHub (Apr 27, 2016):
65534 is a very low privileges user/group the kernel is using as a place holder for users and groups not covered by the user namespace.
In my opinion this is a kernel problem. I've seen it coming and going on older kernels. I think it was fixed on newer kernels, Since I moved to 4.3 I didn't get it anymore.
This is how you fix it: reboot the machine, and before you start the sandbox you go in ~/Programme/telegram and change the user/group:
Your directory should look something like this:
@saddy001 commented on GitHub (Apr 30, 2016):
Thanks for your reply.
What you suggested is what I meant with "chown the dir from outside the sandbox" but it didn't work, even after a fresh reboot and chown. The dir looks proper from outside the sandbox:
ls -hla Programme/telegram/
drwx------ 5 saddy saddy 4,0K Apr 27 20:05 .purple
But inside it has the same unprivileged owner:
dr-x------ 2 65534 65534 40 Apr 30 15:40 .purple
which I cannot change from inside the sandbox. Indeed I'm on a 3.13 Kernel, but since I will switch soon, I close this issue. Thanks.