From: Pavel Machek <pavel@ucw.cz>
To: Dan Kegel <dank@kegel.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Relax permissions for reading hard drive serial number?
Date: Sun, 2 Dec 2007 14:15:35 +0000 [thread overview]
Message-ID: <20071202141535.GA4721@ucw.cz> (raw)
In-Reply-To: <a71bd89a0711290713w809db6fv933ee9d9744bab6c@mail.gmail.com>
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
prev parent reply other threads:[~2007-12-02 14:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 15:13 Relax permissions for reading hard drive serial number? Dan Kegel
2007-11-29 15:37 ` Xavier Bestel
2007-11-29 15:46 ` Dan Kegel
2007-11-29 17:39 ` Kay Sievers
2007-11-29 21:07 ` Bartlomiej Zolnierkiewicz
2007-12-02 16:43 ` Matti Aarnio
2007-12-02 18:45 ` Matti Aarnio
2007-12-04 12:06 ` Kyle Moffett
2007-12-02 14:15 ` Pavel Machek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071202141535.GA4721@ucw.cz \
--to=pavel@ucw.cz \
--cc=dank@kegel.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox