From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753331Ab1KGTSy (ORCPT ); Mon, 7 Nov 2011 14:18:54 -0500 Received: from terminus.zytor.com ([198.137.202.10]:44506 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752491Ab1KGTSx (ORCPT ); Mon, 7 Nov 2011 14:18:53 -0500 Message-ID: <4EB82F08.8060209@zytor.com> Date: Mon, 07 Nov 2011 11:18:32 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 MIME-Version: 1.0 To: Vasiliy Kulikov CC: Valdis.Kletnieks@vt.edu, linux-kernel@vger.kernel.org, Alexey Dobriyan , Andrew Morton , linux-security-module@vger.kernel.org, Linus Torvalds , kernel-hardening@lists.openwall.com Subject: Re: [PATCH] proc: restrict access to /proc/interrupts References: <20111107174522.GA2317@albatros> <9718.1320689192@turing-police.cc.vt.edu> <20111107190112.GA3732@albatros> In-Reply-To: <20111107190112.GA3732@albatros> X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/07/2011 11:01 AM, Vasiliy Kulikov wrote: > > What's wrong with old good DAC? You can create a group "sysinfo", do > "chown sysinfo /proc/interrupts", and add the permitted users to the > group. If you need to give different access levels to different interrupts, > you need another /proc/interrupts design, it does nothing with DAC vs. LSM. > I would like to propose that we add a mount option to procfs, and possibly sysfs, called, say, admingrp. These kinds of files then get restricted to the admingrp (defaulting to gid 0 if no admingrp is provided). Historically on Unix there has been a group of people (usually "adm", but sometimes "log") who are allowed to read (but not write) the log files, which also contains potentially sensitive information. The current Linux trend seems to be do instead force those users to become root constantly, which is *not* helping the situation. -hpa