Summary: | sys-apps/file[seccomp]: Bad system call: Need ALLOW_RULE entries for 'writev' and 'statx' on musl libc | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | 12101111 <w12101111> |
Component: | Current packages | Assignee: | Gentoo musl team <musl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aladjev.andrew, base-system, mips, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Patch for file-5.39 to add ALLOW_RULE entries for 'statx' and 'writev' |
Description
12101111
2020-07-03 08:17:27 UTC
Ran into a similar issue where ALLOW_RULE(statx) was needed as well as for writev. Discovered on MIPS big-endian chroot again sys-libs/musl-1.2.0-r1. Will attach a patch for file-5.39-r2 that can go into the musl overlay to resolve this until changes are sent upstream. Created attachment 649898 [details, diff]
Patch for file-5.39 to add ALLOW_RULE entries for 'statx' and 'writev'
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=728f8c43b8b540f37871be3080ac63c05a9cf6a7 commit 728f8c43b8b540f37871be3080ac63c05a9cf6a7 Author: Mike Gilbert <floppym@gentoo.org> Date: Mon Sep 7 12:55:11 2020 -0400 sys-apps/file: backport a seccomp fix for musl Closes: https://bugs.gentoo.org/728978 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-apps/file/file-5.39-r1.ebuild | 140 --------------------- .../{file-5.39-r2.ebuild => file-5.39-r3.ebuild} | 5 +- sys-apps/file/file-5.39.ebuild | 140 --------------------- .../file/files/file-5.39-add-missing-termios.patch | 35 +++--- ...ndbox.patch => file-5.39-portage-sandbox.patch} | 18 ++- sys-apps/file/files/file-5.39-seccomp-musl.patch | 37 ++++++ .../file/files/file-5.39-seccomp_sandbox.patch | 13 -- 7 files changed, 67 insertions(+), 321 deletions(-) |