]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Require plymouthd to be run as root
authorRay Strode <rstrode@redhat.com>
Wed, 10 Sep 2008 18:19:47 +0000 (14:19 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 10 Sep 2008 18:19:47 +0000 (14:19 -0400)
src/main.c

index 35ff024c4b2c72178786c2e51f26aa6846f24580..0fec219f0c05989b6a62e1e296cdfc92f5b9ac63 100644 (file)
@@ -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 ();