From: Linda Walsh <lkml@tlinx.org>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: Re: Utilities don't take into account capabilities
Date: Thu, 21 Aug 2014 17:38:15 -0700 [thread overview]
Message-ID: <53F690F7.10200@tlinx.org> (raw)
In-Reply-To: <20140819090737.GA22187@x2.net.home>
Karel Zak wrote:
> The currently supported scenario is that you can remove suid from
> mount(8) and replace it with cap_dac_override,cap_sys_admin+ep. Note
> that in this case mount(8) still requires 'user' in fstab of course.
>
---
Is this planned, as the source I looked at still had uid==0 checks.
>
> The disadvantage is that mount(8) is not able to update for example
> /etc/mtab (or /run/mount/utab), because cap_sys_admin is just subset of
> the original suid privileges.
This does point out an important issue -- should things like
cap_sys_admin also allow updating of run/mount/utab? I would say "maybe":
Updating /etc/mtab -- IF it is a separate file system object would
require write access to the file. That could be handled with an ACL, or
CAP_DAC_OVERRIDE. But the former "/run/mount/utab" -- isn't that a kernel
based file? I.e. a pointer to /proc/self/mounts? Either way -- if it is
a separate file, then it would be updated based on access and privilege,
but if it is a representation of kernel state, then it seems CAP_SYS_ADMIN
would be sufficient, no?
Linda
prev parent reply other threads:[~2014-08-22 0:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-16 21:57 Utilities don't take into account capabilities Steven Stewart-Gallus
2014-08-17 20:54 ` Linda Walsh
2014-08-18 0:57 ` Steven Stewart-Gallus
2014-08-18 1:23 ` Linda Walsh
2014-08-18 14:47 ` Dale R. Worley
2014-08-18 19:19 ` Linda Walsh
2014-08-18 21:57 ` Dale R. Worley
2014-08-18 12:05 ` Mike Frysinger
2014-08-18 17:40 ` Steven Stewart-Gallus
2014-08-19 9:07 ` Karel Zak
2014-08-19 21:54 ` Steven Stewart-Gallus
2014-08-22 0:38 ` Linda Walsh [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=53F690F7.10200@tlinx.org \
--to=lkml@tlinx.org \
--cc=kzak@redhat.com \
--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.