diff options
-rw-r--r-- | libseat/backend/seatd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libseat/backend/seatd.c b/libseat/backend/seatd.c index 5bb478e..afeab7f 100644 --- a/libseat/backend/seatd.c +++ b/libseat/backend/seatd.c @@ -575,6 +575,11 @@ static struct libseat *builtin_open_seat(struct libseat_seat_listener *listener, return NULL; } + if (geteuid() != 0) { + log_debug("Built-in seatd instance requires root privileges"); + return NULL; + } + pid_t pid = fork(); if (pid == -1) { log_errorf("Could not fork: %s", strerror(errno)); |