summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-01-22 13:42:40 -0500
committerColin Walters <walters@verbum.org>2012-01-22 13:42:40 -0500
commit1896ef83b6028f8c2391121bf4abc84cb5676a49 (patch)
treea9fd5bfce9099b3b84595f0708a92bb42f469fee
parent9ea94bba36515ff7e4c4c19aac3bbeafc68c73c8 (diff)
downloadlinux-user-chroot-1896ef83b6028f8c2391121bf4abc84cb5676a49.tar.gz
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.
-rw-r--r--src/linux-user-chroot.c2
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;