I am trying to write a simple suid mount/umount utility which will allow
me to mount/unmount cdroms/floppies without becoming root. (I'm the only
one who uses the computer, and I'm not hooked up to a network of any sort,
so security is not a problem.)
Doing a man mount gives the prototypes They are:
int mount(const char *specialfile, const char * dir ,
const char * filesystemtype, unsigned long rwflag , const
void * data);
int umount(const char *specialfile);
The parameters specialfile, dir, and filesystemtype are quite self-
explainatory, as is the parameter rwflag (I assume 1=rw, 0=ro?). But the
const void * data parameter, I have no idea what it is used for. The man
page gives no clue; taking a peek at <sys/mount.h> is no more revealing.
So, I ask you, what is this parameter used for????
Thanks,
/sj/
Scott Johnson -- Graduate Slave, ECE Department, Oregon State University
Check out my new (but unfinished) Web page--http://www.ece.orst.edu/~johnsos
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I bet the Klan wishes they had thought of PC-bashing decades ago...it
makes blatant racism so acceptable.
-Steve Roby