From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 577E958973 for ; Wed, 10 Feb 2016 18:54:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C135121C081; Wed, 10 Feb 2016 18:54:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6DFDD21C081 for ; Wed, 10 Feb 2016 18:54:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 32848340AA1 for ; Wed, 10 Feb 2016 18:54:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 30CC08E9 for ; Wed, 10 Feb 2016 18:54:30 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1455130300.636c3d42a64a248945ca4c68f5fef605cc55f423.vapier@gentoo> Subject: [gentoo-commits] proj/pax-utils:master commit in: / X-VCS-Repository: proj/pax-utils X-VCS-Files: security.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 636c3d42a64a248945ca4c68f5fef605cc55f423 X-VCS-Branch: master Date: Wed, 10 Feb 2016 18:54:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3f591339-6983-46cf-abf0-8b4ec56c963d X-Archives-Hash: 778ded120f3088f69fa1bd300a6f2ce4 commit: 636c3d42a64a248945ca4c68f5fef605cc55f423 Author: Mike Frysinger gentoo org> AuthorDate: Wed Feb 10 18:51:40 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Wed Feb 10 18:51:40 2016 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=636c3d42 security: allow more read/write syscalls Some C libraries might use these functions in different ways. Since they are fairly harmless to use, just whitelist all the read/write variants. URL: https://bugs.gentoo.org/571128 Reported-by: Vladimir Lushnikov vladimir.lu> Reported-by: Mias van Klei gmail.com> security.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/security.c b/security.c index ba74bee..b635ccf 100644 --- a/security.c +++ b/security.c @@ -72,6 +72,9 @@ static void pax_seccomp_init(bool allow_forking) int base_syscalls[] = { /* We write the most w/scanelf. */ SCMP_SYS(write), + SCMP_SYS(writev), + SCMP_SYS(pwrite64), + SCMP_SYS(pwritev), /* Then the stat family of functions. */ SCMP_SYS(newfstatat), @@ -102,6 +105,8 @@ static void pax_seccomp_init(bool allow_forking) /* Then the file reading functions. */ SCMP_SYS(pread64), SCMP_SYS(read), + SCMP_SYS(readv), + SCMP_SYS(preadv), /* Then the fd manipulation functions. */ SCMP_SYS(fcntl),