From d9ae4c3010abfa1a72f1030afd282b5490747775 Mon Sep 17 00:00:00 2001 From: Greg Depoire--Ferrer Date: Wed, 4 Aug 2021 07:55:28 +0200 Subject: Revert "libseat: Check euid before using builtin" This reverts commit 1ae6c3b3ddf0ce2a2e1817eb9c74e0c03153df58. A user might want to run the builtin server as non root, if they have permission to use the devices. The check was originally copied from wlroots's direct backend. It was reverted in fa05d3cde68d with a detailed explanation of why root priviledges are not always necessary to use the DRM device. --- libseat/backend/seatd.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'libseat/backend') diff --git a/libseat/backend/seatd.c b/libseat/backend/seatd.c index 25d8e95..3ff54d6 100644 --- a/libseat/backend/seatd.c +++ b/libseat/backend/seatd.c @@ -606,11 +606,6 @@ static struct libseat *builtin_open_seat(struct libseat_seat_listener *listener, return NULL; } - if (geteuid() != 0) { - log_error("Built-in seatd instance requires root privileges"); - return NULL; - } - pid_t pid = fork(); if (pid == -1) { log_errorf("Could not fork: %s", strerror(errno)); -- cgit v1.2.3