Skip to content

RestrictAddressFamilies fails on ppc64 with libseccomp 2.5 #17559

@debfx

Description

@debfx

libseccomp 2.5 added socket syscall multiplexing on ppc64(el): seccomp/libseccomp#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.

It seems like da1921a (the parts that re-enable ppc64) needs to be reverted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Programming errors, that need preferential fixingseccomp

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions