Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752574AbaFXTS3 (ORCPT ); Tue, 24 Jun 2014 15:18:29 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:38716 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751024AbaFXTS0 (ORCPT ); Tue, 24 Jun 2014 15:18:26 -0400 MIME-Version: 1.0 In-Reply-To: References: <1403560693-21809-1-git-send-email-keescook@chromium.org> <20140623220150.GM5412@outflux.net> Date: Tue, 24 Jun 2014 12:18:25 -0700 X-Google-Sender-Auth: JX7tRFJh7_m8ndSDjRqFzOyR43o Message-ID: Subject: Re: [PATCH v7 1/1] man-pages: seccomp.2: document syscall From: Kees Cook To: Andy Lutomirski Cc: "Michael Kerrisk (man-pages)" , "linux-kernel@vger.kernel.org" , Alexei Starovoitov , Andrew Morton , Daniel Borkmann , Oleg Nesterov , Will Drewry , Julien Tinnes , David Drysdale , Linux API , X86 ML , "linux-arm-kernel@lists.infradead.org" , linux-mips@linux-mips.org, linux-arch , LSM List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 24, 2014 at 11:06 AM, Andy Lutomirski wrote: > On Mon, Jun 23, 2014 at 3:01 PM, Kees Cook wrote: >> Combines documentation from prctl, and in-kernel seccomp_filter.txt, >> along with new details specific to the new syscall. >> >> Signed-off-by: Kees Cook >> --- >> man2/seccomp.2 | 333 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 333 insertions(+) >> create mode 100644 man2/seccomp.2 >> >> diff --git a/man2/seccomp.2 b/man2/seccomp.2 >> new file mode 100644 >> index 0000000..de7fbf7 >> --- /dev/null >> +++ b/man2/seccomp.2 >> @@ -0,0 +1,333 @@ >> +.\" Copyright (C) 2014 Kees Cook >> +.\" and Copyright (C) 2012 Will Drewry >> +.\" and Copyright (C) 2008 Michael Kerrisk >> +.\" >> +.\" %%%LICENSE_START(VERBATIM) >> +.\" Permission is granted to make and distribute verbatim copies of this >> +.\" manual provided the copyright notice and this permission notice are >> +.\" preserved on all copies. >> +.\" >> +.\" Permission is granted to copy and distribute modified versions of this >> +.\" manual under the conditions for verbatim copying, provided that the >> +.\" entire resulting derived work is distributed under the terms of a >> +.\" permission notice identical to this one. >> +.\" >> +.\" Since the Linux kernel and libraries are constantly changing, this >> +.\" manual page may be incorrect or out-of-date. The author(s) assume no >> +.\" responsibility for errors or omissions, or for damages resulting from >> +.\" the use of the information contained herein. The author(s) may not >> +.\" have taken the same level of care in the production of this manual, >> +.\" which is licensed free of charge, as they might when working >> +.\" professionally. >> +.\" >> +.\" Formatted or processed versions of this manual, if unaccompanied by >> +.\" the source, must acknowledge the copyright and authors of this work. >> +.\" %%%LICENSE_END >> +.\" >> +.TH SECCOMP 2 2014-06-23 "Linux" "Linux Programmer's Manual" >> +.SH NAME >> +seccomp \- >> +operate on Secure Computing state of the process >> +.SH SYNOPSIS >> +.nf >> +.B #include >> +.B #include >> +.B #include >> +.B #include >> +.B #include >> + >> +.BI "int seccomp(unsigned int " operation ", unsigned int " flags , >> +.BI " unsigned char *" args ); > > At the very least, shouldn't this be void *args? Yeah, good point. Fixed for the next version... -Kees -- Kees Cook Chrome OS Security -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/