Re: 53C8XX /sys/devices/pci*/*/config revisited

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 15 May 2005, Arjan van de Ven wrote:

> 
> > if hal reads more than 64 bytes of config space (heck if it reads config
> > space at all) then it's terminally broken.
> 
> this brings up a bug in the kernel though....
> the config file is user readable! That's just plain dangerous and imo it
> should be a root-only file as a result.

The user can access only the first 64 bytes, but hald is apparently
meant to run as root so it can hack /etc/fstab for subfs file systems
and such. SUSE Linux 9.3 runs hald as root.

BTW, - note I have little clue of how PCI works - if the PCI
configuration space is only 64 bytes tall, then why the f* is the sysfs
.../config file listed as 256 bytes in the first place, even for root?

Relevant pointers to free copies of the PCI standard (the old 32 bit 33
MHz variant is sufficient) welcome, if such are available.

-- 
Matthias Andree
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux