From a0fc7f8e96d3818a963ad41aa5043d2a5bbcb9e5 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Thu, 5 Nov 2009 14:52:56 -0500 Subject: PR 9973: Sign uprobes.ko when it is created and load it using insert_module. Create home directory manually for stap-server. --- runtime/uprobes/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'runtime/uprobes') diff --git a/runtime/uprobes/Makefile b/runtime/uprobes/Makefile index a9630e5a..4ab637e2 100644 --- a/runtime/uprobes/Makefile +++ b/runtime/uprobes/Makefile @@ -7,12 +7,19 @@ DEPENDENCIES += Makefile default: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules + if test -f ../../../../bin/stap-sign-module; then \ + for f in *.ko; do \ + if test ! -e $$f.sgn -o $$f.sgn -ot $$f; then \ + ../../../../bin/stap-sign-module $$f ../../../../etc/systemtap/ssl/server; \ + fi \ + done \ + fi # This target is used with "make -q" to see whether a "real" build is needed. uprobes.ko: $(DEPENDENCIES) @echo uprobes.ko is not a valid target. See Makefile. clean: - rm -f *.mod.c *.ko *.o .*.cmd *~ + rm -f *.mod.c *.ko *.o .*.cmd *~ *.sgn rm -f Module.markers modules.order Module.symvers rm -rf .tmp_versions -- cgit