]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
seccomp: enable RestrictAddressFamilies on ppc (#8505)
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Tue, 20 Mar 2018 15:08:20 +0000 (16:08 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Mar 2018 15:08:20 +0000 (16:08 +0100)
In commit da1921a5c3 ppc64/ppc64el were added as supported architectures for
socketcall() for the POWER family. Extend the support for the 32bits
architectures.

src/shared/seccomp-util.c

index 220658b3ad2acf8ef1c86b4608fd67b820c62193..3691e73b847e65f265dd7e0b011e4a1c04ca7688 100644 (file)
@@ -1182,6 +1182,7 @@ int seccomp_restrict_address_families(Set *address_families, bool whitelist) {
                 case SCMP_ARCH_X32:
                 case SCMP_ARCH_ARM:
                 case SCMP_ARCH_AARCH64:
+                case SCMP_ARCH_PPC:
                 case SCMP_ARCH_PPC64:
                 case SCMP_ARCH_PPC64LE:
                         /* 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) {
 
                 case SCMP_ARCH_S390:
                 case SCMP_ARCH_S390X:
-                case SCMP_ARCH_PPC:
                 case SCMP_ARCH_X86:
                 default:
                         /* These we either know we don't support (i.e. are the ones that do use socketcall()), or we