shared/seccomp-util: address family filtering is broken on ppc

This reverts the gist of da1921a5c396547261c8c7fcd94173346eb3b718 and
0d9fca76bb69e162265b2d25cb79f1890c0da31b (for ppc).

Quoting #17559:
> libseccomp 2.5 added socket syscall multiplexing on ppc64(el):
> https://github.com/seccomp/libseccomp/pull/229
>
> Like with i386, s390 and s390x this breaks socket argument filtering, so
> RestrictAddressFamilies doesn't work.
>
> This causes the unit test to fail:
> /* test_restrict_address_families */
> Operating on architecture: ppc
> Failed to install socket family rules for architecture ppc, skipping: Operation canceled
> Operating on architecture: ppc64
> Failed to add socket() rule for architecture ppc64, skipping: Invalid argument
> Operating on architecture: ppc64-le
> Failed to add socket() rule for architecture ppc64-le, skipping: Invalid argument
> Assertion 'fd < 0' failed at src/test/test-seccomp.c:424, function test_restrict_address_families(). Aborting.
>
> The socket filters can't be added so `socket(AF_UNIX, SOCK_DGRAM, 0);` still
> works, triggering the assertion.

Fixes #17559.
2 files changed
tree: d5684a99e1c864a3be98348dd3615902fc1a9a66
  1. .github/
  2. .lgtm/
  3. .mkosi/
  4. catalog/
  5. coccinelle/
  6. docs/
  7. factory/
  8. hwdb.d/
  9. man/
  10. modprobe.d/
  11. network/
  12. po/
  13. presets/
  14. rules.d/
  15. semaphoreci/
  16. shell-completion/
  17. src/
  18. sysctl.d/
  19. sysusers.d/
  20. test/
  21. tmpfiles.d/
  22. tools/
  23. travis-ci/
  24. units/
  25. xorg/
  26. .clang-format
  27. .ctags
  28. .dir-locals.el
  29. .editorconfig
  30. .gitattributes
  31. .gitignore
  32. .lgtm.yml
  33. .mailmap
  34. .travis.yml
  35. .vimrc
  36. .ycm_extra_conf.py
  37. azure-pipelines.yml
  38. configure
  39. LICENSE.GPL2
  40. LICENSE.LGPL2.1
  41. Makefile
  42. meson.build
  43. meson_options.txt
  44. mkosi.build
  45. NEWS
  46. README
  47. README.md
  48. TODO
  49. zanata.xml
README.md

Systemd

System and Service Manager

Semaphore CI Build Status
Coverity Scan Status
OSS-Fuzz Status
CIFuzz
CII Best Practices
Travis CI Build Status
Language Grade: C/C++
CentOS CI - CentOS 7
CentOS CI - Arch
CentOS CI - Arch (sanitizers)
Build Status
Fossies codespell report Packaging status

Details

Most documentation is available on systemd's web site.

Assorted, older, general information about systemd can be found in the systemd Wiki.

Information about build requirements is provided in the README file.

Consult our NEWS file for information about what's new in the most recent systemd versions.

Please see the Hacking guide for information on how to hack on systemd and test your modifications.

Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.

When preparing patches for systemd, please follow our Coding Style Guidelines.

If you are looking for support, please contact our mailing list or join our IRC channel.

Stable branches with backported patches are available in the stable repo.