diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2018-03-13 17:46:35 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-03-21 10:58:40 -0400 |
commit | 1b6910af12cfefcc293be2f4144986fe3b56a36b (patch) | |
tree | ba0519a0fceed0be3103099f0a2be786bc9ec53a | |
parent | 9ef602de46de2beae1d6231dc72a1a783a26122f (diff) |
os: use PrivsElevated instead of a manual check
Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Ben Crocker <bcrocker@redhat.com>
Reviewed-by: Antoine Martin <antoine@nagafix.co.uk>
Tested-by: Ben Crocker <bcrocker@redhat.com>
-rw-r--r-- | os/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/utils.c b/os/utils.c index 4305dab26..6e3c16869 100644 --- a/os/utils.c +++ b/os/utils.c @@ -1863,7 +1863,7 @@ CheckUserParameters(int argc, char **argv, char **envp) char *a, *e = NULL; #if CHECK_EUID - if (geteuid() == 0 && getuid() != geteuid()) + if (PrivsElevated()) #endif { /* Check each argv[] */ |