Skip to content

Commit

Permalink
images, pkg/utils: Allow X11 clients to run as root
Browse files Browse the repository at this point in the history
It's necessary to propagate the XAUTHORITY environment variable from
the host when an X11 client is run as 'sudo <some-client>'. If an X11
client is started inside a 'su -' session, then xauth(1) needs to be
present so that pam_xauth.so can add a new XAUTHORITY environment
variable to the 'su -' session.

#572
  • Loading branch information
likan999 authored and debarshiray committed Oct 29, 2020
1 parent fb11b7e commit fca24b2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions images/fedora/f31/extra-packages
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ vte-profile
wget
which
words
xorg-x11-xauth
xz
zip
1 change: 1 addition & 0 deletions images/fedora/f32/extra-packages
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ vte-profile
wget
which
words
xorg-x11-xauth
xz
zip
1 change: 1 addition & 0 deletions images/fedora/f33/extra-packages
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ vte-profile
wget
which
words
xorg-x11-xauth
xz
zip
1 change: 1 addition & 0 deletions images/fedora/f34/extra-packages
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ vte-profile
wget
which
words
xorg-x11-xauth
xz
zip
1 change: 1 addition & 0 deletions src/pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ var (
"TOOLBOX_PATH",
"VTE_VERSION",
"WAYLAND_DISPLAY",
"XAUTHORITY",
"XDG_CURRENT_DESKTOP",
"XDG_DATA_DIRS",
"XDG_MENU_PREFIX",
Expand Down
1 change: 1 addition & 0 deletions toolbox
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ environment_variables="COLORTERM \
TOOLBOX_PATH \
VTE_VERSION \
WAYLAND_DISPLAY \
XAUTHORITY \
XDG_CURRENT_DESKTOP \
XDG_DATA_DIRS \
XDG_MENU_PREFIX \
Expand Down

0 comments on commit fca24b2

Please sign in to comment.