-
Notifications
You must be signed in to change notification settings - Fork 285
SUID: Drop root permission like Sway #7
Comments
Sounds good to me. Send a PR to review? |
I am not able to do this. I just want to ask or encourage the conversation. |
A pull request has been added trying to copy this feature form Sway #36 |
Can someone with this use case test the PR? |
I would test, but I cant build dwl because of missing |
xwayland is not optional; you'll need it to build and run. |
It ought to be optional, really. You shouldn't have to install X11 cruft in order to run dwl. |
Fixed that. @sdsddsd1, give it another try! |
I have no success to start dwl. It cannot become 'drm master' and ends with a segmention fault. There is |
@LukasZumvorde , I somehow couldnt ping you in the first post. |
Is this feature still relevant? As of linux 5.8 it is possible to become and drop drm_master for unprevileged users. This feature is available in the latest wlroots master. I can run other compositors with setgid on input as a user process.
I can start also dwl like this, but firefox refuses to start because of allegedly root permissions. |
@sdsddsd1 Do you still have an issue with this on your setup, or did the Linux fix (plus, perhaps, adding your user to the |
@djpohly : I dont have wayland setup at the moment to test on. My setup was the lines above and to be in the video group. I think I tried with to be in the input group aswell. When I remember right |
Hi, chown :input dwl
chmod g+s dwl Does Thanks |
No having my user part of the |
I think this was due to missing either the |
…NULL Passing NULL to wlr_keyboard_set_keymap results in a segfault. Example: Thread 1 "dwl" received signal SIGSEGV, Segmentation fault. 0x00007ffff7e49b64 in xkb_keymap_ref () from /usr/lib/libxkbcommon.so.0 (gdb) bt #0 0x00007ffff7e49b64 in xkb_keymap_ref () at /usr/lib/libxkbcommon.so.0 djpohly#1 0x00007ffff7f06389 in wlr_keyboard_set_keymap () at /usr/lib/libwlroots.so.11 djpohly#2 0x000055555555bc54 in createkeyboard () djpohly#3 0x000055555555c283 in inputdevice () djpohly#4 0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0 djpohly#5 0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0 djpohly#6 0x00007ffff7edb52c in () at /usr/lib/libwlroots.so.11 djpohly#7 0x00007ffff7ee44b6 in () at /usr/lib/libwlroots.so.11 djpohly#8 0x000055555555fe66 in main ()
…NULL Passing NULL to wlr_keyboard_set_keymap results in a segfault. Example: Thread 1 "dwl" received signal SIGSEGV, Segmentation fault. 0x00007ffff7e49b64 in xkb_keymap_ref () from /usr/lib/libxkbcommon.so.0 (gdb) bt #0 0x00007ffff7e49b64 in xkb_keymap_ref () at /usr/lib/libxkbcommon.so.0 #1 0x00007ffff7f06389 in wlr_keyboard_set_keymap () at /usr/lib/libwlroots.so.11 #2 0x000055555555bc54 in createkeyboard () #3 0x000055555555c283 in inputdevice () #4 0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0 #5 0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0 #6 0x00007ffff7edb52c in () at /usr/lib/libwlroots.so.11 #7 0x00007ffff7ee44b6 in () at /usr/lib/libwlroots.so.11 #8 0x000055555555fe66 in main ()
Hey,
since this project might be interesting for minimal envoriments without systemd/elogind, I wanted to ask if its on your agenda to add support for setuid on the binary and drop the provilieges as soon as they are unneded like it is done in Sway.
sway wiki
Sway refuses to start when it cant drop privileges
The text was updated successfully, but these errors were encountered: