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, kzak@redhat.com
Subject: Re: getting rid of "mount: only root can ..."
Date: Thu, 8 May 2014 17:01:10 -0400	[thread overview]
Message-ID: <201405082101.s48L1AYa030864@hobgoblin.ariadne.com> (raw)
In-Reply-To: <CALCETrUBTf=Wyz76Y3T=2CXqtKNhgK1YVgmBv1mEh85mNt4MKA@mail.gmail.com> (luto@amacapital.net)

> From: Andy Lutomirski <luto@amacapital.net>
> 
> A kind of hackish solution would be for mount --nopriv or whatever to drop
> privileges immediately and stop enforcing any policy at all.

Given what Karel has said, I'm not sure that would give the correct
behavior:

    The problem is that mount(8) is not just about mount(2) call only. If
    we drop privileges then mount(8) will report problems with things like
    FS detection, loopdevs setups, etc. It's necessary to review the code
    and make errors/warnings somehow usable.

Dale

      reply	other threads:[~2014-05-08 21:01 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
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 [this message]

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=201405082101.s48L1AYa030864@hobgoblin.ariadne.com \
    --to=worley@alum.mit.edu \
    --cc=kzak@redhat.com \
    --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