[yocto] [PATCH][meta-selinux] audit: sleep to wait for stop finished
wenzong.fan at windriver.com
wenzong.fan at windriver.com
Tue Feb 10 00:17:29 PST 2015
From: Wenzong Fan <wenzong.fan at windriver.com>
This issue only occurs on Board Target that boot with local disk.
Steps to reproduce the issue:
$ for x in `seq 1 10`; do /etc/init.d/auditd restart; done
$ ps -e | grep auditd
There will be many auditd processes running.
If stop is not finished completely, then start will generate two
auditd processes in the case.
Signed-off-by: Wenzong Fan <wenzong.fan at windriver.com>
---
recipes-security/audit/audit/auditd | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/recipes-security/audit/audit/auditd b/recipes-security/audit/audit/auditd
index fcd96c9..bac9a77 100755
--- a/recipes-security/audit/audit/auditd
+++ b/recipes-security/audit/audit/auditd
@@ -73,6 +73,10 @@ do_stop()
no|NO) ;;
*) /sbin/auditctl -D >/dev/null ;;
esac
+
+ # Waiting for start-stop-daemon finished
+ sleep 1
+
return "$RETVAL"
}
--
1.9.1
More information about the yocto
mailing list