From 1517ff0296c04c6a86afacb44406c3d83bb94cea Mon Sep 17 00:00:00 2001 From: REmerald <55359236+REmerald@users.noreply.github.com> Date: Sun, 9 Jun 2024 16:13:59 +0300 Subject: [PATCH] feat(tunables): vim syntax support Add vim syntax highlighting support introduced in the apparmor package --- apparmor.d/tunables/home.d/apparmor.d | 1 + apparmor.d/tunables/home.d/whonix | 1 + apparmor.d/tunables/multiarch.d/paths | 1 + apparmor.d/tunables/multiarch.d/profiles | 1 + apparmor.d/tunables/multiarch.d/programs | 1 + apparmor.d/tunables/multiarch.d/system | 1 + apparmor.d/tunables/multiarch.d/system-users | 1 + apparmor.d/tunables/xdg-user-dirs.d/apparmor.d | 1 + 8 files changed, 8 insertions(+) diff --git a/apparmor.d/tunables/home.d/apparmor.d b/apparmor.d/tunables/home.d/apparmor.d index 52b30897..fb68ff20 100644 --- a/apparmor.d/tunables/home.d/apparmor.d +++ b/apparmor.d/tunables/home.d/apparmor.d @@ -2,6 +2,7 @@ # Extended user XDG directories definition # Copyright (C) 2021-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only +# vim:syntax=apparmor # To allow extended personalisation by the user without breaking everything. # All apparmor profiles should always use the variables defined here. diff --git a/apparmor.d/tunables/home.d/whonix b/apparmor.d/tunables/home.d/whonix index f462036f..2b902472 100644 --- a/apparmor.d/tunables/home.d/whonix +++ b/apparmor.d/tunables/home.d/whonix @@ -2,6 +2,7 @@ # Copyright (C) 2012-2023 ENCRYPTED SUPPORT LP # Copyright (C) 2023-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only +# vim:syntax=apparmor # Whonix aliases copied here as they conflict with apparmor.d # Note: only installed on Whonix diff --git a/apparmor.d/tunables/multiarch.d/paths b/apparmor.d/tunables/multiarch.d/paths index 45dfea04..02e21be7 100644 --- a/apparmor.d/tunables/multiarch.d/paths +++ b/apparmor.d/tunables/multiarch.d/paths @@ -1,6 +1,7 @@ # apparmor.d - Full set of apparmor profiles # Copyright (C) 2023-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only +# vim:syntax=apparmor # Define some paths for some commonly used programs diff --git a/apparmor.d/tunables/multiarch.d/profiles b/apparmor.d/tunables/multiarch.d/profiles index 5a834811..72d8b715 100644 --- a/apparmor.d/tunables/multiarch.d/profiles +++ b/apparmor.d/tunables/multiarch.d/profiles @@ -1,6 +1,7 @@ # apparmor.d - Full set of apparmor profiles # Copyright (C) 2021-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only +# vim:syntax=apparmor # Define some variables for some commonly used profile. They may be used in # other profiles peer label. diff --git a/apparmor.d/tunables/multiarch.d/programs b/apparmor.d/tunables/multiarch.d/programs index 33feb30e..2d5513e2 100644 --- a/apparmor.d/tunables/multiarch.d/programs +++ b/apparmor.d/tunables/multiarch.d/programs @@ -1,6 +1,7 @@ # apparmor.d - Full set of apparmor profiles # Copyright (C) 2023-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only +# vim:syntax=apparmor # Define some some commonly used programs. This is not an exhaustive list. # It is meant to label programs to easily provide access in profiles. diff --git a/apparmor.d/tunables/multiarch.d/system b/apparmor.d/tunables/multiarch.d/system index 300a46b8..10b35c52 100644 --- a/apparmor.d/tunables/multiarch.d/system +++ b/apparmor.d/tunables/multiarch.d/system @@ -1,6 +1,7 @@ # apparmor.d - Full set of apparmor profiles # Copyright (C) 2021-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only +# vim:syntax=apparmor # To allow extended personalisation without breaking everything. # All apparmor profiles should always use the variables defined here. diff --git a/apparmor.d/tunables/multiarch.d/system-users b/apparmor.d/tunables/multiarch.d/system-users index f39013de..2f90d6c6 100644 --- a/apparmor.d/tunables/multiarch.d/system-users +++ b/apparmor.d/tunables/multiarch.d/system-users @@ -1,6 +1,7 @@ # apparmor.d - Full set of apparmor profiles # Copyright (C) 2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only +# vim:syntax=apparmor # Define some extra paths for some commonly used system user diff --git a/apparmor.d/tunables/xdg-user-dirs.d/apparmor.d b/apparmor.d/tunables/xdg-user-dirs.d/apparmor.d index 2c1fedea..1f0514bd 100644 --- a/apparmor.d/tunables/xdg-user-dirs.d/apparmor.d +++ b/apparmor.d/tunables/xdg-user-dirs.d/apparmor.d @@ -1,6 +1,7 @@ # apparmor.d - Full set of apparmor profiles # Copyright (C) 2021-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only +# vim:syntax=apparmor # To allow extended personalisation by the user without breaking everything. # All apparmor profiles should always use the variables defined here.