[GH-ISSUE #6006] xauth command is hardcoded to /usr/bin/xauth #3154

Open
opened 2026-05-05 09:47:03 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @hashelq on GitHub (Sep 15, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6006

Description

eb5c97197b/src/firejail/x11.c (L1180-L1186)

Expected behavior

To find the executable in the path, or, at least, have an option to override the path to the binary.

Actual behavior

unix-way

Additional context

Despite the fact in most environments you can find binaries in /usr/bin, there are cases in which you cannot, like in NixOS, containers, small os images, etc.

Environment

NixOS (/usr/bin, as well as /bin are not used for apps like xauth)

Checklist

  • I have performed a short search for similar issues (to avoid opening a duplicate).
Originally created by @hashelq on GitHub (Sep 15, 2023). Original GitHub issue: https://github.com/netblue30/firejail/issues/6006 ### Description https://github.com/netblue30/firejail/blob/eb5c97197b699dbb8ba69e798c86e5e97c36e17e/src/firejail/x11.c#L1180-L1186 ### Expected behavior To find the executable in the path, or, at least, have an option to override the path to the binary. ### Actual behavior unix-way ### Additional context Despite the fact in most environments you can find binaries in /usr/bin, there are cases in which you cannot, like in NixOS, containers, small os images, etc. ### Environment NixOS (/usr/bin, as well as /bin are not used for apps like xauth) ### Checklist - [x] I have performed a short search for similar issues (to avoid opening a duplicate).
Author
Owner

@ghost commented on GitHub (Sep 16, 2023):

Thank you for reporting this. Similar hardcoded reference to /usr/bin/xauth:

eb5c97197b/src/firejail/fs_lib2.c (L168-L170)

@netblue30 @smitsohu Can you have a look at this please?

<!-- gh-comment-id:1722275100 --> @ghost commented on GitHub (Sep 16, 2023): Thank you for reporting this. Similar hardcoded reference to /usr/bin/xauth: https://github.com/netblue30/firejail/blob/eb5c97197b699dbb8ba69e798c86e5e97c36e17e/src/firejail/fs_lib2.c#L168-L170 @netblue30 @smitsohu Can you have a look at this please?
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#3154
No description provided.