[linux-user-chroot] Allow being run as root
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [linux-user-chroot] Allow being run as root
- Date: Mon, 30 Jan 2012 20:32:55 +0000 (UTC)
commit 1896ef83b6028f8c2391121bf4abc84cb5676a49
Author: Colin Walters <walters verbum org>
Date: Sun Jan 22 13:42:40 2012 -0500
Allow being run as root
It was just an extra check to be sure we would be switching back to
the right uid, but there's no reason not to allow executing this
program as root.
src/linux-user-chroot.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/linux-user-chroot.c b/src/linux-user-chroot.c
index d816115..0cd74f8 100644
--- a/src/linux-user-chroot.c
+++ b/src/linux-user-chroot.c
@@ -226,8 +226,6 @@ main (int argc,
if (getresuid (&ruid, &euid, &suid) < 0)
fatal_errno ("getresuid");
- if (ruid == 0)
- fatal ("error: ruid is 0");
if (rgid == 0)
rgid = ruid;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]