mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4394] tmpfs doesn't mount in home directory #2647
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#2647
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 @seonwoolee on GitHub (Jul 10, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4394
Bug and expected behavior
According to the man page, I should be able to mount a tmpfs filesystem on any directory inside my user home directory, without having to run as root. However, I get these warnings
Lightcord is just another Discord client. I copied the discord profile and modified it.
Reproduce
/home/seonwoo/.config/firejail/lightcord.local
/home/seonwoo/.config/firejail/lightcord.profile
/home/seonwoo/.config/firejail/lightcord-common.profile
Environment
Additional context
Apparmor has been enabled as well
Checklist
https://github.com/netblue30/firejail/issues/1139)--profile=PROFILENAMEis used to set the right profile.LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAMto get english error-messages.browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.debug output
@rusty-snake commented on GitHub (Jul 10, 2021):
As long as you own the files, that's true. I wouldn't expect that those files are owned by an other user but checking
ls -lis wrong.Can you reproduce this with
firejail --noprofile --tmpfs=~/... truetoo?PR welcome ;)
Thought I would use discord-common.profile if it is close enough.
@rusty-snake commented on GitHub (Jul 10, 2021):
What's in it?
@seonwoolee commented on GitHub (Jul 10, 2021):
Oops. The three cache directories were in fact owned by root because I was mounting them as tmpfs via
/etc/fstab(though I did have uid=1000,gid=100 - which corresponds to seonwoo:users - in the fstab, so shouldn't they have been owned by me?). I had umounted them before trying to use firejail to mount tmpfs on those directories, but the ownership was still left as root:root.Taking ownership fixed the issue. Closing.