summaryrefslogtreecommitdiff
path: root/src/analyze/analyze-syscall-filter.c
Commit message (Collapse)AuthorAgeFilesLines
* analyze: don't claim "@known" was an unlisted syscallLennart Poettering2023-03-241-6/+27
| | | | | | | | | | It's a sycall group of our own definition, and the output is erroneous to claim otherwise. Let's hide it. This adds syscall_set_add() which is nicely symmetric to the existing syscall_set_remove(). Follow-up for: 6d6a08547c03f96dc798cda1ef4a8d3013d292d5
* nulstr-util: Declare NULSTR_FOREACH() iterator inlineDaan De Meyer2022-11-111-5/+0
|
* analyze: allow verbs to return positive failureZbigniew Jędrzejewski-Szmek2022-05-191-1/+1
| | | | | | | | | No functional change is intended. The verbs where it wasn't immediately clear if the success exit status is 0 or >= 0 are changed to explicitly return 0. (I think it's better to be explicit than to rely on some call stack always returning 0 on success.) Some other functions are cleaned up to be more idiomatic.
* strv: make iterator in STRV_FOREACH() declaread in the loopYu Watanabe2022-03-191-6/+1
| | | | This also avoids multiple evaluations in STRV_FOREACH_BACKWARDS()
* analyze: fix build on non-seccomp buildsLennart Poettering2022-02-221-1/+1
| | | | | | Follow-up for #22585 See: https://github.com/systemd/systemd/pull/22585#issuecomment-1047658990
* analyze: systematically name verb entry point functions verb_xyz()Lennart Poettering2022-02-211-1/+1
| | | | | | Some of the functions so far were named do_xyz(), others dump_xyz() and even others test_xyz(). let's instead name them exactly like the verb exposed in the command line, just prefixed with verb_
* analyze: split out "syscall-filter" verbLennart Poettering2022-02-211-0/+191