From 0387bde4d7cb9853a93af0d266330dea7938b506 Mon Sep 17 00:00:00 2001 From: David Smith Date: Thu, 18 Sep 2008 16:23:12 -0500 Subject: Fix PR 6903 by checking for the real uid, not the euid. 2008-09-18 David Smith PR 6903. * staprun_funcs.c (check_permissions): Instead of checking the effective uid, check the real uid for root permissions. --- runtime/staprun/staprun_funcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/staprun/staprun_funcs.c') diff --git a/runtime/staprun/staprun_funcs.c b/runtime/staprun/staprun_funcs.c index 8fa95e45..5e7fa102 100644 --- a/runtime/staprun/staprun_funcs.c +++ b/runtime/staprun/staprun_funcs.c @@ -307,7 +307,7 @@ int check_permissions(void) int path_check = 0; /* If we're root, we can do anything. */ - if (geteuid() == 0) + if (getuid() == 0) return 1; /* Lookup the gid for group "stapdev" */ -- cgit