From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 11 Jul 2011 03:24:33 +0100 From: Alasdair G Kergon Message-ID: <20110711022433.GD7857@agk-dp.fab.redhat.com> References: <4E19E3FD.9000805@tlinx.org> <20110710220815.GB7857@agk-dp.fab.redhat.com> <4E1A50C7.5090006@tlinx.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4E1A50C7.5090006@tlinx.org> Subject: Re: [linux-lvm] Bug! lvs shouldn't need 'root' access Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Linda A. Walsh" Cc: LVM general discussion and development On Sun, Jul 10, 2011 at 06:24:23PM -0700, Linda A. Walsh wrote: > Why is CAP_SYS_ADMIN needed to access a disk device when device > permissions > are already present for this? It is reading control information about the device, which is not the same as reading the device itself. A global CAP_SYS_ADMIN restriction is easy to implement and audit. Anything else increases complexity and security exposure and like I said, there's simply been hardly any demand to implement it - nor has there been demand for proper selinux integration. For now, configuring sudo is the closest you can get. Alasdair