core: sync SeccompParseFlags between dbus-execute and load-fragment
authorAnita Zhang <the.anitazha@gmail.com>
Thu, 6 Feb 2020 23:34:17 +0000 (15:34 -0800)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 7 Feb 2020 04:39:35 +0000 (13:39 +0900)
commit72545ae05745f99e194eb83e3fa865f276601378
treeb1904cbbcaea23dcd5477f55dfa7add1998bd386
parent6e55b9b75839d257bfb430dac9900db18c956f0a
core: sync SeccompParseFlags between dbus-execute and load-fragment

9e486265716963439fb0fd7f2a97abf109f24f75 added some new syscalls to the
filter lists. However, on systems that do not yet support the new calls,
running systemd-run with the filter set results in error:

```
$ sudo systemd-run -t -r -p "SystemCallFilter=~@mount" /bin/true
Failed to start transient service unit: Invalid argument
```

Having the same properties in a unit file will start the service
without issue. This is because the load-fragment code will parse the
syscall filters in permissive mode:
https://github.com/systemd/systemd/blob/master/src/core/load-fragment.c#L2909
whereas the dbus-execute equivalent of the code does not.

Since the permissive mode appears to be the right setting to support
older kernels/libseccomp, this will update the dbus-execute parsing
to also be permissive.
src/core/dbus-execute.c