From: Johan Malm Date: Wed, 20 Apr 2022 17:17:39 +0000 (+0100) Subject: Print deprecation notice when running SUID X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=c7aaa8dd616782537b8624eacabd3ee7020d69a3;p=proto%2Flabwc.git Print deprecation notice when running SUID Tracking swaywm/sway@e1db1f8 Add soft deprecation warning to highlight future intent of removing the code which drops SUID privileges. libseat now has a better alternative in the form of seatd-launch which uses the normal seatd daemon & libseat backend and takes care of SUID. Fixes issue #212 --- diff --git a/src/server.c b/src/server.c index b3adad51..d9deb251 100644 --- a/src/server.c +++ b/src/server.c @@ -69,6 +69,9 @@ static void drop_permissions(void) { if (getuid() != geteuid() || getgid() != getegid()) { + wlr_log(WLR_ERROR, "!!! DEPRECATION WARNING: " + "SUID privilege drop will be removed in future releases; " + "Please migrate to seatd-launch"); if (setgid(getgid())) { wlr_log(WLR_ERROR, "unable to drop root group"); exit(EXIT_FAILURE);