From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Buesch Date: Tue, 24 Feb 2004 19:16:50 +0000 Subject: [PATCH] udev check for UID 0 Message-Id: <200402241937.44079.mbuesch@freenet.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi, As udev is unable to run without UID 0 privileges, we should check for it early and print out some information to make the user aware of this. --- udev.c.orig 2004-02-24 15:24:13.000000000 +0100 +++ udev.c 2004-02-24 19:36:49.000000000 +0100 @@ -109,6 +109,11 @@ int i; struct sigaction act; + if (geteuid() != 0) { + printf("udev requires root (UID 0) privileges\n"); + goto exit; + } + action = get_action(); if (!action) { dbg("no action?"); -- Regards Michael Buesch [ http://www.tuxsoft.de.vu ] ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel