blob: 53bdde80721ccff52c99a7d7f4ca6f4634d8352e [file] [log] [blame]
Andrew Geissler59125e02021-07-23 12:56:22 -04001From a737c95ac0f887c365fe8f16583ea95da79de1e9 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Mon, 21 Jun 2021 16:53:39 +0800
4Subject: [PATCH] rc.apparmor.debian: add missing functions
5
6Add missing functions:
7 aa_log_action_start
8 aa_log_action_end
9 aa_log_daemon_msg
10 aa_log_end_msg
11
12Fixes:
13$ /etc/init.d/apparmor start
14/lib/apparmor/rc.apparmor.functions: line 294: aa_log_daemon_msg: command not found
15/lib/apparmor/rc.apparmor.functions: line 214: aa_log_action_start: command not found
16
17Upstream-Status: Pending
18
19Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
20---
21 parser/rc.apparmor.debian | 20 ++++++++++++++++++++
22 1 file changed, 20 insertions(+)
23
24diff --git a/parser/rc.apparmor.debian b/parser/rc.apparmor.debian
25index 8efd4400..f35124e8 100644
26--- a/parser/rc.apparmor.debian
27+++ b/parser/rc.apparmor.debian
28@@ -70,6 +70,26 @@ aa_log_skipped_msg() {
29 echo ": Skipped."
30 }
31
32+aa_log_action_start()
33+{
34+ echo "$@"
35+}
36+
37+aa_log_action_end()
38+{
39+ printf ""
40+}
41+
42+aa_log_daemon_msg()
43+{
44+ echo "$@"
45+}
46+
47+aa_log_end_msg()
48+{
49+ printf ""
50+}
51+
52 usage() {
53 echo "Usage: $0 {start|stop|restart|try-restart|reload|force-reload|status|kill}"
54 }
55--
562.17.1
57