On Fri, 14 Jul 2000, Bruce McCulley <[EMAIL PROTECTED]> wrote:
> Funny you should mention it...
> 
> Anyone know how can I read the PIII CPU id from within Linux?
> 
> I'm at this very moment working on porting a security application to Linux.  I
> need to be able to access as much information as possible to identify the
> environment, and the CPU id would be a great advantage to be able to tell the
> bad guys from the good guys.


Do motherboards commonly have a unique ID?

What I am confused about is what the hostid(1) / gethostid(3c) is doing
on Solaris to get a unique identifier on x86. Is it faking it or is it
real?


# man gethostid
Reformatting page.  Please Wait... done

Standard C Library Functions                        gethostid(3C)

NAME
     gethostid - get unique identifier of current host

SYNOPSIS
     #include <unistd.h>

     long gethostid(void);

DESCRIPTION
     The gethostid() function returns the 32-bit  identifier  for
     the  current  host, which should be unique across all hosts.
     This number is usually taken from the CPU board's ID PROM.

SEE ALSO
     hostid(1), sysinfo(2)

SunOS 5.8           Last change: 12 Feb 1993                    1




Linux has a gethostid(3c) (and on Redhat 4.2 there was even a /usr/bin/hostid!)

Maybe it is all faked on Intel, but on other arches (e.g sparc, alpha)
perhaps it is something on the board... Anyone know?


Karl Runge


**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to