summaryrefslogtreecommitdiffstats
path: root/runtime/staprun
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/staprun')
-rw-r--r--runtime/staprun/ChangeLog6
-rw-r--r--runtime/staprun/staprun_funcs.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/runtime/staprun/ChangeLog b/runtime/staprun/ChangeLog
index 21e02e47..c6d75106 100644
--- a/runtime/staprun/ChangeLog
+++ b/runtime/staprun/ChangeLog
@@ -1,3 +1,9 @@
+2008-09-18 David Smith <dsmith@redhat.com>
+
+ PR 6903.
+ * staprun_funcs.c (check_permissions): Instead of checking the
+ effective uid, check the real uid for root permissions.
+
2008-09-06 Frank Ch. Eigler <fche@elastic.org>
* mainloop.c (start_cmd): Rewrite to use wordexp/execvp/ptrace.
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" */