Package: aide
Version: 0.13.1-10
Tags: patch
This report has been filed here:
https://bugs.edge.launchpad.net/ubuntu/+source/aide/+bug/114730
"
Daily AIDE Report says:
---8<----
premature termination - Daily AIDE report for $HOSTNAME
The cron job was terminated because lock /var/run/aide/cron.daily.lock
could not be obtained.
---8<---
Creating /var/run/aide/ and changing ownership via:
sudo mkdir /var/run/aide
sudo chmod root:adm /var/run/aide
This only works untill the next reboot.
After a reboot the directory /var/run/aide is missing again.
TESTCASE
1. install aide
2. reboot system
3. manually invoke the aide cron job:
$ sudo /etc/cron.daily/aide
if the cronjob aborts right away, then the test has failed.
"
A patch is provided for Ubuntu.
diff -u aide-0.13.1/debian/changelog aide-0.13.1/debian/changelog
--- aide-0.13.1/debian/changelog
+++ aide-0.13.1/debian/changelog
@@ -1,3 +1,9 @@
+aide (0.13.1-10ubuntu1) intrepid; urgency=low
+
+ * Create TMPBASE directory if it doesn't exists (LP: #144730)
+
+ -- Jean-Baptiste Lallement <[EMAIL PROTECTED]> Sat, 19 Jul 2008 23:00:57
+0200
+
aide (0.13.1-10) unstable; urgency=low
* debian/control: fix deprecated "<" in Conflicts
diff -u aide-0.13.1/debian/cron.daily/aide aide-0.13.1/debian/cron.daily/aide
--- aide-0.13.1/debian/cron.daily/aide
+++ aide-0.13.1/debian/cron.daily/aide
@@ -120,6 +120,10 @@
LOGHEAD="$(printf "terminated because lock %s could not be
obtaiend." "$LOCKFILE")"
MAILHEAD="$(printf "The cron job was terminated because lock %s
could not be obtained." "$LOCKFILE")"
;;
+ cantcreatebase)
+ LOGHEAD="$(printf "terminated: Cannot create base directory
%s." "$TMPBASE")"
+ MAILHEAD="$(printf "The cron job was terminated: Cannot create
base directory %s." "$TMPBASE")"
+ ;;
cantmovetmp)
LOGHEAD="$(printf "terminated: Cannot move away %s."
"$TMPDIRIN")"
MAILHEAD="$(printf "The cron job was terminated: Cannot move
away %s." "$TMPDIRIN")"
@@ -365,6 +369,11 @@
BEGINTIME="$(date +%s)"
+if ! mkdir -p $TMPBASE; then
+ onexit cantcreatebase
+ exit 1
+fi
+
if command -v dotlockfile >/dev/null 2>&1; then
if ! dotlockfile -p -l "$LOCKFILE"; then
onexit nolock