From: Ray Strode Date: Wed, 10 Sep 2008 18:19:47 +0000 (-0400) Subject: Require plymouthd to be run as root X-Git-Tag: 0.6.0~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dee4a857876abe69649eaf004f58c46a8bc97e7a;p=thirdparty%2Fplymouth.git Require plymouthd to be run as root --- diff --git a/src/main.c b/src/main.c index 35ff024c..0fec219f 100644 --- a/src/main.c +++ b/src/main.c @@ -602,6 +602,12 @@ main (int argc, return EX_USAGE; } + if (geteuid () != 0) + { + ply_error ("plymouthd must be run as root user"); + return EX_OSERR; + } + chdir ("/"); daemon_handle = ply_create_daemon ();