forked from jengelh/libseccomp
Accepting request 895486 from security
- update to 2.5.1: * Fix a bug where seccomp_load() could only be called once * Change the notification fd handling to only request a notification fd if * the filter has a _NOTIFY action * Add documentation about SCMP_ACT_NOTIFY to the seccomp_add_rule(3) manpage * Clarify the maintainers' GPG keys - remove testsuite-riscv64-missing-syscalls.patch OBS-URL: https://build.opensuse.org/request/show/895486 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libseccomp?expand=0&rev=30
This commit is contained in:
commit
3c882029cf
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:1ffa7038d2720ad191919816db3479295a4bcca1ec14e02f672539f4983014f3
|
|
||||||
size 638793
|
|
@ -1,16 +0,0 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
|
|
||||||
iQIzBAABCAAdFiEES0KozwfymdVUl37v6iDy2pc3iXMFAl8V6OcACgkQ6iDy2pc3
|
|
||||||
iXPwsRAAn1lwUBaMNoh8xdpfvD03KWRoj6qZBREn4vEhT583qW49QSoucd7YuI84
|
|
||||||
wukM87hadGv/0jRNWqopBHYedFwmr38ApkftRl5sp0KaG+5c8n6USUAvcQ92h/gV
|
|
||||||
Iduik0fytd9h/XeQqoL3tkLL+YqRaWPNucK1Osu5FGcAjLgon0Vh/S2sILhrVF9k
|
|
||||||
7uISL10aGKiCEWYyDsMrmFe72W6BHZNlwYeFT2Tu8TKyh3qB500zj8IV9VV0EiHJ
|
|
||||||
3H8w4z3V+zEJOQOI9gyELQsFvKP5qHQZvkHv16L+mKDiHp8WjNF13T7OIpJJ9Ur/
|
|
||||||
NqWcRzJ2VJA/EIKsQFTvyk4Mclx/viyNPTdTMvExFWAInPebxqDwqY1LYq+ZmU1s
|
|
||||||
q/rGl1WKMdcFZsWj7sSAxqo9KQiObgjk3uAc4IdyTm97wFwLrcLDB90TH1DP0zZp
|
|
||||||
5z2nNBZeegav1bKnm2aU1h2BTT8bHIRfQZO7912ITiPXbpvWVdvJSUlcwZtnv3yC
|
|
||||||
uB5WgemZZR+29rLCC6jCFr7fxRO7eKJhy+klDxFKqicn6MX5hKkyE1oDeM/PNYtD
|
|
||||||
8hy2Rn2zfwjkyMeAlNIBpKrJYS1XHg1O7Bfd0OEwpH9cFxdLodnOqxm++0AgXol/
|
|
||||||
PzuaOI8AnOLYO87oYH3D808+80nnZFKi9RRkOzfetOgeKBsWdCE=
|
|
||||||
=0Ew0
|
|
||||||
-----END PGP SIGNATURE-----
|
|
3
libseccomp-2.5.1.tar.gz
Normal file
3
libseccomp-2.5.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ee307e383c77aa7995abc5ada544d51c9723ae399768a97667d4cdb3c3a30d55
|
||||||
|
size 638811
|
16
libseccomp-2.5.1.tar.gz.asc
Normal file
16
libseccomp-2.5.1.tar.gz.asc
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iQIzBAABCAAdFiEER6aPzjfH1wJP1l4RNWzmLCtSQJkFAl+zEjYACgkQNWzmLCtS
|
||||||
|
QJlb0w/+NWl66HL4eGEqhPjAo2v8hM0MFIuOyC4Y8mD8jHYVokwNOwSPX02LgsEC
|
||||||
|
uZcdRxo8cuokPc/4tAUWuRBt8wggAAupVOsp8ris8uFRcGDxQzuhO0LxreJUYljN
|
||||||
|
sqLScDQgVlP2cEIWxzygj8/wOkAxjXf4UuZ/tY9/swBjD7SKuSC28hsyFUr/zlCq
|
||||||
|
npqMTO/ozPymtMX1wm8fbICAxQ2GVsA51UFm8lgBQ7FOo9TLeMLZaOAQPGB8e3Xr
|
||||||
|
/YmSwKBwtQlYgmg4ksJKBzXR5z0HEaU5zvGJgyHcUWbYVwbLcRYQwDilQO6HcSmL
|
||||||
|
8YRXoH38lSZfmKZpIgh6xI9/uJY43KEBD1+EODB+xjXZjvFRPIacc2uoDMluLC7O
|
||||||
|
NUEPV3Gq7ioMAYuBI662zTgD5vCLCNCtyqyWh3QUkBrgne0fnfQL1P5H1Ujvkbwk
|
||||||
|
P0X3A/AOC+X+aEFbdC9fzBa0cnc7AyjGGkLVFSYD+2qhL63h5zFrJo7rRylug8Ce
|
||||||
|
FTM8TtjKSeHk5O7DLVEw60nC6AY4ocVy+CIEW1wBytwIBsdgcY52FAjfEoNOSI6/
|
||||||
|
igB2xxVjEjzECq+oIApjFKp59kmb+C08Z+8EExr8BaHzQZU0tq35ur7cZqyxh/Ot
|
||||||
|
gwcMSmAYGleZTCYkOKOa8GzaTvoiDUEB4VClguACP5BzWoJGAlQ=
|
||||||
|
=wT8z
|
||||||
|
-----END PGP SIGNATURE-----
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 21 16:59:46 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2.5.1:
|
||||||
|
* Fix a bug where seccomp_load() could only be called once
|
||||||
|
* Change the notification fd handling to only request a notification fd if
|
||||||
|
* the filter has a _NOTIFY action
|
||||||
|
* Add documentation about SCMP_ACT_NOTIFY to the seccomp_add_rule(3) manpage
|
||||||
|
* Clarify the maintainers' GPG keys
|
||||||
|
- remove testsuite-riscv64-missing-syscalls.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 9 13:49:55 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
Wed Sep 9 13:49:55 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -668,6 +668,53 @@ vfBg/wCK92wJ26L3rzU42scKTvCpTDS4QDamLRoxZYbnBn0I1TsTlNHN0C9cASeb
|
|||||||
NGzZbc+QvC6gkaaoyXON79wn0PyGc6mfoOdcCVloDfcAI+tnaA+MeiZVYNewGZul
|
NGzZbc+QvC6gkaaoyXON79wn0PyGc6mfoOdcCVloDfcAI+tnaA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EJSCz5FnChsSLtSK6NxO1qCD6Ixx7U+wqO5kk
|
||||||
|
c2jSNNFVO4zMGcFxUC/yG3hrCpWgMsYdQc0S5y3TzfIcYmLRKtiBuulKtxJooLcD
|
||||||
|
r4dOnf0Iv4AR+glsXWoUZOx8AE8qzb2433bszZ4RfpTwN/YiqyOfiBmrCui6fR5J
|
||||||
|
VCQ9EPSSu8mnP3FI+S6bWPzwRQu3iShyS8qIZr5V2IEUngFxJu7hqVOZP41GQzOG
|
||||||
|
daOSW6IjVUKKg1rOog2CW/NnEYyipbwtndpRSsbQTkd8SWVFLCKaEK7LcZ9SwOQ3
|
||||||
|
AaLD73fSEsiGbN/FMiTU89OxlHnRKXhN2IS5HrHOp9oi/Q9mI8/0uADbpMZfWGQ1
|
||||||
|
vhBUvC7U3IbytdTh1rm71sVhVe7cSxZpAWEMJNpKwotjFYLkWRo/G6Hao7ctR/GT
|
||||||
|
HwOTWMACnskJrJkx6jZkdVrP3HUAle/t6vUbq5VLWNQFcceC7Z0tehl/jlQsm1s2
|
||||||
|
ytbqi636
|
||||||
|
=l1C4
|
||||||
-----END PGP PUBLIC KEY BLOCK-----
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libseccomp
|
# spec file for package libseccomp
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%define lname libseccomp2
|
%define lname libseccomp2
|
||||||
Name: libseccomp
|
Name: libseccomp
|
||||||
Version: 2.5.0
|
Version: 2.5.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A Seccomp (mode 2) helper library
|
Summary: A Seccomp (mode 2) helper library
|
||||||
License: LGPL-2.1-only
|
License: LGPL-2.1-only
|
||||||
@ -28,7 +28,6 @@ Source: https://github.com/seccomp/libseccomp/releases/download/v%versio
|
|||||||
Source2: https://github.com/seccomp/libseccomp/releases/download/v%version/libseccomp-%version.tar.gz.asc
|
Source2: https://github.com/seccomp/libseccomp/releases/download/v%version/libseccomp-%version.tar.gz.asc
|
||||||
Source3: %name.keyring
|
Source3: %name.keyring
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
Patch: testsuite-riscv64-missing-syscalls.patch
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake >= 1.11
|
BuildRequires: automake >= 1.11
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -51,16 +50,6 @@ syscall filtering mechanism, seccomp. The libseccomp API abstracts
|
|||||||
away the underlying BPF-based syscall filter language and presents a
|
away the underlying BPF-based syscall filter language and presents a
|
||||||
more conventional function-call based filtering interface.
|
more conventional function-call based filtering interface.
|
||||||
|
|
||||||
%package -n python-%name
|
|
||||||
Summary: Python bindings for Seccomp (mode 2)
|
|
||||||
Group: Development/Languages/Python
|
|
||||||
|
|
||||||
%description -n python-%name
|
|
||||||
The libseccomp library provides an interface to the Linux Kernel's
|
|
||||||
syscall filtering mechanism, seccomp. The libseccomp API abstracts
|
|
||||||
away the underlying BPF-based syscall filter language and presents a
|
|
||||||
more conventional function-call based filtering interface.
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for libseccomp, an enhanced Seccomp (mode 2) helper library
|
Summary: Development files for libseccomp, an enhanced Seccomp (mode 2) helper library
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
@ -1,141 +0,0 @@
|
|||||||
From cc580a514f05a7fc1f412f66ed002dd8aee89618 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andreas Schwab <schwab@suse.de>
|
|
||||||
Date: Tue, 18 Aug 2020 15:59:54 +0200
|
|
||||||
Subject: [PATCH] tests: use openat and fstat instead of open and stat syscalls
|
|
||||||
in tests 04 and 06
|
|
||||||
|
|
||||||
Architectures like aarch64 and riscv64, and all future architectures that
|
|
||||||
use the generic syscall table, do not support the open and stat syscalls.
|
|
||||||
Use the openat and fstat syscalls instead.
|
|
||||||
|
|
||||||
Signed-off-by: Andreas Schwab <schwab@suse.de>
|
|
||||||
Acked-by: Tom Hromatka <tom.hromatka@oracle.com>
|
|
||||||
Signed-off-by: Paul Moore <paul@paul-moore.com>
|
|
||||||
(imported from commit a317fabc1fd915f19f7e7326bf7dcb77493f1210)
|
|
||||||
---
|
|
||||||
tests/04-sim-multilevel_chains.c | 2 +-
|
|
||||||
tests/04-sim-multilevel_chains.py | 2 +-
|
|
||||||
tests/04-sim-multilevel_chains.tests | 8 +++++---
|
|
||||||
tests/06-sim-actions.c | 4 ++--
|
|
||||||
tests/06-sim-actions.py | 4 ++--
|
|
||||||
tests/06-sim-actions.tests | 16 +++++++++-------
|
|
||||||
6 files changed, 20 insertions(+), 16 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/tests/04-sim-multilevel_chains.c b/tests/04-sim-multilevel_chains.c
|
|
||||||
index a660b40..e3e4f9b 100644
|
|
||||||
--- a/tests/04-sim-multilevel_chains.c
|
|
||||||
+++ b/tests/04-sim-multilevel_chains.c
|
|
||||||
@@ -41,7 +41,7 @@ int main(int argc, char *argv[])
|
|
||||||
if (ctx == NULL)
|
|
||||||
return ENOMEM;
|
|
||||||
|
|
||||||
- rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(open), 0);
|
|
||||||
+ rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(openat), 0);
|
|
||||||
if (rc != 0)
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
diff --git a/tests/04-sim-multilevel_chains.py b/tests/04-sim-multilevel_chains.py
|
|
||||||
index bcf1ee4..a5127a2 100755
|
|
||||||
--- a/tests/04-sim-multilevel_chains.py
|
|
||||||
+++ b/tests/04-sim-multilevel_chains.py
|
|
||||||
@@ -30,7 +30,7 @@ from seccomp import *
|
|
||||||
|
|
||||||
def test(args):
|
|
||||||
f = SyscallFilter(KILL)
|
|
||||||
- f.add_rule(ALLOW, "open")
|
|
||||||
+ f.add_rule(ALLOW, "openat")
|
|
||||||
f.add_rule(ALLOW, "close")
|
|
||||||
f.add_rule(ALLOW, "read",
|
|
||||||
Arg(0, EQ, sys.stdin.fileno()),
|
|
||||||
diff --git a/tests/04-sim-multilevel_chains.tests b/tests/04-sim-multilevel_chains.tests
|
|
||||||
index 6613f9a..b6f7576 100644
|
|
||||||
--- a/tests/04-sim-multilevel_chains.tests
|
|
||||||
+++ b/tests/04-sim-multilevel_chains.tests
|
|
||||||
@@ -8,7 +8,7 @@
|
|
||||||
test type: bpf-sim
|
|
||||||
|
|
||||||
# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
|
|
||||||
-04-sim-multilevel_chains all,-aarch64 open 0x856B008 4 N N N N ALLOW
|
|
||||||
+04-sim-multilevel_chains all openat 0 0x856B008 4 N N N ALLOW
|
|
||||||
04-sim-multilevel_chains all close 4 N N N N N ALLOW
|
|
||||||
04-sim-multilevel_chains x86 read 0 0x856B008 0x7FFFFFFE N N N ALLOW
|
|
||||||
04-sim-multilevel_chains x86_64 read 0 0x856B008 0x7FFFFFFFFFFFFFFE N N N ALLOW
|
|
||||||
@@ -27,9 +27,11 @@ test type: bpf-sim
|
|
||||||
04-sim-multilevel_chains all rt_sigreturn N N N N N N ALLOW
|
|
||||||
04-sim-multilevel_chains x86 0-2 N N N N N N KILL
|
|
||||||
04-sim-multilevel_chains x86 7-172 N N N N N N KILL
|
|
||||||
-04-sim-multilevel_chains x86 174-350 N N N N N N KILL
|
|
||||||
+04-sim-multilevel_chains x86 174-294 N N N N N N KILL
|
|
||||||
+04-sim-multilevel_chains x86 296-350 N N N N N N KILL
|
|
||||||
04-sim-multilevel_chains x86_64 4-14 N N N N N N KILL
|
|
||||||
-04-sim-multilevel_chains x86_64 16-350 N N N N N N KILL
|
|
||||||
+04-sim-multilevel_chains x86_64 16-256 N N N N N N KILL
|
|
||||||
+04-sim-multilevel_chains x86_64 258-350 N N N N N N KILL
|
|
||||||
|
|
||||||
test type: bpf-sim-fuzz
|
|
||||||
|
|
||||||
diff --git a/tests/06-sim-actions.c b/tests/06-sim-actions.c
|
|
||||||
index 10b366c..da636c9 100644
|
|
||||||
--- a/tests/06-sim-actions.c
|
|
||||||
+++ b/tests/06-sim-actions.c
|
|
||||||
@@ -60,11 +60,11 @@ int main(int argc, char *argv[])
|
|
||||||
if (rc != 0)
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
- rc = seccomp_rule_add(ctx, SCMP_ACT_TRACE(1234), SCMP_SYS(open), 0);
|
|
||||||
+ rc = seccomp_rule_add(ctx, SCMP_ACT_TRACE(1234), SCMP_SYS(openat), 0);
|
|
||||||
if (rc != 0)
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
- rc = seccomp_rule_add(ctx, SCMP_ACT_KILL_PROCESS, SCMP_SYS(stat), 0);
|
|
||||||
+ rc = seccomp_rule_add(ctx, SCMP_ACT_KILL_PROCESS, SCMP_SYS(fstat), 0);
|
|
||||||
if (rc != 0)
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
diff --git a/tests/06-sim-actions.py b/tests/06-sim-actions.py
|
|
||||||
index f14d6ed..253061d 100755
|
|
||||||
--- a/tests/06-sim-actions.py
|
|
||||||
+++ b/tests/06-sim-actions.py
|
|
||||||
@@ -37,8 +37,8 @@ def test(args):
|
|
||||||
f.add_rule(LOG, "rt_sigreturn")
|
|
||||||
f.add_rule(ERRNO(errno.EPERM), "write")
|
|
||||||
f.add_rule(TRAP, "close")
|
|
||||||
- f.add_rule(TRACE(1234), "open")
|
|
||||||
- f.add_rule(KILL_PROCESS, "stat")
|
|
||||||
+ f.add_rule(TRACE(1234), "openat")
|
|
||||||
+ f.add_rule(KILL_PROCESS, "fstat")
|
|
||||||
return f
|
|
||||||
|
|
||||||
args = util.get_opt()
|
|
||||||
diff --git a/tests/06-sim-actions.tests b/tests/06-sim-actions.tests
|
|
||||||
index b830917..1ef38b3 100644
|
|
||||||
--- a/tests/06-sim-actions.tests
|
|
||||||
+++ b/tests/06-sim-actions.tests
|
|
||||||
@@ -11,15 +11,17 @@ test type: bpf-sim
|
|
||||||
06-sim-actions all read 4 0x856B008 80 N N N ALLOW
|
|
||||||
06-sim-actions all write 1 0x856B008 N N N N ERRNO(1)
|
|
||||||
06-sim-actions all close 4 N N N N N TRAP
|
|
||||||
-06-sim-actions all,-aarch64 open 0x856B008 4 N N N N TRACE(1234)
|
|
||||||
-06-sim-actions all,-aarch64 stat N N N N N N KILL_PROCESS
|
|
||||||
+06-sim-actions all openat 0 0x856B008 4 N N N TRACE(1234)
|
|
||||||
+06-sim-actions all fstat N N N N N N KILL_PROCESS
|
|
||||||
06-sim-actions all rt_sigreturn N N N N N N LOG
|
|
||||||
06-sim-actions x86 0-2 N N N N N N KILL
|
|
||||||
-06-sim-actions x86 7-105 N N N N N N KILL
|
|
||||||
-06-sim-actions x86 107-172 N N N N N N KILL
|
|
||||||
-06-sim-actions x86 174-350 N N N N N N KILL
|
|
||||||
-06-sim-actions x86_64 5-14 N N N N N N KILL
|
|
||||||
-06-sim-actions x86_64 16-350 N N N N N N KILL
|
|
||||||
+06-sim-actions x86 7-107 N N N N N N KILL
|
|
||||||
+06-sim-actions x86 109-172 N N N N N N KILL
|
|
||||||
+06-sim-actions x86 174-294 N N N N N N KILL
|
|
||||||
+06-sim-actions x86 296-350 N N N N N N KILL
|
|
||||||
+06-sim-actions x86_64 6-14 N N N N N N KILL
|
|
||||||
+06-sim-actions x86_64 16-256 N N N N N N KILL
|
|
||||||
+06-sim-actions x86_64 258-350 N N N N N N KILL
|
|
||||||
|
|
||||||
test type: bpf-sim-fuzz
|
|
||||||
|
|
||||||
--
|
|
||||||
2.28.0
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user