[GH-ISSUE #821] dnscrypt-proxy --version gives "invalid .Xauthority file" error #558

Closed
opened 2026-05-05 06:07:41 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @Freso on GitHub (Sep 28, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/821

With firejail:

freso@koume ~> firejail dnscrypt-proxy --version
Reading profile /etc/firejail/dnscrypt-proxy.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Parent pid 3524, child pid 3525
Error: invalid .Xauthority file
Error: cannot establish communication with the parent, exiting...

Without firejail:

freso@koume ~> dnscrypt-proxy --version
dnscrypt-proxy 1.7.0

I'm not sure whether this is actually an error with dnscrypt-proxy (I'm not sure why it'd need .Xauthority to print the version string…), but figured I'd post here first.

I have no custom settings yet.

freso@koume ~> firejail --version
firejail version 0.9.42

Compile time support:
    - AppArmor support is disabled
    - AppImage support is enabled
    - bind 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

PS. firejail firejail --version works, but doesn't have access to see what's supported and what isn't.

Originally created by @Freso on GitHub (Sep 28, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/821 With `firejail`: ``` freso@koume ~> firejail dnscrypt-proxy --version Reading profile /etc/firejail/dnscrypt-proxy.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-passwdmgr.inc Parent pid 3524, child pid 3525 Error: invalid .Xauthority file Error: cannot establish communication with the parent, exiting... ``` Without `firejail`: ``` freso@koume ~> dnscrypt-proxy --version dnscrypt-proxy 1.7.0 ``` I'm not sure whether this is actually an error with `dnscrypt-proxy` (I'm not sure why it'd need `.Xauthority` to print the version string…), but figured I'd post here first. I have no custom settings yet. ``` freso@koume ~> firejail --version firejail version 0.9.42 Compile time support: - AppArmor support is disabled - AppImage support is enabled - bind 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 ``` PS. `firejail firejail --version` works, but doesn't have access to see what's supported and what isn't.
Author
Owner

@manevich commented on GitHub (Sep 28, 2016):

Error: invalid .Xauthority file

It seems to be error message of Firejail, not of dnscrypt-proxy --version.
Is your ~/.Xauthority symlink? It's pretty unusual setup, I think.
Can you provide some details: where it pointing, OS version?
In any case, this should not be fatal error, just warning, so I will send pull request with fix soon.
Your information can make this fix better.

<!-- gh-comment-id:250306276 --> @manevich commented on GitHub (Sep 28, 2016): > Error: invalid .Xauthority file It seems to be error message of Firejail, not of `dnscrypt-proxy --version`. Is your `~/.Xauthority` symlink? It's pretty unusual setup, I think. Can you provide some details: where it pointing, OS version? In any case, this should not be fatal error, just warning, so I will send pull request with fix soon. Your information can make this fix better.
Author
Owner

@Freso commented on GitHub (Sep 28, 2016):

freso@koume ~> lsb_release -a
LSB Version:    1.4
Distributor ID: Arch
Description:    Arch Linux
Release:    rolling
Codename:   n/a
freso@koume ~> uname -a
Linux koume 4.7.4-1-ARCH #1 SMP PREEMPT Thu Sep 15 15:24:29 CEST 2016 x86_64 GNU/Linux
freso@koume ~> ls -l ~/.Xauthority 
lrwxrwxrwx 1 freso users 15 13 feb  2014 /home/freso/.Xauthority -> /tmp/.Xauth1000
freso@koume ~> ls -l /tmp/.Xauth1000 
-rw------- 1 freso freso 50 27 sep 13:44 /tmp/.Xauth1000
<!-- gh-comment-id:250307595 --> @Freso commented on GitHub (Sep 28, 2016): ``` freso@koume ~> lsb_release -a LSB Version: 1.4 Distributor ID: Arch Description: Arch Linux Release: rolling Codename: n/a freso@koume ~> uname -a Linux koume 4.7.4-1-ARCH #1 SMP PREEMPT Thu Sep 15 15:24:29 CEST 2016 x86_64 GNU/Linux freso@koume ~> ls -l ~/.Xauthority lrwxrwxrwx 1 freso users 15 13 feb 2014 /home/freso/.Xauthority -> /tmp/.Xauth1000 freso@koume ~> ls -l /tmp/.Xauth1000 -rw------- 1 freso freso 50 27 sep 13:44 /tmp/.Xauth1000 ```
Author
Owner

@manevich commented on GitHub (Sep 28, 2016):

I added pull request with fix: https://github.com/netblue30/firejail/pull/822
Thanks for reporting.

<!-- gh-comment-id:250311334 --> @manevich commented on GitHub (Sep 28, 2016): I added pull request with fix: https://github.com/netblue30/firejail/pull/822 Thanks for reporting.
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#558
No description provided.