From c7c4f57d13b0e5720ee672a1761663d739d0bffa Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Wed, 25 Jan 2023 01:37:40 -0300 Subject: build: auto-generate syntax lists Changes: * Use the commands from contrib/vim/syntax/firejail.vim to create makefile targets to generate syntax lists in contrib/syntax/lists * Add contrib/syntax/files/example.in as an example of how to generate syntax files * Generate and add the syntax lists, to make it easier to spot if they are properly updated when a new command is added or if their recipes also need changes * Add "syntax" and "contrib" makefile targets Note: The generation commands are executed mostly silently to avoid generating too much noise when also making other targets. Note2: In some generation commands, a `$$` escape is used to pass `$` to the shell, to avoid being interpreted by make as the start of a macro. Note3: `@make_input@` is used in example.in to make it clear that the file is generated (and that it is generated by make rather than configure), similarly to how `@configure_input@` is used in configure input files. See also apparmor.vim: $ head -n 2 /usr/share/vim/vimfiles/syntax/apparmor.vim " generated from apparmor.vim.in by create-apparmor.vim.py " do not edit this file - edit apparmor.vim.in or create-apparmor.vim.py instead Environment: apparmor 3.1.2-1 on Artix Linux. Relates to #2679 #5502 #5577 #5612. --- contrib/syntax/lists/profile_commands_arg0.list | 50 +++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 contrib/syntax/lists/profile_commands_arg0.list (limited to 'contrib/syntax/lists/profile_commands_arg0.list') diff --git a/contrib/syntax/lists/profile_commands_arg0.list b/contrib/syntax/lists/profile_commands_arg0.list new file mode 100644 index 000000000..a402671a6 --- /dev/null +++ b/contrib/syntax/lists/profile_commands_arg0.list @@ -0,0 +1,50 @@ +allow-debuggers +allusers +apparmor +apparmor-replace +apparmor-stack +caps +deterministic-exit-code +deterministic-shutdown +disable-mnt +ipc-namespace +keep-config-pulse +keep-dev-shm +keep-var-tmp +machine-id +memory-deny-write-execute +netfilter +netlock +no3d +noautopulse +nodbus +nodvd +nogroups +noinput +nonewprivs +noprinters +noroot +nosound +notv +nou2f +novideo +overlay +overlay-tmpfs +private +private-cache +private-cwd +private-dev +private-etc +private-lib +private-tmp +quiet +restrict-namespaces +seccomp +seccomp\.block-secondary +tab +tracelog +writable-etc +writable-run-user +writable-var +writable-var-log +x11 -- cgit v1.2.3-54-g00ecf