Andrew Geissler | 59125e0 | 2021-07-23 12:56:22 -0400 | [diff] [blame] | 1 | From a737c95ac0f887c365fe8f16583ea95da79de1e9 Mon Sep 17 00:00:00 2001 |
| 2 | From: Yi Zhao <yi.zhao@windriver.com> |
| 3 | Date: Mon, 21 Jun 2021 16:53:39 +0800 |
| 4 | Subject: [PATCH] rc.apparmor.debian: add missing functions |
| 5 | |
| 6 | Add missing functions: |
| 7 | aa_log_action_start |
| 8 | aa_log_action_end |
| 9 | aa_log_daemon_msg |
| 10 | aa_log_end_msg |
| 11 | |
| 12 | Fixes: |
| 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 | |
| 17 | Upstream-Status: Pending |
| 18 | |
| 19 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
| 20 | --- |
| 21 | parser/rc.apparmor.debian | 20 ++++++++++++++++++++ |
| 22 | 1 file changed, 20 insertions(+) |
| 23 | |
| 24 | diff --git a/parser/rc.apparmor.debian b/parser/rc.apparmor.debian |
| 25 | index 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 | -- |
| 56 | 2.17.1 |
| 57 | |