summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-11-23 17:39:16 -0500
committerDave Brolley <brolley@redhat.com>2009-11-23 17:39:16 -0500
commit562d60b004e3d7ae73c1c7508be529006bd6430f (patch)
tree8bf077ab4caa738eead9bfe386041f94565f0899 /runtime
parent3cb882af782ac1959b247ba7ec5286c516313218 (diff)
downloadsystemtap-steved-562d60b004e3d7ae73c1c7508be529006bd6430f.tar.gz
systemtap-steved-562d60b004e3d7ae73c1c7508be529006bd6430f.tar.xz
systemtap-steved-562d60b004e3d7ae73c1c7508be529006bd6430f.zip
Ensure uprobes/Makefile never returns failure due to setting permissions.
Ensure uprobes install directory has group 'stap-server'. Rename igid_in to in_group.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/uprobes/Makefile28
1 files changed, 17 insertions, 11 deletions
diff --git a/runtime/uprobes/Makefile b/runtime/uprobes/Makefile
index 443797b8..35942052 100644
--- a/runtime/uprobes/Makefile
+++ b/runtime/uprobes/Makefile
@@ -25,20 +25,26 @@ default:
fi \
done \
fi
- -chgrp stap-server $(CLEAN_FILES) 2>/dev/null
- -chmod 664 $(CLEAN_FILES) 2>/dev/null
- -for d in $(CLEAN_DIRS); do \
- chgrp stap-server $$d 2>/dev/null; \
- chmod 775 $$d 2>/dev/null; \
- for dd in `find $$d -type d`; do \
- chgrp stap-server $$dd 2>/dev/null; \
- chmod 775 $$dd 2>/dev/null; \
- done; \
- for f in `find $$d -type f`; do \
+ if getent group stap-server >/dev/null; then \
+ for f in $(CLEAN_FILES); do \
+ test ! -f $$f && continue; \
chgrp stap-server $$f 2>/dev/null; \
chmod 664 $$f 2>/dev/null; \
done; \
- done
+ for d in $(CLEAN_DIRS); do \
+ test ! -d $$d && continue; \
+ chgrp stap-server $$d 2>/dev/null; \
+ chmod 775 $$d 2>/dev/null; \
+ for dd in `find $$d -type d`; do \
+ chgrp stap-server $$dd 2>/dev/null; \
+ chmod 775 $$dd 2>/dev/null; \
+ done; \
+ for f in `find $$d -type f`; do \
+ chgrp stap-server $$f 2>/dev/null; \
+ chmod 664 $$f 2>/dev/null; \
+ done; \
+ done; \
+ fi
# This target is used with "make -q" to see whether a "real" build is needed.
uprobes.ko: $(DEPENDENCIES)