All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Benno Schulenberg <bensberg@justemail.net>
Cc: "util-linux@vger.kernel.org" <util-linux@vger.kernel.org>
Subject: Re: mount.8: mtab as symlink
Date: Tue, 22 Jul 2014 01:49:36 +0200	[thread overview]
Message-ID: <20140721234936.GH17373@x2.net.home> (raw)
In-Reply-To: <1405981133.2561.144137253.6000B5B5@webmail.messagingengine.com>

On Tue, Jul 22, 2014 at 12:18:53AM +0200, Benno Schulenberg wrote:
> 
> On Mon, Jul 21, 2014, at 23:32, Bernhard Voelker wrote:
> > On 07/21/2014 11:16 PM, Benno Schulenberg wrote:
> > > So how does umount determine that a device was mounted by a user
> > > and thus that the user is alllowed to unmount it again?
> > 
> > man sys-utils/mount.8  # the new one! ;-)
> 
> :)  Ah, the man page is too big!
> 
> >    user   Allow  an  ordinary user to mount the filesystem.
> >           The name of the mounting user is written to mtab
> >           (or to the private libmount file in /run/mount on
> >           system without regular mtab) so that he can unmount
> >           the filesystem again.
> 
> There is no /run directory on my system.  So this probably means
> that this mechanism requires a minimum kernel version?  Or should
> that be /var/run/mount?

All this is userspace stuff only, if you don't have /run than it uses
old obsolete /dev/.mount/utab

> By the way, Karel, what are these 'helper=' and 'uhelper=' things
> that are mentioned in umount.8?  Shouldn't these be mentioned in
> mount.8 too, and more extensively? 

Not sure, it's implemented for very special purpose when udisks mount
a device that should be umounted again by udisks. I don't think we
want to do any advertisement for this functionality.

> But... how can uhelper ever
> be specified when a mountpoint isn't defined in /etc/fstab?

It's never specified in fstab, it's specified by udisks when it calls
mount(8).

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

  reply	other threads:[~2014-07-21 23:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-21  6:05 mount.8: mtab as symlink Bernhard Voelker
2014-07-21  8:28 ` Karel Zak
2014-07-21 21:16   ` Benno Schulenberg
2014-07-21 21:32     ` Bernhard Voelker
2014-07-21 22:18       ` Benno Schulenberg
2014-07-21 23:49         ` Karel Zak [this message]
2014-07-27 18:57           ` Benno Schulenberg
2014-07-29 10:21             ` Karel Zak
2014-07-29 19:41               ` helper= and uhelper= Benno Schulenberg
2014-07-30  7:26                 ` Karel Zak
2014-07-31 19:47                   ` Benno Schulenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140721234936.GH17373@x2.net.home \
    --to=kzak@redhat.com \
    --cc=bensberg@justemail.net \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.