summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/cap.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2007-10-12 18:13:07 -0400
committerFrank Ch. Eigler <fche@elastic.org>2007-10-12 18:13:07 -0400
commit8b64d9c2be16169b73a3d3230e736b7e50161478 (patch)
tree0d1e4e1946e4b57335e076a559c401362cf8093e /runtime/staprun/cap.c
parentfc6d4679f2eb93d1d114ceb9d47fc9f3cc12aca7 (diff)
parent1969b5bca1098bb03f8bcffc5cc940102a67744c (diff)
downloadsystemtap-steved-8b64d9c2be16169b73a3d3230e736b7e50161478.tar.gz
systemtap-steved-8b64d9c2be16169b73a3d3230e736b7e50161478.tar.xz
systemtap-steved-8b64d9c2be16169b73a3d3230e736b7e50161478.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/staprun/cap.c')
-rw-r--r--runtime/staprun/cap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/staprun/cap.c b/runtime/staprun/cap.c
index df4a7130..6f22dfc9 100644
--- a/runtime/staprun/cap.c
+++ b/runtime/staprun/cap.c
@@ -28,7 +28,7 @@
_perr(msg); \
exit(1); \
} \
-
+
/*
* init_cap() sets up the initial capabilities for staprun. Then
* it calls prctl( PR_SET_KEEPCAPS) to arrrange to keep these capabilities
@@ -57,7 +57,7 @@
int init_cap(void)
{
cap_t caps = cap_init();
- cap_value_t capv[] = {CAP_SYS_MODULE, CAP_SYS_ADMIN, CAP_SYS_NICE, CAP_SETUID, CAP_SETGID};
+ cap_value_t capv[] = {CAP_SYS_MODULE, CAP_SYS_ADMIN, CAP_SYS_NICE, CAP_SETUID, CAP_SETGID, CAP_DAC_OVERRIDE};
const int numcaps = sizeof(capv) / sizeof(capv[0]);
uid_t uid = getuid();
gid_t gid = getgid();