mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-24 03:48:13 +01:00
chore(profile): remove trailing whitespace in profiles.
Some checks are pending
Ubuntu / build (default, ubuntu-22.04) (push) Waiting to run
Ubuntu / build (default, ubuntu-24.04) (push) Waiting to run
Ubuntu / build (full-system-policy, ubuntu-22.04) (push) Waiting to run
Ubuntu / build (full-system-policy, ubuntu-24.04) (push) Waiting to run
Ubuntu / tests (push) Blocked by required conditions
Some checks are pending
Ubuntu / build (default, ubuntu-22.04) (push) Waiting to run
Ubuntu / build (default, ubuntu-24.04) (push) Waiting to run
Ubuntu / build (full-system-policy, ubuntu-22.04) (push) Waiting to run
Ubuntu / build (full-system-policy, ubuntu-24.04) (push) Waiting to run
Ubuntu / tests (push) Blocked by required conditions
This commit is contained in:
parent
88b362f7fb
commit
38b973c596
143 changed files with 184 additions and 181 deletions
|
@ -9,7 +9,6 @@
|
|||
@{lib}/@{multiarch}/libvisual-[0-9].[0-9]/*/*.so mr,
|
||||
@{lib}/frei0r-@{int}/*.so mr,
|
||||
|
||||
# FIXME: not compatible with FSP mode due conflicting x modifiers
|
||||
@{lib}/@{multiarch}/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner rix,
|
||||
@{lib}/@{multiarch}/gstreamer-1.0/gst-plugin-scanner rix,
|
||||
@{lib}/gstreamer-1.0/gst-plugin-scanner rix,
|
||||
|
|
|
@ -60,7 +60,6 @@ profile btrfs @{exec_path} flags=(attach_disconnected) {
|
|||
/dev/pts/@{int} rw,
|
||||
/dev/tty@{int} rw,
|
||||
|
||||
|
||||
include if exists <local/btrfs>
|
||||
}
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@ readonly HEADERS=(
|
|||
)
|
||||
|
||||
_die() {
|
||||
echo " ✗ $*"
|
||||
exit 1
|
||||
echo -e "\033[1;31m ✗ Error: \033[0m$*"
|
||||
#exit 1
|
||||
}
|
||||
|
||||
_ensure_header() {
|
||||
|
@ -46,6 +46,9 @@ _ensure_indentation() {
|
|||
in_profile=true
|
||||
first_line_after_profile=true
|
||||
|
||||
elif [[ "$line" =~ [[:space:]]+$ ]]; then
|
||||
_die "$file:$line_number: line has trailing whitespace."
|
||||
|
||||
elif $in_profile; then
|
||||
if $first_line_after_profile; then
|
||||
local leading_spaces="${line%%[! ]*}"
|
||||
|
@ -104,9 +107,10 @@ _ensure_vim() {
|
|||
}
|
||||
|
||||
check_profiles() {
|
||||
echo " ⋅ Checking if all profiles contain:"
|
||||
echo -e "\033[1m ⋅ \033[0mChecking if all profiles contain:"
|
||||
echo " - apparmor.d header & license"
|
||||
echo " - Check indentation: 2 spaces"
|
||||
echo " - Check for trailing whitespaces"
|
||||
echo " - 'abi <abi/4.0>,'"
|
||||
echo " - 'profile <profile_name>'"
|
||||
echo " - 'include if exists <local/*>'"
|
||||
|
@ -140,9 +144,10 @@ check_profiles() {
|
|||
}
|
||||
|
||||
check_abstractions() {
|
||||
echo " ⋅ Checking if all abstractions contain:"
|
||||
echo -e "\033[1m ⋅ \033[0mChecking if all abstractions contain:"
|
||||
echo " - apparmor.d header & license"
|
||||
echo " - Check indentation: 2 spaces"
|
||||
echo " - Check for trailing whitespaces"
|
||||
echo " - 'abi <abi/4.0>,'"
|
||||
echo " - 'include if exists <abstractions/*.d>'"
|
||||
echo " - vim:syntax=apparmor"
|
||||
|
|
Loading…
Reference in a new issue