aboutsummaryrefslogtreecommitdiff
path: root/sway/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c
index a83660d5..61ae6a5f 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -360,6 +360,11 @@ int main(int argc, char **argv) {
executable_sanity_check();
bool suid = false;
+
+ if (!server_privileged_prepare(&server)) {
+ return 1;
+ }
+
#ifdef __linux__
if (getuid() != geteuid() || getgid() != getegid()) {
// Retain capabilities after setuid()