]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Print deprecation notice when running SUID
authorJohan Malm <jgm323@gmail.com>
Wed, 20 Apr 2022 17:17:39 +0000 (18:17 +0100)
committerJohan Malm <jgm323@gmail.com>
Wed, 20 Apr 2022 17:17:39 +0000 (18:17 +0100)
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

src/server.c

index b3adad51dedc4f77874f0106e13f0438d9747188..d9deb251f5c4715f2ae3fbad5f5f93c41e344384 100644 (file)
@@ -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);