Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xvfb-run is not invoked as root user when using runAsHostUser #240

Open
mfbrantner opened this issue Feb 13, 2024 · 0 comments
Open

xvfb-run is not invoked as root user when using runAsHostUser #240

mfbrantner opened this issue Feb 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mfbrantner
Copy link

Bug description

When using the runAsHostUser flag in unity-builder and unity-test-runner, xvfb-run is invoked without root privileges.
This causes the following errors:
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

How to reproduce

Run unity-builder or unity-test-runner with runAsHostUser on a self-hosted runner.

Full log
Workflow file used

Expected behavior

xvfb-run should not throw any errors.

Additional details

A similar issue is also described here and here.

It seems that adding -nolisten unix to the arguments that are passed to Xvfb fixes this issue.

My proposal would be to add --server-args="-nolisten unix" to the line where the alias for the unity-editor is created:

xvfb-run -ae /dev/stdout "$UNITY_PATH/Editor/Unity" -batchmode "$@"' > /usr/bin/unity-editor \

However, I am unsure if this change would have any unforeseen consequences.

@mfbrantner mfbrantner added the bug Something isn't working label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant