Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762306AbXLRAQQ (ORCPT ); Mon, 17 Dec 2007 19:16:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760914AbXLRAPx (ORCPT ); Mon, 17 Dec 2007 19:15:53 -0500 Received: from www262.sakura.ne.jp ([202.181.97.72]:63529 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760157AbXLRAPw (ORCPT ); Mon, 17 Dec 2007 19:15:52 -0500 Message-Id: <200712180003.lBI03N7F092396@www262.sakura.ne.jp> Subject: Re: [patch 1/2] [RFC] Simple tamper-proof device filesystem. From: Tetsuo Handa To: "\"\\\"Serge E. Hallyn\\\"\"" Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Linux Containers MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-2022-JP" Content-Transfer-Encoding: 7bit Date: Tue, 18 Dec 2007 09:03:23 +0900 References: <20071216080441.435456586@I-love.SAKURA.ne.jp> <20071216080628.061470932@I-love.SAKURA.ne.jp> <200712161944.HEI26071.MOtOFLVHFSQFOJ@I-love.SAKURA.ne.jp> <200712161956.BJE32406.FOOHtQJLMFOSVF@I-love.SAKURA.ne.jp> <20071217194802.GA14156@sergelap.austin.ibm.com> In-Reply-To: <20071217194802.GA14156@sergelap.austin.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 780 Lines: 17 Hello. Serge E. Hallyn wrote: > CAP_MKNOD will be removed from its capability I think it is not enough because the root can rename/unlink device files (mv /dev/sda1 /dev/tmp; mv /dev/sda2 /dev/sda1; mv /dev/tmp /dev/sda2). > To use your approach, i guess we would have to use selinux (or tomoyo) > to enforce that devices may only be created under /dev? Everyone can use this filesystem alone. But use with MAC (or whatever access control mechanisms that prevent attackers from unmounting/overlaying this filesystem) is recomennded. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/