feat(groups/{c,d,f,s}*): vim syntax support

Add vim modeline instructing the editor to use syntax plugin provided by apparmor.
Continuation of #392 to keep the diff list relatively short.
This commit is contained in:
REmerald 2024-06-16 17:16:07 +03:00 committed by Alex
parent db82b64051
commit 4d707633a1
199 changed files with 449 additions and 51 deletions

View file

@ -50,3 +50,5 @@ profile child-dpkg {
include if exists <local/child-dpkg> include if exists <local/child-dpkg>
} }
# vim:syntax=apparmor

View file

@ -31,3 +31,5 @@ profile child-dpkg-divert {
include if exists <local/child-dpkg-divert> include if exists <local/child-dpkg-divert>
} }
# vim:syntax=apparmor

View file

@ -79,3 +79,5 @@ profile child-modprobe-nvidia flags=(attach_disconnected) {
include if exists <local/child-modprobe-nvidia> include if exists <local/child-modprobe-nvidia>
} }
# vim:syntax=apparmor

View file

@ -27,3 +27,5 @@ profile child-open {
include if exists <usr/child-open.d> include if exists <usr/child-open.d>
include if exists <local/child-open> include if exists <local/child-open>
} }
# vim:syntax=apparmor

View file

@ -24,3 +24,5 @@ profile child-open-browsers {
include if exists <usr/child-open-browsers.d> include if exists <usr/child-open-browsers.d>
include if exists <local/child-open-browsers> include if exists <local/child-open-browsers>
} }
# vim:syntax=apparmor

View file

@ -16,3 +16,5 @@ profile child-open-help {
include if exists <usr/child-open-help.d> include if exists <usr/child-open-help.d>
include if exists <local/child-open-help> include if exists <local/child-open-help>
} }
# vim:syntax=apparmor

View file

@ -21,3 +21,5 @@ profile child-open-strict {
include if exists <usr/child-open-strict.d> include if exists <usr/child-open-strict.d>
include if exists <local/child-open-strict> include if exists <local/child-open-strict>
} }
# vim:syntax=apparmor

View file

@ -37,3 +37,5 @@ profile child-pager {
include if exists <local/child-pager> include if exists <local/child-pager>
} }
# vim:syntax=apparmor

View file

@ -48,3 +48,5 @@ profile child-systemctl flags=(attach_disconnected) {
include if exists <local/child-systemctl> include if exists <local/child-systemctl>
} }
# vim:syntax=apparmor

View file

@ -27,3 +27,5 @@ profile user_confined flags=(complain) {
include if exists <local/user_confined> include if exists <local/user_confined>
} }
# vim:syntax=apparmor

View file

@ -27,4 +27,6 @@ profile user_default flags=(complain) {
@{PROC}/** r, @{PROC}/** r,
include if exists <local/user_default> include if exists <local/user_default>
} }
# vim:syntax=apparmor

View file

@ -22,3 +22,5 @@ profile user_unconfined flags=(attach_disconnected,mediate_deleted) {
include if exists <local/user_unconfined> include if exists <local/user_unconfined>
} }
# vim:syntax=apparmor

View file

@ -78,3 +78,5 @@ profile cron @{exec_path} flags=(attach_disconnected) {
include if exists <local/cron> include if exists <local/cron>
} }
# vim:syntax=apparmor

View file

@ -22,3 +22,5 @@ profile cron-anacron @{exec_path} {
include if exists <local/cron-anacron> include if exists <local/cron-anacron>
} }
# vim:syntax=apparmor

View file

@ -22,3 +22,5 @@ profile cron-apport @{exec_path} {
include if exists <local/cron-apport> include if exists <local/cron-apport>
} }
# vim:syntax=apparmor

View file

@ -88,3 +88,5 @@ profile cron-apt @{exec_path} {
include if exists <local/cron-apt> include if exists <local/cron-apt>
} }
# vim:syntax=apparmor

View file

@ -27,3 +27,5 @@ profile cron-apt-compat @{exec_path} {
include if exists <local/cron-apt-compat> include if exists <local/cron-apt-compat>
} }
# vim:syntax=apparmor

View file

@ -37,3 +37,5 @@ profile cron-apt-listbugs @{exec_path} {
include if exists <local/cron-apt-listbugs> include if exists <local/cron-apt-listbugs>
} }
# vim:syntax=apparmor

View file

@ -21,3 +21,5 @@ profile cron-apt-show-versions @{exec_path} {
include if exists <local/cron-apt-show-versions> include if exists <local/cron-apt-show-versions>
} }
# vim:syntax=apparmor

View file

@ -29,3 +29,5 @@ profile cron-apt-xapian-index @{exec_path} {
include if exists <local/cron-apt-xapian-index> include if exists <local/cron-apt-xapian-index>
} }
# vim:syntax=apparmor

View file

@ -34,3 +34,5 @@ profile cron-aptitude @{exec_path} {
include if exists <local/cron-aptitude> include if exists <local/cron-aptitude>
} }
# vim:syntax=apparmor

View file

@ -21,3 +21,5 @@ profile cron-cracklib @{exec_path} {
include if exists <local/cron-cracklib> include if exists <local/cron-cracklib>
} }
# vim:syntax=apparmor

View file

@ -47,3 +47,5 @@ profile cron-debsums @{exec_path} {
include if exists <local/cron-debsums> include if exists <local/cron-debsums>
} }
# vim:syntax=apparmor

View file

@ -18,3 +18,5 @@ profile cron-debtags @{exec_path} {
include if exists <local/cron-debtags> include if exists <local/cron-debtags>
} }
# vim:syntax=apparmor

View file

@ -18,3 +18,5 @@ profile cron-dlocate @{exec_path} {
include if exists <local/cron-dlocate> include if exists <local/cron-dlocate>
} }
# vim:syntax=apparmor

View file

@ -25,3 +25,5 @@ profile cron-etckeeper @{exec_path} {
include if exists <local/cron-etckeeper> include if exists <local/cron-etckeeper>
} }
# vim:syntax=apparmor

View file

@ -55,3 +55,5 @@ profile cron-exim4-base @{exec_path} {
include if exists <local/cron-exim4-base> include if exists <local/cron-exim4-base>
} }
# vim:syntax=apparmor

View file

@ -21,3 +21,5 @@ profile cron-ipset-autoban-save @{exec_path} {
include if exists <local/cron-ipset-autoban-save> include if exists <local/cron-ipset-autoban-save>
} }
# vim:syntax=apparmor

View file

@ -23,3 +23,5 @@ profile cron-logrotate @{exec_path} {
include if exists <local/cron-logrotate> include if exists <local/cron-logrotate>
} }
# vim:syntax=apparmor

View file

@ -36,3 +36,5 @@ profile cron-man-db @{exec_path} {
include if exists <local/cron-man-db> include if exists <local/cron-man-db>
} }
# vim:syntax=apparmor

View file

@ -29,3 +29,5 @@ profile cron-mlocate @{exec_path} {
include if exists <local/cron-mlocate> include if exists <local/cron-mlocate>
} }
# vim:syntax=apparmor

View file

@ -19,3 +19,5 @@ profile cron-ntp @{exec_path} {
include if exists <local/cron-ntp> include if exists <local/cron-ntp>
} }
# vim:syntax=apparmor

View file

@ -29,3 +29,5 @@ profile cron-plocate @{exec_path} {
include if exists <local/cron-plocate> include if exists <local/cron-plocate>
} }
# vim:syntax=apparmor

View file

@ -157,3 +157,5 @@ profile cron-popularity-contest @{exec_path} {
include if exists <local/cron-popularity-contest> include if exists <local/cron-popularity-contest>
} }
# vim:syntax=apparmor

View file

@ -20,3 +20,5 @@ profile cron-sysstat @{exec_path} {
include if exists <local/cron-sysstat> include if exists <local/cron-sysstat>
} }
# vim:syntax=apparmor

View file

@ -49,3 +49,5 @@ profile crontab @{exec_path} {
include if exists <local/crontab> include if exists <local/crontab>
} }
# vim:syntax=apparmor

View file

@ -86,3 +86,5 @@ profile lightdm @{exec_path} flags=(attach_disconnected) {
include if exists <local/lightdm> include if exists <local/lightdm>
} }
# vim:syntax=apparmor

View file

@ -53,3 +53,5 @@ profile lightdm-gtk-greeter @{exec_path} {
include if exists <local/lightdm-gtk-greeter> include if exists <local/lightdm-gtk-greeter>
} }
# vim:syntax=apparmor

View file

@ -49,4 +49,6 @@ profile lightdm-xsession @{exec_path} {
} }
include if exists <local/lightdm-xsession> include if exists <local/lightdm-xsession>
} }
# vim:syntax=apparmor

View file

@ -146,3 +146,5 @@ profile x11-xsession @{exec_path} {
include if exists <local/x11-xsession> include if exists <local/x11-xsession>
} }
# vim:syntax=apparmor

View file

@ -106,3 +106,5 @@ profile xdm-xsession @{exec_path} {
include if exists <local/xdm-xsession> include if exists <local/xdm-xsession>
} }
# vim:syntax=apparmor

View file

@ -79,3 +79,5 @@ profile accounts-daemon @{exec_path} flags=(attach_disconnected) {
include if exists <local/accounts-daemon> include if exists <local/accounts-daemon>
} }
# vim:syntax=apparmor

View file

@ -77,3 +77,5 @@ profile colord @{exec_path} flags=(attach_disconnected) {
include if exists <local/colord> include if exists <local/colord>
} }
# vim:syntax=apparmor

View file

@ -18,3 +18,5 @@ profile colord-session @{exec_path} {
include if exists <local/colord-session> include if exists <local/colord-session>
} }
# vim:syntax=apparmor

View file

@ -56,3 +56,5 @@ profile cpupower @{exec_path} {
include if exists <local/cpupower> include if exists <local/cpupower>
} }
# vim:syntax=apparmor

View file

@ -29,3 +29,5 @@ profile dconf @{exec_path} flags=(attach_disconnected) {
include if exists <local/dconf> include if exists <local/dconf>
} }
# vim:syntax=apparmor

View file

@ -26,3 +26,5 @@ profile dconf-editor @{exec_path} {
include if exists <local/dconf-editor> include if exists <local/dconf-editor>
} }
# vim:syntax=apparmor

View file

@ -42,3 +42,5 @@ profile dconf-service @{exec_path} flags=(attach_disconnected) {
include if exists <local/dconf-service> include if exists <local/dconf-service>
} }
# vim:syntax=apparmor

View file

@ -13,4 +13,6 @@ profile desktop-file-install @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
include if exists <local/desktop-file-install> include if exists <local/desktop-file-install>
} }
# vim:syntax=apparmor

View file

@ -32,3 +32,5 @@ profile fc-cache @{exec_path} {
include if exists <local/fc-cache> include if exists <local/fc-cache>
} }
# vim:syntax=apparmor

View file

@ -19,3 +19,5 @@ profile fc-list @{exec_path} {
include if exists <local/fc-list> include if exists <local/fc-list>
} }
# vim:syntax=apparmor

View file

@ -48,3 +48,5 @@ profile geoclue @{exec_path} flags=(attach_disconnected) {
include if exists <local/geoclue> include if exists <local/geoclue>
} }
# vim:syntax=apparmor

View file

@ -36,4 +36,6 @@ profile iio-sensor-proxy @{exec_path} {
/dev/iio:* r, /dev/iio:* r,
include if exists <local/iio-sensor-proxy> include if exists <local/iio-sensor-proxy>
} }
# vim:syntax=apparmor

View file

@ -74,3 +74,5 @@ profile pipewire @{exec_path} flags=(attach_disconnected) {
include if exists <local/pipewire> include if exists <local/pipewire>
} }
# vim:syntax=apparmor

View file

@ -68,3 +68,5 @@ profile pipewire-media-session @{exec_path} {
include if exists <local/pipewire-media-session> include if exists <local/pipewire-media-session>
} }
# vim:syntax=apparmor

View file

@ -41,3 +41,5 @@ profile pipewire-pulse @{exec_path} flags=(attach_disconnected) {
include if exists <local/pipewire-pulse> include if exists <local/pipewire-pulse>
} }
# vim:syntax=apparmor

View file

@ -20,4 +20,6 @@ profile plymouth @{exec_path} {
@{PROC}/cmdline r, @{PROC}/cmdline r,
include if exists <local/plymouth> include if exists <local/plymouth>
} }
# vim:syntax=apparmor

View file

@ -26,3 +26,5 @@ profile plymouth-set-default-theme @{exec_path} flags=(attach_disconnected) {
include if exists <local/plymouth-set-default-theme> include if exists <local/plymouth-set-default-theme>
} }
# vim:syntax=apparmor

View file

@ -71,3 +71,5 @@ profile plymouthd @{exec_path} {
include if exists <local/plymouthd> include if exists <local/plymouthd>
} }
# vim:syntax=apparmor

View file

@ -54,3 +54,5 @@ profile polkit-agent-helper @{exec_path} {
include if exists <local/polkit-agent-helper> include if exists <local/polkit-agent-helper>
} }
# vim:syntax=apparmor

View file

@ -21,3 +21,5 @@ profile polkit-gnome-authentication-agent @{exec_path} {
include if exists <local/polkit-gnome-authentication-agent> include if exists <local/polkit-gnome-authentication-agent>
} }
# vim:syntax=apparmor

View file

@ -56,3 +56,5 @@ profile polkit-kde-authentication-agent @{exec_path} flags=(attach_disconnected,
include if exists <local/polkit-kde-authentication-agent> include if exists <local/polkit-kde-authentication-agent>
} }
# vim:syntax=apparmor

View file

@ -41,3 +41,5 @@ profile polkit-mate-authentication-agent @{exec_path} {
include if exists <local/polkit-mate-authentication-agent> include if exists <local/polkit-mate-authentication-agent>
} }
# vim:syntax=apparmor

View file

@ -72,3 +72,5 @@ profile polkitd @{exec_path} flags=(attach_disconnected) {
include if exists <local/polkitd> include if exists <local/polkitd>
} }
# vim:syntax=apparmor

View file

@ -118,3 +118,5 @@ profile pulseaudio @{exec_path} {
include if exists <local/pulseaudio> include if exists <local/pulseaudio>
} }
# vim:syntax=apparmor

View file

@ -40,3 +40,5 @@ profile update-desktop-database @{exec_path} flags=(attach_disconnected) {
include if exists <local/update-desktop-database> include if exists <local/update-desktop-database>
} }
# vim:syntax=apparmor

View file

@ -32,3 +32,5 @@ profile update-mime-database @{exec_path} flags=(attach_disconnected) {
include if exists <local/update-mime-database> include if exists <local/update-mime-database>
} }
# vim:syntax=apparmor

View file

@ -18,3 +18,5 @@ profile upower @{exec_path} {
include if exists <local/upower> include if exists <local/upower>
} }
# vim:syntax=apparmor

View file

@ -60,3 +60,5 @@ profile upowerd @{exec_path} flags=(attach_disconnected) {
include if exists <local/upowerd> include if exists <local/upowerd>
} }
# vim:syntax=apparmor

View file

@ -42,3 +42,5 @@ profile xdg-dbus-proxy @{exec_path} flags=(attach_disconnected) {
include if exists <local/xdg-dbus-proxy> include if exists <local/xdg-dbus-proxy>
} }
# vim:syntax=apparmor

View file

@ -13,4 +13,6 @@ profile xdg-desktop-icon @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
include if exists <local/xdg-desktop-icon> include if exists <local/xdg-desktop-icon>
} }
# vim:syntax=apparmor

View file

@ -44,3 +44,5 @@ profile xdg-desktop-menu @{exec_path} flags=(complain) {
include if exists <local/xdg-desktop-menu> include if exists <local/xdg-desktop-menu>
} }
# vim:syntax=apparmor

View file

@ -100,3 +100,5 @@ profile xdg-desktop-portal @{exec_path} flags=(attach_disconnected) {
include if exists <local/xdg-desktop-portal> include if exists <local/xdg-desktop-portal>
} }
# vim:syntax=apparmor

View file

@ -88,3 +88,5 @@ profile xdg-desktop-portal-gnome @{exec_path} flags=(attach_disconnected) {
include if exists <local/xdg-desktop-portal-gnome> include if exists <local/xdg-desktop-portal-gnome>
} }
# vim:syntax=apparmor

View file

@ -65,3 +65,5 @@ profile xdg-desktop-portal-gtk @{exec_path} {
include if exists <local/xdg-desktop-portal-gtk> include if exists <local/xdg-desktop-portal-gtk>
} }
# vim:syntax=apparmor

View file

@ -42,3 +42,5 @@ profile xdg-desktop-portal-kde @{exec_path} {
include if exists <local/xdg-desktop-portal-kde> include if exists <local/xdg-desktop-portal-kde>
} }
# vim:syntax=apparmor

View file

@ -15,4 +15,6 @@ profile xdg-desktop-portal-rewrite-launchers @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
include if exists <local/xdg-desktop-portal-rewrite-launchers> include if exists <local/xdg-desktop-portal-rewrite-launchers>
} }
# vim:syntax=apparmor

View file

@ -88,3 +88,5 @@ profile xdg-document-portal @{exec_path} flags=(attach_disconnected) {
include if exists <local/xdg-document-portal> include if exists <local/xdg-document-portal>
} }
# vim:syntax=apparmor

View file

@ -32,3 +32,5 @@ profile xdg-email @{exec_path} flags=(complain) {
include if exists <local/xdg-email> include if exists <local/xdg-email>
} }
# vim:syntax=apparmor

View file

@ -43,3 +43,5 @@ profile xdg-icon-resource @{exec_path} flags=(attach_disconnected) {
include if exists <local/xdg-icon-resource> include if exists <local/xdg-icon-resource>
} }
# vim:syntax=apparmor

View file

@ -77,3 +77,5 @@ profile xdg-mime @{exec_path} flags=(attach_disconnected) {
include if exists <local/xdg-mime> include if exists <local/xdg-mime>
} }
# vim:syntax=apparmor

View file

@ -59,3 +59,5 @@ profile xdg-open @{exec_path} flags=(attach_disconnected) {
include if exists <local/xdg-open> include if exists <local/xdg-open>
} }
# vim:syntax=apparmor

View file

@ -49,3 +49,5 @@ profile xdg-permission-store @{exec_path} flags=(attach_disconnected) {
include if exists <local/xdg-permission-store> include if exists <local/xdg-permission-store>
} }
# vim:syntax=apparmor

View file

@ -42,3 +42,5 @@ profile xdg-screensaver @{exec_path} {
include if exists <local/xdg-screensaver> include if exists <local/xdg-screensaver>
} }
# vim:syntax=apparmor

View file

@ -66,3 +66,5 @@ profile xdg-settings @{exec_path} {
include if exists <local/xdg-settings> include if exists <local/xdg-settings>
} }
# vim:syntax=apparmor

View file

@ -25,4 +25,6 @@ profile xdg-user-dir @{exec_path} flags=(attach_disconnected) {
deny @{user_share_dirs}/gvfs-metadata/* r, deny @{user_share_dirs}/gvfs-metadata/* r,
include if exists <local/xdg-user-dir> include if exists <local/xdg-user-dir>
} }
# vim:syntax=apparmor

View file

@ -18,4 +18,6 @@ profile xdg-user-dirs-gtk-update @{exec_path} {
owner @{user_config_dirs}/user-dirs.locale r, owner @{user_config_dirs}/user-dirs.locale r,
include if exists <local/xdg-user-dirs-gtk-update> include if exists <local/xdg-user-dirs-gtk-update>
} }
# vim:syntax=apparmor

View file

@ -43,3 +43,5 @@ profile xdg-user-dirs-update @{exec_path} {
include if exists <local/xdg-user-dirs-update> include if exists <local/xdg-user-dirs-update>
} }
# vim:syntax=apparmor

View file

@ -22,3 +22,5 @@ profile xhost @{exec_path} {
include if exists <local/xhost> include if exists <local/xhost>
} }
# vim:syntax=apparmor

View file

@ -43,3 +43,5 @@ profile xkbcomp @{exec_path} flags=(attach_disconnected) {
include if exists <local/xkbcomp> include if exists <local/xkbcomp>
} }
# vim:syntax=apparmor

View file

@ -134,3 +134,5 @@ profile xorg @{exec_path} flags=(attach_disconnected) {
include if exists <local/xorg> include if exists <local/xorg>
} }
# vim:syntax=apparmor

View file

@ -17,3 +17,5 @@ profile xprop @{exec_path} flags=(attach_disconnected) {
include if exists <local/xprop> include if exists <local/xprop>
} }
# vim:syntax=apparmor

View file

@ -18,3 +18,5 @@ profile xrandr @{exec_path} {
include if exists <local/xrandr> include if exists <local/xrandr>
} }
# vim:syntax=apparmor

View file

@ -57,3 +57,5 @@ profile xrdb @{exec_path} {
include if exists <local/xrdb> include if exists <local/xrdb>
} }
# vim:syntax=apparmor

View file

@ -28,3 +28,5 @@ profile xset @{exec_path} {
include if exists <local/xset> include if exists <local/xset>
} }
# vim:syntax=apparmor

View file

@ -33,3 +33,5 @@ profile xsetroot @{exec_path} {
include if exists <local/xsetroot> include if exists <local/xsetroot>
} }
# vim:syntax=apparmor

View file

@ -38,3 +38,5 @@ profile xwayland @{exec_path} flags=(attach_disconnected) {
include if exists <local/xwayland> include if exists <local/xwayland>
} }
# vim:syntax=apparmor

View file

@ -23,3 +23,5 @@ profile sftp-server @{exec_path} {
include if exists <local/sftp-server> include if exists <local/sftp-server>
} }
# vim:syntax=apparmor

View file

@ -51,3 +51,5 @@ profile ssh @{exec_path} {
include if exists <local/ssh> include if exists <local/ssh>
} }
# vim:syntax=apparmor

View file

@ -37,3 +37,5 @@ profile ssh-agent @{exec_path} {
include if exists <local/ssh-agent> include if exists <local/ssh-agent>
} }
# vim:syntax=apparmor

Some files were not shown because too many files have changed in this diff Show more