mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Merge utils make check_severity_db: say ERROR for failing the build
utils `make check_severity_db` will fail the build if a (probably new) capability in not listed in severity.db. This also means it should print out an ERROR, not a warning.
This is a follow-up of lp#1890547 and https://gitlab.com/apparmor/apparmor/-/merge_requests/589
MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/591
Acked-by: John Johansen <john.johansen@canonical.com>
(cherry picked from commit 2f5d5e1b24
)
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
fd0ee07ed7
commit
968d8e532c
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ check_severity_db: /usr/include/linux/capability.h severity.db
|
|||
# The sed statement is based on the one in the parser's makefile
|
||||
RC=0 ; for cap in ${CAPABILITIES} ; do \
|
||||
if ! grep -q -w $${cap} severity.db ; then \
|
||||
echo "Warning! capability $${cap} not found in severity.db" ; \
|
||||
echo "ERROR: capability $${cap} not found in severity.db" ; \
|
||||
RC=1 ; \
|
||||
fi ;\
|
||||
done ; \
|
||||
|
|
Loading…
Add table
Reference in a new issue