diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2017-09-25 23:01:54 -0300 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-09-30 13:53:04 +0000 |
commit | 6ddebeedb1862db4a9d3443b979c8a9744077dda (patch) | |
tree | 14742c7fdf8ad1d3cf1d071123b58aa51fcc849b | |
parent | 5b91b3429df9f59125878da7e4018976201d239f (diff) | |
download | bubblewrap-6ddebeedb1862db4a9d3443b979c8a9744077dda.tar.gz |
acquire_privs: Cosmetic change to reduce indentation
This reads more clearly.
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Closes: #218
Approved by: cgwalters
-rw-r--r-- | bubblewrap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bubblewrap.c b/bubblewrap.c index 316f4b6..edd9887 100644 --- a/bubblewrap.c +++ b/bubblewrap.c @@ -641,11 +641,10 @@ acquire_privs (void) /* Are we setuid ? */ if (real_uid != euid) { - if (euid == 0) - is_privileged = TRUE; - else + if (euid != 0) die ("Unexpected setuid user %d, should be 0", euid); + is_privileged = TRUE; /* We want to keep running as euid=0 until at the clone() * operation because doing so will make the user namespace be * owned by root, which makes it not ptrace:able by the user as |