Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755597AbXLBOPy (ORCPT ); Sun, 2 Dec 2007 09:15:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754049AbXLBOPq (ORCPT ); Sun, 2 Dec 2007 09:15:46 -0500 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:4531 "EHLO spitz.ucw.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753503AbXLBOPp (ORCPT ); Sun, 2 Dec 2007 09:15:45 -0500 Date: Sun, 2 Dec 2007 14:15:35 +0000 From: Pavel Machek To: Dan Kegel Cc: linux-kernel@vger.kernel.org Subject: Re: Relax permissions for reading hard drive serial number? Message-ID: <20071202141535.GA4721@ucw.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1503 Lines: 36 Hi! > http://marc.info/?l=linux-kernel&m=96836765403118&w=2, Linus wrote: > > Hmm.. I have this feeling that it would be much nicer to > > just implement the NT system calls directly. > > ... > > I wouldn't be adverse to supporting Wine better... > > A few years on, Wine has matured to the point where it's > ready to run quite a few apps, even some protected by Safedisc. > One sticking point is that apps like Photoshop and probably > Punkbuster want to retrieve the hard drive's serial number, > but Linux restricts access to that info: > $ ls -l /proc/ide/hda/identify > -r-------- 1 root root 0 2007-11-29 07:05 /proc/ide/hda/identify > (And even if /proc/ide goes away, the other ways of retrieving > this info are similarly restricted to root.) > > Any reason the access control on this info shouldn't be eased a bit, > e.g. make /proc/ide/*/identify be mode 444? I think conslusion was 'unchangeable machine ids are root-only'. But perhaps you can chmod in startup scripts? > An alternative might be for Wine to simply fake the serial number, > but I would like to avoid that if possible. Fake it, I'd say. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/