public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: worley@alum.mit.edu (Dale R. Worley)
To: Andy Lutomirski <luto@amacapital.net>
Cc: util-linux@vger.kernel.org
Subject: Re: getting rid of "mount: only root can ..."
Date: Mon, 5 May 2014 18:50:49 -0400	[thread overview]
Message-ID: <201405052250.s45Monxm008110@hobgoblin.ariadne.com> (raw)
In-Reply-To: <CALCETrUU6ziKYA3RSb_6nEW4HyeR5BLGQ_3SgcnnnLnBX1us0g@mail.gmail.com> (luto@amacapital.net)

> From: Andy Lutomirski <luto@amacapital.net>

> What if mount determined that the requested option wasn't allowed by
> fstab and instead fell back to dropping privileges and trying anyway?

I'm not envisioning the problem that you're addressing very well.

What I was thinking is that, in the best of all worlds, if mount
doesn't permit the requested operation, it should correctly report the
test that failed.  For instance, sometimes only root may perform the
operation, and so mount should say

 "mount: only root can ..."

But if members of group 'foo' are permitted, then it should say

 "mount: only members of 'foo' and root can ..."

etc.

Dale

  reply	other threads:[~2014-05-05 22:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-01 23:37 getting rid of "mount: only root can ..." Andy Lutomirski
2014-05-02 22:21 ` Dale R. Worley
2014-05-02 22:36   ` Andy Lutomirski
2014-05-05 22:50     ` Dale R. Worley [this message]
2014-05-05 22:58       ` Andy Lutomirski
2014-05-06  9:46         ` Karel Zak
2014-05-06 13:50           ` Dale R. Worley
2014-05-06 15:38             ` Andy Lutomirski
2014-05-08 21:01               ` Dale R. Worley

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=201405052250.s45Monxm008110@hobgoblin.ariadne.com \
    --to=worley@alum.mit.edu \
    --cc=luto@amacapital.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox