Refuse to start when SUID is detected

This ensures that those surprised by the deprecation of SUID operation
receive an error rather than accidentally having sway run as root.

This detection will be removed in a future release.
This commit is contained in:
Kenny Levinsen 2022-06-01 20:01:19 +02:00 committed by Simon Ser
parent 251a648e2c
commit e5728052b5
3 changed files with 22 additions and 47 deletions

View file

@ -148,8 +148,6 @@ struct sway_debug {
extern struct sway_debug debug;
/* Prepares an unprivileged server_init by performing all privileged operations in advance */
bool server_privileged_prepare(struct sway_server *server);
bool server_init(struct sway_server *server);
void server_fini(struct sway_server *server);
bool server_start(struct sway_server *server);