From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on archive.lwn.net X-Spam-Level: X-Spam-Status: No, score=-5.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by archive.lwn.net (Postfix) with ESMTP id 717D27D08A for ; Tue, 2 Oct 2018 20:47:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726847AbeJCDck (ORCPT ); Tue, 2 Oct 2018 23:32:40 -0400 Received: from smtp6-g21.free.fr ([212.27.42.6]:42752 "EHLO smtp6-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726517AbeJCDck (ORCPT ); Tue, 2 Oct 2018 23:32:40 -0400 Received: from mail.corsac.net (unknown [IPv6:2a01:e34:ec2f:4e20::5]) by smtp6-g21.free.fr (Postfix) with ESMTPS id 6D9B5780375 for ; Tue, 2 Oct 2018 22:47:27 +0200 (CEST) Received: from scapa.corsac.net (unknown [IPv6:2a01:e34:ec2f:4e20:6af7:28ff:fe8d:2119]) by mail.corsac.net (Postfix) with ESMTPS id CF0318F for ; Tue, 2 Oct 2018 22:47:23 +0200 (CEST) Received: from corsac (uid 1000) (envelope-from corsac@corsac.net) id a03b5 by scapa.corsac.net (DragonFly Mail Agent v0.11); Tue, 02 Oct 2018 22:47:23 +0200 Date: Tue, 2 Oct 2018 22:47:23 +0200 From: Yves-Alexis Perez To: Kees Cook , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: trivial@kernel.org Subject: [PATCH] yama: clarify ptrace_scope=2 in Yama documentation Message-ID: <20181002204722.GA9610@scapa.corsac.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org Current phrasing is ambiguous since it's unclear if attaching to a children through PTRACE_TRACEME requires CAP_SYS_PTRACE. Rephrase the sentence to make that clear. Signed-off-by: Yves-Alexis Perez --- Documentation/admin-guide/LSM/Yama.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/LSM/Yama.rst b/Documentation/admin-guide/LSM/Yama.rst index 13468ea696b7..d0a060de3973 100644 --- a/Documentation/admin-guide/LSM/Yama.rst +++ b/Documentation/admin-guide/LSM/Yama.rst @@ -64,8 +64,8 @@ The sysctl settings (writable only with ``CAP_SYS_PTRACE``) are: Using ``PTRACE_TRACEME`` is unchanged. 2 - admin-only attach: - only processes with ``CAP_SYS_PTRACE`` may use ptrace - with ``PTRACE_ATTACH``, or through children calling ``PTRACE_TRACEME``. + only processes with ``CAP_SYS_PTRACE`` may use ptrace, either with + ``PTRACE_ATTACH`` or through children calling ``PTRACE_TRACEME``. 3 - no attach: no processes may use ptrace with ``PTRACE_ATTACH`` nor via -- 2.19.0 -- Yves-Alexis