Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4447670pxu; Tue, 20 Oct 2020 18:18:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9G5aGfzWbUP9B+xlz/OsFxe02CjlTtaUaAUmuj8k5a6Tl/gf6N/uPFIDQWUoeMurrcb81 X-Received: by 2002:a17:906:b1c9:: with SMTP id bv9mr911726ejb.495.1603243123465; Tue, 20 Oct 2020 18:18:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603243123; cv=none; d=google.com; s=arc-20160816; b=kkrFeUsW2DmFRbQ9RV5uv4XAeLjyEed0Wr7i0+tG6DjZP/rLkB8WuMg8183oknyscn 4TKoo6+Q21bSYgzEoC57WjcGKjp/9aZBX2Vfa42QLEHzZvonEA3dMTEofWSOkLNorKo5 MVP4c9kwaESnaC+wVecUF6KFYgn5ha9sueOAtoUjk9Qv8b4HCMJoxcCrUGROkioXnNbn xsHg52Rj9gAwr8T6cohbtB29dpSTySdy7PLMO0DZecWsUSt7RPSYPKErlcIpd7aS4omR 4PSCzPZ8n1uab9xGp7pfEuOFTm6CWAJIaa0DI5SGUOcneEVxi4vmaAair6QAS4Ehy8If 0rUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bzQ3QcrrcoL+50bXzr/RD+59UqWoW9ygucvo4X3s52M=; b=fiKv4wLb39U5B7kXBY80vC2kK2IWweRyIC4kBqAHcVcZUDS6frKPSsWPDAmokPDnKI HGylu2hgotbyFUgfiXex4PIB8BnhXVVYaLD07Met7BKMrlc2yFM5GuATLQPHpGcQQYme yeHwwvBR8Uqc8fO2MyitQG5LrwKtQHFgWTKs7bxcP87iPgcy9/uxF8YBoJ7dTqHd+GNj nCyoSGEJXNDQyJMfZq3CXFr6orS8a6xc+7rwQWb1L6/gawrURHYcXOh0xEmUWlqbTzoK zSvkiv6EMeWyC8K/phh70fJrK2CatHarzz0yQL3p2FdPmGIosY812TtyZzi0ezI8cL7M 4nJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1kmtiETR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r10si282299eji.253.2020.10.20.18.18.22; Tue, 20 Oct 2020 18:18:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1kmtiETR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404790AbgJTMBa (ORCPT + 99 others); Tue, 20 Oct 2020 08:01:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:33978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404556AbgJTMB0 (ORCPT ); Tue, 20 Oct 2020 08:01:26 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E50C122253; Tue, 20 Oct 2020 12:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603195285; bh=m7yUJ4DTsqo4MdAimqotlN8nOUy7Gs4YTVuOGM8kZiA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1kmtiETRMzb0fCEzw5xb94YaAzS1vWwA/PFj3lczwhAw5css3pS1lFgfimClzB9vi jibZrVEMcZT+yiGGWtCnJt6f5iWVshNcA8FO7+mBlPK+wuwhJx3GNpiLK8UaT8guJL zPS4TtNGVDwCP78APV3HDguXkPZZkF1MWmLk+3tg= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id B0E88403C2; Tue, 20 Oct 2020 09:01:20 -0300 (-03) Date: Tue, 20 Oct 2020 09:01:20 -0300 From: Arnaldo Carvalho de Melo To: Alexey Budankov Cc: Jiri Olsa , Namhyung Kim , Alexander Shishkin , Andi Kleen , Peter Zijlstra , Ingo Molnar , linux-kernel , "linux-security-module@vger.kernel.org" , "linux-doc@vger.kernel.org" , linux-man@vger.kernel.org Subject: Re: [PATCH v1 0/2] doc/admin-guide: update perf-security.rst with CAP_PERFMON usage flows Message-ID: <20201020120120.GA2294271@kernel.org> References: <161a51d3-7cdf-f9ee-c438-42bb7404693e@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <161a51d3-7cdf-f9ee-c438-42bb7404693e@linux.intel.com> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Oct 19, 2020 at 08:15:14PM +0300, Alexey Budankov escreveu: > > Assignment of CAP_PERFMON [1] Linux capability to an executable located > on a file system requires extended attributes (xattrs) [2] to be supported > by the file system. Even if the file system supports xattrs an fs device > should be mounted with permission to use xattrs for files located on the > device (e.g. without nosuid option [3]). No xattrs support and nosuid > mounts are quite common in HPC and Cloud multiuser environments thus > applicability of privileged Perf user groups based on file capabilities > [4] is limited in that environments. Alternative method to confer Linux > capabilities into a process does still exist and it is thru creation of > capabilities-enabled-semi-privileged shell environment. Usage of this > method to extend privileged Perf user groups approach is documented in > this patch set as an extension to perf-security.rst admin guide file. > > [1] https://man7.org/linux/man-pages/man7/capabilities.7.html > [2] https://man7.org/linux/man-pages/man7/xattr.7.html > [3] https://man7.org/linux/man-pages/man8/mount.8.html > [4] https://www.kernel.org/doc/html/latest/admin-guide/perf-security.html#privileged-perf-users-groups Thanks, applied. - Arnaldo > --- > Alexey Budankov (2): > doc/admin-guide: note credentials consolidation under CAP_PERFMON > doc/admin-guide: document creation of CAP_PERFMON privileged shell > > Documentation/admin-guide/perf-security.rst | 81 ++++++++++++++++++--- > 1 file changed, 70 insertions(+), 11 deletions(-) > > -- > 2.24.1 > -- - Arnaldo