plugins/python: add python audit plugin wrapper

This commit is contained in:
Robert Manner
2020-02-03 13:00:51 +01:00
committed by Todd C. Miller
parent bbbcb39334
commit cbf60cff5d
5 changed files with 400 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ EXAMPLES = example_conversation.py example_debugging.py example_group_plugin.p
OBJS = python_plugin_common.lo python_plugin_policy.lo python_plugin_io.lo python_plugin_group.lo pyhelpers.lo \
python_importblocker.lo python_convmessage.lo sudo_python_module.lo sudo_python_debug.lo \
python_baseplugin.lo
python_baseplugin.lo python_plugin_audit.lo
IOBJS = $(OBJS:.lo=.i)
@@ -265,6 +265,12 @@ python_importblocker.i: $(srcdir)/python_importblocker.c \
$(CC) -E -o $@ $(CPPFLAGS) $<
python_importblocker.plog: python_importblocker.i
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/python_importblocker.c --i-file $< --output-file $@
python_plugin_audit.lo: $(srcdir)/python_plugin_audit.c
$(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(ASAN_CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(srcdir)/python_plugin_audit.c
python_plugin_audit.i: $(srcdir)/python_plugin_audit.c
$(CC) -E -o $@ $(CPPFLAGS) $<
python_plugin_audit.plog: python_plugin_audit.i
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/python_plugin_audit.c --i-file $< --output-file $@
python_plugin_common.lo: $(srcdir)/python_plugin_common.c \
$(incdir)/sudo_conf.h $(incdir)/sudo_queue.h
$(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(ASAN_CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(srcdir)/python_plugin_common.c