summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAles Kozumplik <akozumpl@redhat.com>2010-05-03 18:25:20 +0200
committerAles Kozumplik <akozumpl@redhat.com>2010-05-06 13:20:38 +0200
commit5c8be71aab71654c29df8a0950372c41e8a47aad (patch)
tree438338c73448c5f961aa4c9f36f93a98f482c0fe /scripts
parentb332af6bc3f3c26ae9d87d529a3c0dd5d96ad2a9 (diff)
memory: build auditd as a standalone binary and run it so (#549653).
Instead of just forking, we fork() anaconda and then execv our custom audit daemon. This saves us an extra anaconda process running permanently, taking memory.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mk-images2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/mk-images b/scripts/mk-images
index 7cee059c4..a400c2081 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -162,6 +162,7 @@ mkdir -p $INSTIMGPATH
# Stuff that we need
TRIMPCIIDS=$IMGPATH/usr/libexec/anaconda/trimpciids
GETKEYMAPS=$IMGPATH/usr/libexec/anaconda/getkeymaps
+LIBEXECBINDIR=$IMGPATH/usr/libexec/anaconda
GENINITRDSZ=$IMGPATH/usr/$LIBDIR/anaconda/geninitrdsz
MKS390CDBOOT=$IMGPATH/usr/$LIBDIR/anaconda/mk-s390-cdboot
GENMODINFO=$IMGPATH/usr/libexec/anaconda/genmodinfo
@@ -666,6 +667,7 @@ makeinitrd() {
instbin $IMGPATH /usr/sbin/dasdfmt $MBD_DIR /sbin/dasdfmt
cp -a $IMGPATH/usr/sbin/*_cio_free $MBD_DIR/sbin
fi
+ instbin $IMGPATH ${LIBEXECBINDIR##$IMGPATH}/auditd $MBD_DIR /sbin/auditd
if [ "$BUILDARCH" != "s390" -a "$BUILDARCH" != "s390x" ]; then
install -m 644 $KEYMAPS $MBD_DIR/etc/keymaps.gz