From patchwork Mon Oct 17 17:55:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zach O'Keefe X-Patchwork-Id: 13009198 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B462C433FE for ; Mon, 17 Oct 2022 17:55:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C36E46B007B; Mon, 17 Oct 2022 13:55:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BC05B6B007D; Mon, 17 Oct 2022 13:55:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 977E16B007E; Mon, 17 Oct 2022 13:55:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 81CDD6B007B for ; Mon, 17 Oct 2022 13:55:32 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 4D597AB38E for ; Mon, 17 Oct 2022 17:55:32 +0000 (UTC) X-FDA: 80031193704.07.C4B2FE7 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) by imf06.hostedemail.com (Postfix) with ESMTP id E6611180033 for ; Mon, 17 Oct 2022 17:55:31 +0000 (UTC) Received: by mail-pf1-f201.google.com with SMTP id q18-20020aa79832000000b00562d921e30aso6453089pfl.4 for ; Mon, 17 Oct 2022 10:55:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=k4YZ/MZAkRksM7yVQmihehh8ldAEChAETLP25ZBcDQ0=; b=O6/4jT33BaC+RJJLf7veET9jVN1YLLZYIeYsGr0T4FVM9rhiunBt0L4bHC3T6gxRAj iKi31nT/vPp3ptPZIwJ+iIRxMy8LyFAq9TzDmUfgRcs0bF5QUhERUjoocgGQ3PosM1L+ KlOhpZ/cDvr9Vc1iXQ9d8yk2/7B6bcXGQSSdn6Q/hcZePHkf5d6pdjWiQQXZ2XuzC1l0 PuO0IZuMiz2rzPU2zi6hAUViiIQ9Z1LoeF67Sua9BwCrKEc88iunEbRReHb30pVDqVpU hFJC9CvCvf7oytGr6VLz7BN+AmjkuZ+d4Wm0/IwEeHZYqq/yfDa8WAru58mWK1KiV+l3 7/mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=k4YZ/MZAkRksM7yVQmihehh8ldAEChAETLP25ZBcDQ0=; b=Fo9i/M9mu9BNczILEO9bxq7GikBgz9SET8zwnFr3Uri3bcTLS/UoHFgilJzNjAqbmf RgPk7GlHnyy+jQmwJG3GR1HlAmKzc1gKb2kc4llOaOfb1DK2Y5tu/TjSyyiPVwjlcQl8 ms+2LUuduEPMcDyW4xpWMNVfZ7F23koWWHBg00L397IjfqlAk0xDb6+QIBZgfd1XB8VM o/Fb/esXxU5YYj2myLEaklMK3VKfY9MQzpWP8CXgHUJXO6Q0ZFfggviffpLfXBjczjqe 6moE+fumErEmKOzlQATdGRgNosJ56HgUA0OiKn9miLLo4UyTYCQT2xESatC71KGaf2Yl UndA== X-Gm-Message-State: ACrzQf0E6qLAI5WyZ5E04i4RD8O2IbqDaSfO4h7pMZZZgTzRjN1JVlNJ p2AJOVyaj/o+J/ymK8Le5Z6FzxDEE6Xg X-Google-Smtp-Source: AMsMyM4tPJA6Kt7/TvYOFt22YMGQ2eAWnUmfDcpnttaHh5FbPG7jHOHUD8ASdCZt7fk3JvlEgXHbdPCAeqfI X-Received: from zokeefe3.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1b6]) (user=zokeefe job=sendgmr) by 2002:a17:90b:3d85:b0:20c:8f6a:8298 with SMTP id pq5-20020a17090b3d8500b0020c8f6a8298mr35396412pjb.242.1666029331036; Mon, 17 Oct 2022 10:55:31 -0700 (PDT) Date: Mon, 17 Oct 2022 10:55:22 -0700 In-Reply-To: <20221017175523.2048887-1-zokeefe@google.com> Mime-Version: 1.0 References: <20221017175523.2048887-1-zokeefe@google.com> X-Mailer: git-send-email 2.38.0.413.g74048e4d9e-goog Message-ID: <20221017175523.2048887-4-zokeefe@google.com> Subject: [PATCH man-pages 3/4] process_madvise.2: CAP_SYS_ADMIN cleanup From: Zach OKeefe To: Alejandro Colomar , Michael Kerrisk Cc: Yang Shi , linux-mm@kvack.org, linux-man@vger.kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666029332; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=k4YZ/MZAkRksM7yVQmihehh8ldAEChAETLP25ZBcDQ0=; b=QdQxQvZdLoXsdtZzyNAXNfRBAfP3IHV4lEhRFTlcJkBZB6ktAgxz8Ffptq76fj6WmmzmGc AlYlrKT+EJ22DLKc6oM2SsvwusL+0wcu0txW6WQJyp4aaeWY1NermE6wlJ3O1G6oVe3ARz Vc0FG9N8OYzCghJY8zZtY1IAwFLNdcw= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b="O6/4jT33"; spf=pass (imf06.hostedemail.com: domain of 3E5dNYwcKCJgRGC66768GG8D6.4GEDAFMP-EECN24C.GJ8@flex--zokeefe.bounces.google.com designates 209.85.210.201 as permitted sender) smtp.mailfrom=3E5dNYwcKCJgRGC66768GG8D6.4GEDAFMP-EECN24C.GJ8@flex--zokeefe.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666029332; a=rsa-sha256; cv=none; b=g6wA38qD7bwHtZb37UOWB/B9SLYwVuz8Wky9xzk4BNKlv1PXauXOcekaG98S0DPok/n2K9 5Q/kjKgGQn8ZxxYShBUe5E+4qHOfuIV/GsNkh7eEJxINd3dynOKIBYegaPFPVvKKbtTEus Jy+5jdQ2iGiQOIvYoeR+zeFOkWE3yF4= X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: E6611180033 X-Rspam-User: Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b="O6/4jT33"; spf=pass (imf06.hostedemail.com: domain of 3E5dNYwcKCJgRGC66768GG8D6.4GEDAFMP-EECN24C.GJ8@flex--zokeefe.bounces.google.com designates 209.85.210.201 as permitted sender) smtp.mailfrom=3E5dNYwcKCJgRGC66768GG8D6.4GEDAFMP-EECN24C.GJ8@flex--zokeefe.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com X-Stat-Signature: her99wkmm8k8x7h9ty6omqp4xh4whrph X-HE-Tag: 1666029331-886118 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Zach O'Keefe Since commit 96cfe2c0fd23 ("mm/madvise: replace ptrace attach requirement for process_madvise"), process_madvise(2) has only required CAP_SYS_NICE capability. Update the man page to reflect this. Signed-off-by: Zach O'Keefe --- man2/process_madvise.2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man2/process_madvise.2 b/man2/process_madvise.2 index 6208206e4..7bee1a098 100644 --- a/man2/process_madvise.2 +++ b/man2/process_madvise.2 @@ -113,7 +113,8 @@ check (see in addition, because of the performance implications of applying the advice, the caller must have the -.B CAP_SYS_ADMIN +.\" commit 96cfe2c0fd23ea7c2368d14f769d287e7ae1082e +.B CAP_SYS_NICE capability. .SH RETURN VALUE On success,