* Fix concurrent reading of extended attributes (xattrs) * Raise warning if both input databases are the same - Update to 0.18.7: * Add missing library CFLAGS * Fix typo in aide.conf manual page * Fix 64-bit time_t on 32-bit architectures * Fix debug logging for returned attributes * Fix condition for error message of failing to open gzipped files - rebased aide-0.18-as-needed.patch OBS-URL: https://build.opensuse.org/package/show/security/aide?expand=0&rev=64
39 lines
761 B
Bash
39 lines
761 B
Bash
#!/bin/sh
|
|
#
|
|
# AIDE _Example_ Cron Script
|
|
#
|
|
# Use at your own risk!
|
|
#
|
|
# Matthias G. Eckermann <mge@suse.de>
|
|
#
|
|
|
|
AIDEBINARY=/usr/bin/aide
|
|
AIDECONFIG=/etc/aide.conf
|
|
AIDEDOMOUNT=
|
|
AIDERODEVICE=
|
|
MOUNT=/bin/mount
|
|
UMOUNT=/bin/umount
|
|
|
|
#
|
|
# if you want to have the aide database on a CDROM,
|
|
# then play with these options:
|
|
#
|
|
#AIDERODEVICE=/media/cdrom
|
|
#AIDEDOMOUNT="yes" # some non-zero-string
|
|
#AIDECONFIG=/media/cdrom/aide.conf
|
|
|
|
if [ ".$AIDEDOMOUNT" != "." ] && [ ".$AIDERODEVICE" != "." ] ; then
|
|
echo "mounting $AIDERODEVICE"
|
|
$MOUNT $AIDERODEVICE
|
|
fi
|
|
|
|
if [ -x $AIDEBINARY -a $AIDECONFIG ]; then
|
|
$AIDEBINARY --config=$AIDECONFIG --check
|
|
fi
|
|
|
|
if [ ".$AIDEDOMOUNT" != "." ] && [ ".$AIDERODEVICE" != "." ] ; then
|
|
echo "unmounting $AIDERODEVICE"
|
|
$UMOUNT $AIDERODEVICE
|
|
fi
|
|
|