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

Set uinput permissions properly on CI #14

Open
georgefst opened this issue Feb 12, 2021 · 2 comments
Open

Set uinput permissions properly on CI #14

georgefst opened this issue Feb 12, 2021 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@georgefst
Copy link
Owner

georgefst commented Feb 12, 2021

I've tried the usual commands:

sudo groupadd uinput
sudo usermod -a -G uinput $USER
echo 'KERNEL=="uinput", GROUP="uinput", MODE:="0660", OPTIONS+="static_node=uinput"' | sudo tee -a /etc/udev/rules.d/99-uinput.rules > /dev/null

# usually I'd just log out and back in, but that's not an option on Github Actions
# it's possible that not all of these are necessary
# EDIT: related: https://github.com/georgefst/evdev/issues/32
sudo udevadm control --reload-rules
sudo udevadm trigger
sudo modprobe uinput

Checking with ls -l /dev/uinput, the group is correctly set to uinput. But only if there are no uses statements (checkout, cache, setup-haskell) elsewhere in haskell.yml. Somehow these must interfere with the udev rules...

#13 works around this by compiling the test executable, then running it with sudo.

NB: most of this experimentation went on in #12, but the history there is not worth trying to follow

@georgefst georgefst added the help wanted Extra attention is needed label Feb 12, 2021
@guygastineau
Copy link
Contributor

Weird. I will try to look into this if I find some extra time.

@georgefst
Copy link
Owner Author

I am curious to know what on earth is going on here.

Although I am very possibly gonna move all my CI stuff over to Nix and Hydra. So, given this is probably just a weird quirk of Github Actions, I wouldn't spend too much time on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants