mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #817] Cannot use mlocate within Firejail #553
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#553
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 @chiraag-nataraj on GitHub (Sep 27, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/817
I use this profile for my terminal emulator
If I try to use locate inside a jailed terminal, I get
locate: can not open '/var/lib/mlocate/mlocate.db': Permission denied. I tried not usingnoroot, but locate still didn't work.@chiraag-nataraj commented on GitHub (Sep 27, 2016):
Huh. The issue goes away if I comment out
protocol unix,noroot, andseccomp. Why would that be? Let's forget aboutprotocol unixsince I don't need that (since I havenet noneanyway).norootmakes sense since the locate database is owned byroot. But whyseccomp?@netblue30 commented on GitHub (Sep 27, 2016):
I have no idea what is going on. I also tried to "strace locate some-program" without any sandboxing, and it would not work. I think they are doing something very unusual. Seccomp doesn't report anything in /var/log/audit/audit.log, so nothing is killed by seccomp.
@chiraag-nataraj commented on GitHub (Sep 27, 2016):
I'm looking into whether GNU locate behaves like this.
@chiraag-nataraj commented on GitHub (Sep 27, 2016):
GNU locate works fine even with
norootandseccomp. Weird.@chiraag-nataraj commented on GitHub (Sep 27, 2016):
So I'm looking at the mlocate source (here) and it seems it's doing some setgid stuff...would that be blocked by firejail?
@netblue30 commented on GitHub (Sep 27, 2016):
Yes, if it results in rising privileges.
@chiraag-nataraj commented on GitHub (Sep 27, 2016):
That might explain why it's not working if
seccompis in effect. Huh, interesting.