From mboxrd@z Thu Jan 1 00:00:00 1970 From: Klaus Heinrich Kiwi Subject: [PATCH 07/07][RFC] RACF audit plugin - build and packaging integration Date: Fri, 28 Sep 2007 10:28:38 -0300 Message-ID: <1190986118.4113.56.camel@klausk.br.ibm.com> References: <1190983565.4113.2.camel@klausk.br.ibm.com> <1190983925.4113.8.camel@klausk.br.ibm.com> <1190984128.4113.12.camel@klausk.br.ibm.com> <1190984843.4113.25.camel@klausk.br.ibm.com> <1190985127.4113.32.camel@klausk.br.ibm.com> <1190985276.4113.35.camel@klausk.br.ibm.com> <1190985692.4113.42.camel@klausk.br.ibm.com> Reply-To: klausk@br.ibm.com Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1190985692.4113.42.camel@klausk.br.ibm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Linux-audit@redhat.com List-Id: linux-audit@redhat.com This patch adds the racf plugin to the audit package build system, with some additions to the spec file as well (the audit plugins package is still disabled). Signed-off-by: Klaus Heinrich Kiwi diff -purN audit-1.6.2/audisp/plugins/Makefile.am audit-1.6.2_racf/audisp/plugins/Makefile.am --- audit-1.6.2/audisp/plugins/Makefile.am 2007-09-12 14:25:13.000000000 -0300 +++ audit-1.6.2_racf/audisp/plugins/Makefile.am 2007-09-28 09:18:08.000000000 -0300 @@ -22,5 +22,5 @@ CONFIG_CLEAN_FILES = Makefile.in *.loT *.rej *.orig -SUBDIRS = builtins ids remote +SUBDIRS = builtins ids remote racf diff -purN audit-1.6.2/audisp/plugins/racf/Makefile.am audit-1.6.2_racf/audisp/plugins/racf/Makefile.am --- audit-1.6.2/audisp/plugins/racf/Makefile.am 1969-12-31 21:00:00.000000000 -0300 +++ audit-1.6.2_racf/audisp/plugins/racf/Makefile.am 2007-09-28 09:18:08.000000000 -0300 @@ -0,0 +1,46 @@ +# Makefile.am-- +# Copyright (C) 2007 International Business Machines Corp. +# All Rights Reserved. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# Authors: +# Klaus Heinrich Kiwi +# + +INCLUDES = -I.. -I${top_srcdir}/lib +CONFIG_CLEAN_FILES = Makefile.in *.rej *.orig +AUTOMAKE_OPTIONS = no-dependencies +EXTRA_DIST = racf.conf audisp-racf.conf +LIBS = -L${top_srcdir}/auparse -lauparse +LDADD = -lpthread -lldap -llber +disp_confdir = $(sysconfdir)/audisp +plugin_confdir=$(disp_confdir)/plugins.d +racf_plugin_conf = racf.conf +racf_disp_conf = audisp-racf.conf +sbin_PROGRAMS = audisp-racf + +noinst_HEADERS = racf-log.h racf-ldap.h racf-config.h racf-queue.h +audisp_racf_SOURCES = racf-plugin.c racf-log.c racf-ldap.c racf-config.c racf-queue.c +audisp_racf_CFLAGS = -W -Wall -Wundef -D_GNU_SOURCE + +install-data-hook: + mkdir -p -m 0750 ${DESTDIR}${plugin_confdir} + $(INSTALL_DATA) -D -m 640 ${srcdir}/$(racf_plugin_conf) ${DESTDIR}${disp_confdir} + $(INSTALL_DATA) -D -m 640 ${srcdir}/$(racf_disp_conf) ${DESTDIR}${plugin_confdir} + +uninstall-hook: + rm ${DESTDIR}${plugin_confdir}/$(racf_disp_conf) + rm ${DESTDIR}${disp_confdir}/$(racf_plugin_conf) diff -purN audit-1.6.2/audit.spec audit-1.6.2_racf/audit.spec --- audit-1.6.2/audit.spec 2007-09-25 08:46:49.000000000 -0300 +++ audit-1.6.2_racf/audit.spec 2007-09-28 09:19:40.000000000 -0300 @@ -124,7 +124,10 @@ touch -r ./audit.spec $RPM_BUILD_ROOT/et # Remove the plugin stuff for now rm -f $RPM_BUILD_ROOT/etc/audisp/plugins.d/au-ids.conf rm -f $RPM_BUILD_ROOT/etc/audisp/plugins.d/remote.conf +rm -f $RPM_BUILD_ROOT/etc/audisp/plugins.d/audisp-racf.conf +rm -f $RPM_BUILD_ROOT/etc/audisp/racf.conf rm -f $RPM_BUILD_ROOT/sbin/audisp-ids +rm -f $RPM_BUILD_ROOT/sbin/audisp-racf %clean rm -rf $RPM_BUILD_ROOT @@ -214,7 +217,10 @@ fi ##%defattr(-,root,root,-) ##%attr(640,root,root) /etc/audisp/plugins.d/au-ids.conf ##%attr(640,root,root) /etc/audisp/plugins.d/remote.conf +##%attr(640,root,root) /etc/audisp/plugins.d/audit-plugin-racf.conf +##%attr(640,root,root) /etc/audisp/racf.conf ##%attr(750,root,root) /sbin/audisp-ids +##%attr(750,root,root) /sbin/audit-plugin-racf %files -n system-config-audit -f system-config-audit.lang %defattr(-,root,root,-) diff -purN audit-1.6.2/configure.ac audit-1.6.2_racf/configure.ac --- audit-1.6.2/configure.ac 2007-09-12 14:26:41.000000000 -0300 +++ audit-1.6.2_racf/configure.ac 2007-09-28 09:18:08.000000000 -0300 @@ -109,7 +109,7 @@ if test x$use_apparmor != xno ; then AC_DEFINE(WITH_APPARMOR,1,[Define if you want to enable AppArmor events.])fi AC_CONFIG_SUBDIRS([system-config-audit]) -AC_OUTPUT(Makefile lib/Makefile auparse/Makefile auparse/test/Makefile src/Makefile src/mt/Makefile swig/Makefile docs/Makefile init.d/Makefile audisp/Makefile audisp/plugins/Makefile audisp/plugins/builtins/Makefile audisp/plugins/ids/Makefile audisp/plugins/remote/Makefile bindings/Makefile bindings/python/Makefile) +AC_OUTPUT(Makefile lib/Makefile auparse/Makefile auparse/test/Makefile src/Makefile src/mt/Makefile swig/Makefile docs/Makefile init.d/Makefile audisp/Makefile audisp/plugins/Makefile audisp/plugins/builtins/Makefile audisp/plugins/ids/Makefile audisp/plugins/remote/Makefile audisp/plugins/racf/Makefile bindings/Makefile bindings/python/Makefile) echo . echo "