mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* uid of user who mounts
@ 2004-07-31  2:05 Steve French
  2004-07-31  2:08 ` Randy.Dunlap
  0 siblings, 1 reply; 10+ messages in thread
From: Steve French @ 2004-07-31  2:05 UTC (permalink / raw)
  To: linux-kernel

To allow user unmounts of cifs shares (much like the setuid smbumount
utility allows for smbfs), it has been suggested that the cifs vfs could
return the uid of the mounter in /proc/mounts  This would avoid having
to add an ioctl (as smbfs did) and seems as secure as the ioctl approach
(to get the uid of the original mounter).

If user mounts are allowed, is there any worse security exposure in
letting the tool check the uid who mounted via /proc/mounts (to allow
user unmount).   

Is there any precedent for the name for the name of such a parm?  I was
thinking of "mnt_uid" since simply using "uid=" would seem to overload
the meaning of "uid", which is already used as a mount parm by various
filesystems to signify the default uid for files ( ie in the cifs case
when mounting to Windows - and Unix CIFS protocol extensions are not
enabled) and it is not always the case that the default uid for files
would be the same as the uid of the person who mounted.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-07-31 19:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-31  2:05 uid of user who mounts Steve French
2004-07-31  2:08 ` Randy.Dunlap
2004-07-31  3:34   ` Steve French
2004-07-31  9:35     ` Miklos Szeredi
2004-07-31 15:21       ` Steve French
2004-07-31 17:31         ` Miklos Szeredi
2004-07-31 17:49           ` Steve French
2004-07-31 18:12         ` Steve French
2004-07-31 19:11         ` Andries Brouwer
2004-07-31 19:43           ` Miklos Szeredi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®