Subject: Re: Partition tables (was: Re: Another changer, another changer
To: None <>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: current-users
Date: 10/14/1998 08:47:19
> struct diskaccess da[1];	/* contains a struct diskpart */
> da->disk="sd0";
> 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[012]? (root, /usr, etc).

					der Mouse

		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B