mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1989] gpg-agent errors #1340
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#1340
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 @infokiller on GitHub (Jun 11, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1989
When running with the default profile I get errors about gpg-agent. For example when running
less tmpfileI get:Firejail version:
Running on Arch Linux with linux-hardened-apparmor kernel.
Even when running with no profile it seems like firejail is doing something with the gpg-agent. I ran
firejail --noprofile /usr/bin/less tmpfileand got the output:When the main process (less) exited, it seems the firejail invocation was still running and I had to use
Ctrl-Cto get the shell back.NOTE: This doesn't happen only for less- I see it in other programs as well.
@chiraag-nataraj commented on GitHub (Jun 11, 2018):
Hmm, here's my output when I run
firejail --noprofile /usr/bin/less /etc/profile(as an example):In other words, I can't reproduce this. I'm on Debian running a customized kernel, but I don't think the kernel configuration has much to do with this (unless the linux-hardened-apparmor kernel sets other things besides just the kernel?).
I have seen this before (#1422 as an example). That being said,
gpg-agentshouldn't be running at all forless! This is really bizarre...@infokiller commented on GitHub (Jun 11, 2018):
Thanks for the quick response!
Yes, this is strange. BTW, this seems to happen for every firejailed program, not just less.
@chiraag-nataraj commented on GitHub (Jun 11, 2018):
Right, but other programs might actually use
gpg-agent. It's very curious because there's absolutely no reasonlessshould be spawninggpg-agentSo if you spawn
less tmpfile(no firejail) and look at something likehtopin tree mode (so you can see parent and children processes), doeslessspawn anything? I wonder...@infokiller commented on GitHub (Jun 11, 2018):
Nope, when running less without firejail gpg-agent is not spawned.
@chiraag-nataraj commented on GitHub (Jun 11, 2018):
Huh, that's even more weird. Does it spawn if you just run
firejail(orfirejail --noprofile)?@infokiller commented on GitHub (Jun 11, 2018):
Yup:
@chiraag-nataraj commented on GitHub (Jun 11, 2018):
Okay, that definitely shouldn't be happening...
@Vincent43 commented on GitHub (Jun 11, 2018):
Can you try
/usr/bin/firejailinstead offirejail?@infokiller commented on GitHub (Jun 11, 2018):
@Vincent43 that yielded the same result
OK, I think I understand where this is coming from- I have the following line in my
~/.profile:gpg-connect-agent updatestartuptty /bye >/dev/null.My login shell is set to zsh and I sourced
~/.profilefrom my~/.zshenv, so I guess firejail spawned a new shell each time that made these calls togpg-connect-agent.When I commented out my
~/.zshenvthe problem was resolved.Thanks a lot for all your help!