diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-01-25 01:37:40 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-01-27 23:58:30 -0300 |
commit | c7c4f57d13b0e5720ee672a1761663d739d0bffa (patch) | |
tree | 11d8692f19391c2df62a573531f2e6b2d859dab6 /contrib/syntax/lists/syscall_groups.list | |
parent | build: move syntax files to contrib/syntax/files (diff) | |
download | firejail-c7c4f57d13b0e5720ee672a1761663d739d0bffa.tar.gz firejail-c7c4f57d13b0e5720ee672a1761663d739d0bffa.tar.zst firejail-c7c4f57d13b0e5720ee672a1761663d739d0bffa.zip |
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.
Diffstat (limited to 'contrib/syntax/lists/syscall_groups.list')
-rw-r--r-- | contrib/syntax/lists/syscall_groups.list | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/contrib/syntax/lists/syscall_groups.list b/contrib/syntax/lists/syscall_groups.list new file mode 100644 index 000000000..fb42ae5f7 --- /dev/null +++ b/contrib/syntax/lists/syscall_groups.list | |||
@@ -0,0 +1,29 @@ | |||
1 | aio | ||
2 | basic-io | ||
3 | chown | ||
4 | clock | ||
5 | cpu-emulation | ||
6 | debug | ||
7 | default | ||
8 | default-keep | ||
9 | default-nodebuggers | ||
10 | file-system | ||
11 | io-event | ||
12 | ipc | ||
13 | keyring | ||
14 | memlock | ||
15 | module | ||
16 | mount | ||
17 | network-io | ||
18 | obsolete | ||
19 | privileged | ||
20 | process | ||
21 | raw-io | ||
22 | reboot | ||
23 | resources | ||
24 | setuid | ||
25 | signal | ||
26 | swap | ||
27 | sync | ||
28 | system-service | ||
29 | timer | ||