Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261637AbUK2Jjk (ORCPT ); Mon, 29 Nov 2004 04:39:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261639AbUK2Jjk (ORCPT ); Mon, 29 Nov 2004 04:39:40 -0500 Received: from levante.wiggy.net ([195.85.225.139]:4051 "EHLO mx1.wiggy.net") by vger.kernel.org with ESMTP id S261637AbUK2Jji (ORCPT ); Mon, 29 Nov 2004 04:39:38 -0500 Date: Mon, 29 Nov 2004 10:39:38 +0100 From: Wichert Akkerman To: Jim Nelson Cc: linux-kernel@vger.kernel.org Subject: Re: Question about /dev/mem and /dev/kmem Message-ID: <20041129093937.GN31995@wiggy.net> Mail-Followup-To: Jim Nelson , linux-kernel@vger.kernel.org References: <41AA9E26.4070105@verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41AA9E26.4070105@verizon.net> User-Agent: Mutt/1.5.6+20040722i X-SA-Exim-Connect-IP: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 794 Lines: 19 Previously Jim Nelson wrote: > I was looking at some articles about rootkits on monolithic kernels, and > had a thought. Would a kernel config option to disable write access to > /dev/mem and /dev/kmem be a workable idea? Yes, but not a very useful one since it is an incomplete solution. You can easily do something better using /proc/kernel/cap-bound (like writing 0xFFFCFFFF into it). Wichert. -- Wichert Akkerman It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. - 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/