From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F28BCC48BE5 for ; Sat, 12 Jun 2021 08:32:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D1D24611CD for ; Sat, 12 Jun 2021 08:32:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230516AbhFLIeB (ORCPT ); Sat, 12 Jun 2021 04:34:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbhFLIeA (ORCPT ); Sat, 12 Jun 2021 04:34:00 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D34BCC061574 for ; Sat, 12 Jun 2021 01:31:50 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id a11so8460110wrt.13 for ; Sat, 12 Jun 2021 01:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ExebsN56b/xPylzCPw5CcjiwIE0jvTqkaUYckUyu0lY=; b=jtQ93c9pMbMWc6Bj05ZE9xpq+DVuKML7O12aA25Zih3n6epv1N4J+yNGSw43cgv37c rEkUo1JBD6I2gtkFs4c0XO3R+2V+tvKC5yZi8YSp6JoQwIEMW8NAadkPHUBjueOCqGxH bqLXzF3vsLvnyTgfLQSEPkGn/re25Ck+1j34PTnMQTH8aUyn2KpegHTr3vH5+jiUMbi+ s9P5z9rAJzsyQvkfirO5Pm0Lslh0MgCFRhGbIhhXbWQxvnKa8LzKIqT2CUmRQGVm5RPD zD1P6ANXmNL1bIKOF+dVXjE4DEBOI0AcDtM6c42Nkus34+1/zbJXe1/vrWGvYbDOTGL+ pyUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ExebsN56b/xPylzCPw5CcjiwIE0jvTqkaUYckUyu0lY=; b=QdZwkwzM/od5HvQT5QQK9eR0m0puI9SBYDwdlbbgRIlYCIIw2H1SjItecZ0VbCGEkF n1IHztDDP7VePX6M8Xwivw3tXPkyFYbzMfUSa94UgRAt5vBia46CxiaLpMZMaAqs4W53 U3XTsEZO7lqpT3d5jq1ikPreJEwawWIkd6PcFtCdnnz8DWDuWzKPzo1RvK1EbxFF9RHV IBTteqFD/psBiezRPxke/HWdYYRaE8npXQyWheyO2mjRWaIV8QXGEf9ezG6KVgGMMf/A jdRPPZeZ7xBbKu08fopDyJiH7ZCtT9c1fcs6vcV9xxPkzcdzgLbG5Z3t/AGHlOFHswY4 C1sA== X-Gm-Message-State: AOAM533SXNIPwEBe0KwZdAQswBrDGHBlbg1STG57HhteuKNxMl6z2yYy bycK8vxMZnkhsLwqu7XCSreOO+21VvI= X-Google-Smtp-Source: ABdhPJyrPBOhuCWusPN1YAQy9pd/gTt9ZhViuQAbswJ+tklxiPvIkFaJoKAYCkBuVsYIt6e7XjCBMw== X-Received: by 2002:adf:d1e4:: with SMTP id g4mr8141661wrd.405.1623486709533; Sat, 12 Jun 2021 01:31:49 -0700 (PDT) Received: from localhost.localdomain ([170.253.36.171]) by smtp.googlemail.com with ESMTPSA id c12sm11165110wrr.90.2021.06.12.01.31.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Jun 2021 01:31:49 -0700 (PDT) From: Alejandro Colomar To: mtk.manpages@gmail.com Cc: Alejandro Colomar , linux-man@vger.kernel.org Subject: [PATCH 02/28] seccomp.2: Use syscall(SYS_...); for system calls without a wrapper Date: Sat, 12 Jun 2021 10:31:19 +0200 Message-Id: <20210612083145.12485-3-alx.manpages@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210612083145.12485-1-alx.manpages@gmail.com> References: <20210612083145.12485-1-alx.manpages@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org Signed-off-by: Alejandro Colomar --- man2/seccomp.2 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/man2/seccomp.2 b/man2/seccomp.2 index 53f473a78..a3421871f 100644 --- a/man2/seccomp.2 +++ b/man2/seccomp.2 @@ -38,13 +38,18 @@ seccomp \- operate on Secure Computing state of the process .BR "#include " " /* Definition of " PTRACE_* " constants */" .\" Kees Cook noted: Anything that uses SECCOMP_RET_TRACE returns will .\" need +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "int seccomp(unsigned int " operation ", unsigned int " flags \ -", void *" args ); +.BI "int syscall(SYS_seccomp, unsigned int " operation ", unsigned int " flags , +.BI " void *" args ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR seccomp (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR seccomp () @@ -930,9 +935,6 @@ Tile (since Linux 4.3) PA-RISC (since Linux 4.6) .\" User mode Linux since Linux 4.6 .PD -.PP -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). .\" .SS Caveats There are various subtleties to consider when applying seccomp filters -- 2.32.0