Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 1 | From 54ea2cabf85ad1bd5695cdbd1935115c9495e80c Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> |
| 3 | Date: Sun, 1 Dec 2019 17:06:59 +0100 |
| 4 | Subject: [PATCH] meson.build: Just warn if we build without libseccomp |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
| 9 | libseccomp lives in meta-security currently and we cannot make it a mandatory |
| 10 | dependency. Once somebody moves libseccomp to meta-oe and adjusts all the |
| 11 | target specific knobs this patch can go. For discussion see [1]. |
| 12 | |
| 13 | [1] http://lists.openembedded.org/pipermail/openembedded-devel/2019-November/203234.html |
| 14 | |
| 15 | Upstream-Status: Inappropriate [embedded specific] |
| 16 | |
| 17 | Signed-off-by: Andreas MΓΌller <schnitzeltony@gmail.com> |
| 18 | --- |
| 19 | meson.build | 2 +- |
| 20 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 21 | |
| 22 | diff --git a/meson.build b/meson.build |
| 23 | index 71a9df4..1eaa1a0 100644 |
| 24 | --- a/meson.build |
| 25 | +++ b/meson.build |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 26 | @@ 299,7 +299,7 @@ cpu_supports_seccomp = not unsupported_cpus.contains(host_cpu) |
| 27 | seccomp_required = system_supports_seccomp and cpu_supports_seccomp and get_option('seccomp') and get_option('extract') |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 28 | |
| 29 | if not libseccomp.found() and seccomp_required |
| 30 | - error('Libseccomp is mandatory for sandboxed metadata extraction') |
| 31 | + warning('Building without Libseccomp might cause security issues!') |
| 32 | endif |
| 33 | |
| 34 | #################################################################### |
| 35 | -- |
| 36 | 2.21.0 |
| 37 | |