diff options
author | ddomingo <ddomingo@redhat.com> | 2008-09-22 11:40:58 +1000 |
---|---|---|
committer | ddomingo <ddomingo@redhat.com> | 2008-09-22 11:40:58 +1000 |
commit | 19c6b7ad6b1a468694d918cbd8a71bb6b60c22ce (patch) | |
tree | 3aebdaa1ae2cc005a0050406541ed428b61b1d99 /runtime/staprun | |
parent | ca74563434b2877cd2d7e7e81dc3919483cca694 (diff) | |
parent | e8ea4501122483436cdeb0352d833ccefeda7d14 (diff) | |
download | systemtap-steved-19c6b7ad6b1a468694d918cbd8a71bb6b60c22ce.tar.gz systemtap-steved-19c6b7ad6b1a468694d918cbd8a71bb6b60c22ce.tar.xz systemtap-steved-19c6b7ad6b1a468694d918cbd8a71bb6b60c22ce.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/staprun')
-rw-r--r-- | runtime/staprun/ChangeLog | 6 | ||||
-rw-r--r-- | runtime/staprun/staprun_funcs.c | 2 |
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" */ |