All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: nonroot umount
@ 2006-07-11 22:56 Jim Dennis
  2006-07-11 23:12 ` Jeff Moyer
  0 siblings, 1 reply; 6+ messages in thread
From: Jim Dennis @ 2006-07-11 22:56 UTC (permalink / raw)
  To: autofs

 

On Date: Tue, 11 Jul 2006 08:39:01 -0400
Peter Staubach <staubach@redhat.com> wrote (in response to Marcos Diez
<marcos@unitron.com.br>):

> Marcos Diez wrote:

>> In a Unix desktop system automount is very practical for CDROMs, 
>> digital cameras, USB flash drives and any other type of removable
media.
>> But it is annoying to the unprivileged user to wait the timeout to 
>> remove the media.

> It seems to me that a better architected solution might be to tie in
the automounter with the eject(1) sort of command.

> It is not good for a user to have to know that he needs to zing the
automounter in order to remove his media.

>    Thanx...
>       ps

 So, perhaps we could send a patch to the maintainer of the eject
utility.  It could detect if the target is
 under an autofs and use this code in place of the ioctl() that it would
normally send to a CD-ROM or similar
 device.

 On my OpenSuSE system eject is already marked SUID/root, though it
doesn't seem the be the case for my RHEL4
 system nor on my Debian system.

 As usual I'd limit the risk of another SUID/root binary by marking the
executable mode 4550 and associating
 it with some relevant group (such as "console").  Thus only processes
running in the specified group can attempt
 to exploit any vulnerabilities in it.

 Question: how would one programmatically detect that a particular mount
point is being managed by an autofs process?

JDennis

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

end of thread, other threads:[~2006-07-11 23:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200607100726.k6A7Po1e029994@hera.kernel.org>
2006-07-10 23:26 ` nonroot umount Marcos Diez
2006-07-11 12:39   ` Peter Staubach
2006-07-11 13:47     ` Jeff Moyer
2006-07-11 14:09       ` Peter Staubach
2006-07-11 22:56 Jim Dennis
2006-07-11 23:12 ` Jeff Moyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.