Subject: Re: Partition tables (was: Re: Another changer, another changer
To: None <email@example.com>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 10/14/1998 08:47:19
> struct diskaccess da; /* contains a struct diskpart */
> fd=open("/dev/diskpart", O_RDWR)
> ioctl(fd, DKIOCGDTAB, &da);
> and the diskpart driver would automagically handle the routing.
The first problem that comes to mind with this is that it means that
anyone who can open /dev/diskpart for read or write can read or write
*any* disk's partition table.
I can easily see myself wanting to give random users the ability to
frob the partition table on /dev/sd3? (the zip drive) but being not
about to let them do likewise with sd? (root, /usr, etc).
7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B