From cca40c66bf2f9732398ae9320dac13ec8f2e69bf Mon Sep 17 00:00:00 2001
From: ben clark <benclark006@outlook.com>
Date: Sat, 9 May 2020 15:54:55 +0100
Subject: [PATCH] main/linux-postmarketos-qcom-msm8974: enable CONFIG_SECCOMP
 (!1218)

fixes an "Invalid argument" when running a flatpak
---
 main/linux-postmarketos-qcom-msm8974/APKBUILD                 | 4 ++--
 .../config-postmarketos-qcom-msm8974.armv7                    | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/main/linux-postmarketos-qcom-msm8974/APKBUILD b/main/linux-postmarketos-qcom-msm8974/APKBUILD
index dabd6ba357f..b8b3c9cb00a 100644
--- a/main/linux-postmarketos-qcom-msm8974/APKBUILD
+++ b/main/linux-postmarketos-qcom-msm8974/APKBUILD
@@ -4,7 +4,7 @@ _config="config-$_flavor.$CARCH"
 pkgname=linux-$_flavor
 
 pkgver=5.6.0_rc6
-pkgrel=2
+pkgrel=3
 
 arch="armv7"
 pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8974 devices"
@@ -158,4 +158,4 @@ dev() {
 }
 
 sha512sums="92866a037fd1bd3b17572754548c19423f6e762d90fb1ebca52c252ace85c87b6f747515f8606fe627d34c59828cbebf83054b9d6e5dd977e0398d9c46fcc176  linux-postmarketos-b9f39bdf61e5c8f5db63afe7ab1c9ff77aa6b4bc.tar.gz
-1b0d879dfa603bfc5775e75442b7d5374ee34445c71abf0ebbdbb6af6f31a0709e59ae1f6a723fd7af79086c88588a62b4d10bd2320fd5b767fd235b9d815e6d  config-postmarketos-qcom-msm8974.armv7"
+a4e98e627d41d7aeb802ebff4e7a1ce34e52fc5a05a2c736d65deacffbc30823c96cb7f3880d5357b7e3c51b08cfa6f1e3e73801d1f0ac273004cae155381fa1  config-postmarketos-qcom-msm8974.armv7"
diff --git a/main/linux-postmarketos-qcom-msm8974/config-postmarketos-qcom-msm8974.armv7 b/main/linux-postmarketos-qcom-msm8974/config-postmarketos-qcom-msm8974.armv7
index f16108f2d62..0168b3f69c6 100644
--- a/main/linux-postmarketos-qcom-msm8974/config-postmarketos-qcom-msm8974.armv7
+++ b/main/linux-postmarketos-qcom-msm8974/config-postmarketos-qcom-msm8974.armv7
@@ -443,7 +443,7 @@ CONFIG_ARM_MODULE_PLTS=y
 CONFIG_FORCE_MAX_ZONEORDER=11
 CONFIG_ALIGNMENT_TRAP=y
 # CONFIG_UACCESS_WITH_MEMCPY is not set
-# CONFIG_SECCOMP is not set
+CONFIG_SECCOMP=y
 # CONFIG_PARAVIRT is not set
 # CONFIG_PARAVIRT_TIME_ACCOUNTING is not set
 # CONFIG_XEN is not set
@@ -614,6 +614,7 @@ CONFIG_HAVE_PERF_USER_STACK_DUMP=y
 CONFIG_HAVE_ARCH_JUMP_LABEL=y
 CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
 CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
+CONFIG_SECCOMP_FILTER=y
 CONFIG_HAVE_STACKPROTECTOR=y
 CONFIG_CC_HAS_STACKPROTECTOR_NONE=y
 CONFIG_STACKPROTECTOR=y
-- 
GitLab