[GH-ISSUE #2309] emacs: File error: Opening input file, Decryption failed, No secret key #1537

Closed
opened 2026-05-05 08:12:08 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @bbigras on GitHub (Dec 20, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2309

I have the following error when I try to run emacs with firejail. Emacs is probably trying to decrypt ~/.authinfo.gpg at launch.

Warning (initialization): An error occurred while loading ‘/home/bbigras2/.emacs.d/init.el’:

File error: Opening input file, Decryption failed, No secret key: <some key>

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

NixOS unstable

firejail version 0.9.56

Compile time support:
        - AppArmor support is disabled
        - AppImage support is enabled
        - chroot support is enabled
        - file and directory whitelisting support is enabled
        - file transfer support is enabled
        - networking support is enabled
        - overlayfs support is enabled
        - private-home support is enabled
        - seccomp-bpf support is enabled
        - user namespace support is enabled
        - X11 sandboxing support is enabled
Originally created by @bbigras on GitHub (Dec 20, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2309 I have the following error when I try to run emacs with firejail. Emacs is probably trying to decrypt ~/.authinfo.gpg at launch. ``` Warning (initialization): An error occurred while loading ‘/home/bbigras2/.emacs.d/init.el’: File error: Opening input file, Decryption failed, No secret key: <some key> To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the ‘--debug-init’ option to view a complete error backtrace. ``` NixOS unstable ``` firejail version 0.9.56 Compile time support: - AppArmor support is disabled - AppImage support is enabled - chroot support is enabled - file and directory whitelisting support is enabled - file transfer support is enabled - networking support is enabled - overlayfs support is enabled - private-home support is enabled - seccomp-bpf support is enabled - user namespace support is enabled - X11 sandboxing support is enabled ```
Author
Owner

@SkewedZeppelin commented on GitHub (Dec 20, 2018):

Can you try the following

mkdir -p ~/.config/firejail
echo "noblacklist ${HOME}/.gnupg" >> ~/.config/firejail/emacs.local
#run emacs
<!-- gh-comment-id:449171234 --> @SkewedZeppelin commented on GitHub (Dec 20, 2018): Can you try the following ``` mkdir -p ~/.config/firejail echo "noblacklist ${HOME}/.gnupg" >> ~/.config/firejail/emacs.local #run emacs ```
Author
Owner

@bbigras commented on GitHub (Dec 21, 2018):

It works but for some reason I had to use /etc/firejail/emacs.local on NixOS (04bbb2ab6b).

Should "noblacklist" be included in the default profile? I would think it could be better not, since not everyone must use gpg in emacs.

<!-- gh-comment-id:449403757 --> @bbigras commented on GitHub (Dec 21, 2018): It works but for some reason I had to use /etc/firejail/emacs.local on NixOS (https://github.com/NixOS/nixpkgs/commit/04bbb2ab6b7faf595e60fedc4da2cd5010d0d616). Should "noblacklist" be included in the default profile? I would think it could be better not, since not everyone must use gpg in emacs.
Author
Owner

@SkewedZeppelin commented on GitHub (Dec 23, 2018):

I've added a note in 39ef880dd2 (diff-3302370d1fb8ac2bcf3f38cb8802939dR11)

<!-- gh-comment-id:449610919 --> @SkewedZeppelin commented on GitHub (Dec 23, 2018): I've added a note in https://github.com/netblue30/firejail/commit/39ef880dd2469c0c09510e32535913551d6cbaf2#diff-3302370d1fb8ac2bcf3f38cb8802939dR11
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1537
No description provided.