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/profile_commands_arg1.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/profile_commands_arg1.list')
-rw-r--r-- | contrib/syntax/lists/profile_commands_arg1.list | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/contrib/syntax/lists/profile_commands_arg1.list b/contrib/syntax/lists/profile_commands_arg1.list new file mode 100644 index 000000000..c703f2257 --- /dev/null +++ b/contrib/syntax/lists/profile_commands_arg1.list | |||
@@ -0,0 +1,76 @@ | |||
1 | apparmor | ||
2 | bind | ||
3 | blacklist | ||
4 | blacklist-nolog | ||
5 | caps.drop | ||
6 | caps.keep | ||
7 | cpu | ||
8 | dbus-system.broadcast | ||
9 | dbus-system.call | ||
10 | dbus-system.own | ||
11 | dbus-system.see | ||
12 | dbus-system.talk | ||
13 | dbus-user.broadcast | ||
14 | dbus-user.call | ||
15 | dbus-user.own | ||
16 | dbus-user.see | ||
17 | dbus-user.talk | ||
18 | defaultgw | ||
19 | dns | ||
20 | env | ||
21 | hostname | ||
22 | hosts-file | ||
23 | ignore | ||
24 | include | ||
25 | ip | ||
26 | ip6 | ||
27 | iprange | ||
28 | join-or-start | ||
29 | keep-fd | ||
30 | mac | ||
31 | mkdir | ||
32 | mkfile | ||
33 | mtu | ||
34 | name | ||
35 | net | ||
36 | netfilter | ||
37 | netfilter6 | ||
38 | netmask | ||
39 | netns | ||
40 | nice | ||
41 | noblacklist | ||
42 | noexec | ||
43 | nowhitelist | ||
44 | overlay-named | ||
45 | private | ||
46 | private-bin | ||
47 | private-cwd | ||
48 | private-etc | ||
49 | private-home | ||
50 | private-lib | ||
51 | private-opt | ||
52 | private-srv | ||
53 | protocol | ||
54 | read-only | ||
55 | read-write | ||
56 | restrict-namespaces | ||
57 | rlimit-as | ||
58 | rlimit-cpu | ||
59 | rlimit-fsize | ||
60 | rlimit-nofile | ||
61 | rlimit-nproc | ||
62 | rlimit-sigpending | ||
63 | rmenv | ||
64 | seccomp | ||
65 | seccomp-error-action | ||
66 | seccomp.32 | ||
67 | seccomp.32.drop | ||
68 | seccomp.32.keep | ||
69 | seccomp.drop | ||
70 | seccomp.keep | ||
71 | timeout | ||
72 | tmpfs | ||
73 | veth-name | ||
74 | whitelist | ||
75 | whitelist-ro | ||
76 | xephyr-screen | ||