Skip to content

Commit 0d9fca7

Browse files
malaterrepoettering
authored andcommitted
seccomp: enable RestrictAddressFamilies on ppc (#8505)
In commit da1921a ppc64/ppc64el were added as supported architectures for socketcall() for the POWER family. Extend the support for the 32bits architectures.
1 parent ed358db commit 0d9fca7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/shared/seccomp-util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,7 @@ int seccomp_restrict_address_families(Set *address_families, bool whitelist) {
11821182
case SCMP_ARCH_X32:
11831183
case SCMP_ARCH_ARM:
11841184
case SCMP_ARCH_AARCH64:
1185+
case SCMP_ARCH_PPC:
11851186
case SCMP_ARCH_PPC64:
11861187
case SCMP_ARCH_PPC64LE:
11871188
/* These we know we support (i.e. are the ones that do not use socketcall()) */
@@ -1190,7 +1191,6 @@ int seccomp_restrict_address_families(Set *address_families, bool whitelist) {
11901191

11911192
case SCMP_ARCH_S390:
11921193
case SCMP_ARCH_S390X:
1193-
case SCMP_ARCH_PPC:
11941194
case SCMP_ARCH_X86:
11951195
default:
11961196
/* These we either know we don't support (i.e. are the ones that do use socketcall()), or we

0 commit comments

Comments
 (0)