Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2700808pxb; Sun, 3 Oct 2021 03:21:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhLaJ/30M0+3HA/zu2zobXgQ2HStCg9coOD+HjvpmAN7loOO6f4SDZpomRwqBqIe5GRF0p X-Received: by 2002:a63:4e45:: with SMTP id o5mr6291911pgl.191.1633256480478; Sun, 03 Oct 2021 03:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633256480; cv=none; d=google.com; s=arc-20160816; b=yDWNJsgmEcRUdoGEnjtINAi1fJy1vqbXWBsCe3WKCSCf2LGzT7F5Y72Ncot9oa9oLf r3oTAapX87y9caMDiQPCHcfYYsOZJNZD1IOIrueDElb3DCW4aGlD8eZc+FSFKfNwQnaT EIJvNCCeN6X3fURo+8QdYFl4HfGUxqVQXvFUQKZ+LkHoTWYpog21wNyzcWaBaiMcQY23 jNDEigCDs3BHUh1ug2jVGwjnZi/QKB2h/kleqPh4VzN0necG78H4OcjzwtG+2Vb/5Eix qdklFRRZ6MCJXz/jnsd+BBwwzRn6em2JEc1mCTiPdp/TsV9y9HnRT2+ojOao/XOiYqaP krxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=w92WrddRpIkdGJNofi7UY8I9VFTbgnlXqx11qQLbtpQ=; b=ZwtiVd2KF7lAO7ui8nxVDMFSF6CURK1VSUaAhGglEpuSwWCg6SlE7bvo+M0RbT4Q1o CYDo8exgynPtmn6KMSQEhcspKt5LHuhtlDJgu9ml+Oa0hdbQSa75iInvM6Pf6IrgyQ15 29KHdY0LZxv+F8REWqMpehpwmfqUxc06MowD2Um0DKDnbTOxadDCuxeoSqMBtTe9XKny t1hGRp1o44sW+GQmabNoa+ZZyfka7G86j9ZPBL98gpAdJ/ourh+gpXsw6/VfavK8SxXo RX8EuU28xUsjQCYbntqpr5K2tNuXvWtrw9Vjz0uxktRapFh1uyf0yPHT0xneRrtXQZcH cMaw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t8si16476912pgu.259.2021.10.03.03.21.06; Sun, 03 Oct 2021 03:21:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230064AbhJCKUv (ORCPT + 99 others); Sun, 3 Oct 2021 06:20:51 -0400 Received: from verein.lst.de ([213.95.11.211]:38923 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229940AbhJCKUt (ORCPT ); Sun, 3 Oct 2021 06:20:49 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 1EEC368B05; Sun, 3 Oct 2021 12:18:58 +0200 (CEST) Date: Sun, 3 Oct 2021 12:18:57 +0200 From: Christoph Hellwig To: Sagi Grimberg Cc: Logan Gunthorpe , Keith Busch , Jens Axboe , Christoph Hellwig , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Stephen Bates , David Sloan , Martin Oliveira , Kanchan Joshi Subject: Re: [RFC PATCH] nvme: allow specific passthrough IOs without CAP_SYSADMIN Message-ID: <20211003101857.GA10943@lst.de> References: <20211001234017.4519-1-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 03, 2021 at 12:29:22PM +0300, Sagi Grimberg wrote: >> Users that want to send any of these passthrough commands will still >> require access to the NVMe char device or namespace. Typically, the >> char device is only accessible by root anyway and namespaces are >> accessible by root and the disk group. Administrators are free to >> add udev rules to adjust these permissions for specific devices they >> want to allow. > > I don't understand what is the difference between VS commands and normal > commands? Why do you consider VS commands safe to relax privileges as > opposed to any other command? They are different in that it is cometely undefine what they do. So relaxing that checks is an absolute non-starter while for simple things like Read it might be possible if we really care.