mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 18:17:09 +00:00
apparmor.systemd: fix shellcheck false positive
Shellcheck is complaining that some of the functions are never called, but they are called from rc.apparmor.functions, causing a false positive. This issue only appears in shellcheck version 0.9.0, which is the one used in ubuntu 24.04, that's why it only failed in the pipeline now. Fixes: https://gitlab.com/apparmor/apparmor/-/issues/388 Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
This commit is contained in:
parent
731880def8
commit
aaad725ac0
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
APPARMOR_FUNCTIONS=/lib/apparmor/rc.apparmor.functions
|
APPARMOR_FUNCTIONS=/lib/apparmor/rc.apparmor.functions
|
||||||
|
|
||||||
|
# This function is used in rc.apparmor.functions
|
||||||
|
# shellcheck disable=SC2317
|
||||||
aa_action()
|
aa_action()
|
||||||
{
|
{
|
||||||
echo "$1"
|
echo "$1"
|
||||||
@ -25,36 +27,50 @@ aa_action()
|
|||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# This function is used in rc.apparmor.functions
|
||||||
|
# shellcheck disable=SC2317
|
||||||
aa_log_warning_msg()
|
aa_log_warning_msg()
|
||||||
{
|
{
|
||||||
echo "Warning: $*"
|
echo "Warning: $*"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# This function is used in rc.apparmor.functions
|
||||||
|
# shellcheck disable=SC2317
|
||||||
aa_log_failure_msg()
|
aa_log_failure_msg()
|
||||||
{
|
{
|
||||||
echo "Error: $*"
|
echo "Error: $*"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# This function is used in rc.apparmor.functions
|
||||||
|
# shellcheck disable=SC2317
|
||||||
aa_log_action_start()
|
aa_log_action_start()
|
||||||
{
|
{
|
||||||
echo "$@"
|
echo "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# This function is used in rc.apparmor.functions
|
||||||
|
# shellcheck disable=SC2317
|
||||||
aa_log_action_end()
|
aa_log_action_end()
|
||||||
{
|
{
|
||||||
printf ""
|
printf ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# This function is used in rc.apparmor.functions
|
||||||
|
# shellcheck disable=SC2317
|
||||||
aa_log_daemon_msg()
|
aa_log_daemon_msg()
|
||||||
{
|
{
|
||||||
echo "$@"
|
echo "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# This function is used in rc.apparmor.functions
|
||||||
|
# shellcheck disable=SC2317
|
||||||
aa_log_skipped_msg()
|
aa_log_skipped_msg()
|
||||||
{
|
{
|
||||||
echo "Skipped: $*"
|
echo "Skipped: $*"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# This function is used in rc.apparmor.functions
|
||||||
|
# shellcheck disable=SC2317
|
||||||
aa_log_end_msg()
|
aa_log_end_msg()
|
||||||
{
|
{
|
||||||
printf ""
|
printf ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user