summaryrefslogtreecommitdiffstats
path: root/systemtap.spec
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-11-20 14:19:30 -0500
committerDave Brolley <brolley@redhat.com>2009-11-20 14:19:30 -0500
commit03301bc3e9401ad8614548c2c2e7180e8b782e3c (patch)
tree9d2291f30f0464da30dac48589b09fd8fefb0247 /systemtap.spec
parentafe86dfb72ea8f8d0814c29bff76b8ef8ed0bd3f (diff)
downloadsystemtap-steved-03301bc3e9401ad8614548c2c2e7180e8b782e3c.tar.gz
systemtap-steved-03301bc3e9401ad8614548c2c2e7180e8b782e3c.tar.xz
systemtap-steved-03301bc3e9401ad8614548c2c2e7180e8b782e3c.zip
PR 10905 - Ensure that /usr/share/systemtap/runtime/uprobes is writeable by the
stap-server group.
Diffstat (limited to 'systemtap.spec')
-rw-r--r--systemtap.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/systemtap.spec b/systemtap.spec
index d7cdc61b..c9ffe9b1 100644
--- a/systemtap.spec
+++ b/systemtap.spec
@@ -311,6 +311,11 @@ exit 0
chmod 664 %{_localstatedir}/log/stap-server.log
chown stap-server %{_localstatedir}/log/stap-server.log
chgrp stap-server %{_localstatedir}/log/stap-server.log
+# Make sure that the uprobes module can be built by the server
+test -e /usr/share/systemtap/runtime/uprobes ] || mkdir -p /usr/share/systemtap/runtime/uprobes
+chgrp stap-server /usr/share/systemtap/runtime/uprobes
+chmod 775 /usr/share/systemtap/runtime/uprobes
+# Activate the service
/sbin/chkconfig --add stap-server
exit 0