devfs
[Top] [All Lists]

Re: Default: insecure

To: <pjb@xxxxxxxxxxxxxxxxx>
Subject: Re: Default: insecure
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Thu, 20 Sep 2001 16:03:27 -0600
Cc: Robert.Siemer@xxxxxx, devfs@xxxxxxxxxxx
In-reply-to: <20010920212855.D7B7960634@thalassa.informatimago.com>
References: <200109201531.f8KFVbP02796@vindaloo.ras.ucalgary.ca> <20010920184715A.siemer@panorama.hadiko.de> <200109201702.f8KH2Lh03467@vindaloo.ras.ucalgary.ca> <20010920223240K.siemer@panorama.hadiko.de> <20010920212855.D7B7960634@thalassa.informatimago.com>
Sender: owner-devfs@xxxxxxxxxxx
Pascal Bourguignon writes:
> > From: Robert Siemer <Robert.Siemer@xxxxxx>
> > [...]
> > But how do you protect tape users from other users accessing their
> > tape during backup (... or just before)?
> 
> What about using flock on the tape devices? Wouldn't this work?

Not needed to protect against other openers (only one open at a time
is allowed). And flocks are lost when you close the file descriptor.
Also, flocks are advisory only (in general).

> On the other hand, if the tapes belong to their users, then the device
> should  be  assigned  to  the  proper  owner as  soon  as  a  tape  is
> (physically) mounted on  it. I don't know any mechanism  in unix to do
> that other than "chown $USER $TAPEDEVICE" before mounting the tape.
> 
> The question is: How do you assign a tape device to a user?

chown(2).

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>