From: Steve French <smfrench@austin.rr.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: rddunlap@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: uid of user who mounts
Date: Sat, 31 Jul 2004 12:49:45 -0500 [thread overview]
Message-ID: <1091296185.2856.11.camel@smfhome1.smfdom> (raw)
In-Reply-To: <E1Bqxhg-0004pi-00@dorka.pomaz.szeredi.hu>
On Sat, 2004-07-31 at 19:31 +0200, Miklos Szeredi wrote:
> Steve French wrote:
> >
> > I confirmed what Randy had mantioned about the user= entries in mtab
> > allowing umounts (at least it works that way for a few of the local
> > filesystems I tried) but did not seem to work so well on other
> > filesystems - I had odd results on umounting my cifs mounts e.g. - after
> > adding at mount time "user=someuser" to /etc/mtab (by a minor change to
> > the mount helper mount.cifs.c, when running mount.cifs suid). umount of
> > those mounts failed
>
> I've seen failure to unmount only if there is no matching entry in
> /etc/fstab. It sounds a bit too much paranoia, but who knows.
>
> Miklos
This is getting hard to debug because the mount and umount that ship
with Fedora doesn't match the behavior of mount & umount current source
on kernel.org for the mount utils. What I have discovered so far is
that the failure in unmount is the check in sys_umount in fs/namespace.c
if (!capable(CAP_SYS_ADMIN))
which fails presumably because mount did not find a match in /etc/fstab
although I have tried various experiments and it looks like the umount
should have matched the /etc/mtab entry. My guess is that the matching
rules don't work very well for filesystems unless they specify either a
physical device or name (I had been specifying a UNC name as the device,
but am experimenting with having cifs use the nfs server:export format
to see if that will make umount happier).
next prev parent reply other threads:[~2004-07-31 17:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-31 2:05 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 [this message]
2004-07-31 18:12 ` Steve French
2004-07-31 19:11 ` Andries Brouwer
2004-07-31 19:43 ` Miklos Szeredi
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=1091296185.2856.11.camel@smfhome1.smfdom \
--to=smfrench@austin.rr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=rddunlap@osdl.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 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®