Skip to content

Commit

Permalink
Run x11vnc with correct SELinux context
Browse files Browse the repository at this point in the history
... if SELinux is enabled.

QubesOS/qubes-issues#9276
  • Loading branch information
marmarek committed Jun 14, 2024
1 parent b19a4ee commit 4b71d95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions appvm-scripts/usrbin/qubes-run-x11vnc
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ guivm_vnc() {
# WIP: Ensure to have the good set of x11vnc options.
OPTIONS_VNC="-display :0 -auth /var/run/lightdm/root/:0 -forever"

if [ -e /sys/fs/selinux ] && command -v runcon >/dev/null; then
X11VNC="runcon -t xserver_t $X11VNC"
fi

$X11VNC $OPTIONS_VNC &
}

Expand Down

0 comments on commit 4b71d95

Please sign in to comment.