From: Karel Zatloukal <kamzik@dolly.vellum.cz>
To: "Albert D. Cahalan" <acahalan@cs.uml.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Announce: NFS-client & NIS-client UID/GID remapper
Date: Mon, 13 Nov 2000 06:35:59 +0100 [thread overview]
Message-ID: <20001113063559.A27820@dolly.vellum.cz> (raw)
In-Reply-To: <200011062121.eA6LLir27520@dolly.vellum.cz> <200011062321.eA6NLON235284@saturn.cs.uml.edu>
In-Reply-To: <200011062321.eA6NLON235284@saturn.cs.uml.edu>; from Albert D. Cahalan on Mon, Nov 06, 2000 at 06:21:24PM -0500
On Mon, Nov 06, 2000 at 06:21:24PM -0500, Albert D. Cahalan wrote:
>
> The UID/GID mapper should be sepatate from the regex rewriting rules.
This is already done - the code is independent, it is just written in the same
source file. Any problems from it?
> Both should be separate from NFS, because they have little to do with NFS.
> These are useful generic VFS features. It would be perfectly reasonable
> to use these features on a Zip disk with UFS (from MacOS X maybe).
Hmm... You are perfectly right, oops.
There is only a bit of technical detail how to set such mapping: Currently I'm
using the "struct nfs_mount_data" which can contain any passed id-mapping
table. When it would be filesystem-general, it would need different solution
("data" mount(2) argument is passed only as textstring, not as flexible
'struct' as in NFS case). Probably to pass it by ioctl() call after the
mount(2) call has been done.
OK, I've todolisted this better generic-VFS approach, thanks. B ut I'll
implement it with some delay (busy etc).
...
> The pathname remapper might best be done as a namespace operation
> similar to mounting.
...
> an exploitable /usr/bin/suidperl, I'd like to "mount" a new
> executable on top of that from /bin/good-suidperl to fix the hole.
Such pathname remapper may be nice but it IMHO doesn't correspond to any code
written for announced idmapper. This would be a nice but completely separate
feature. Just to clarify - I have previously written:
# As a feature it also supports general regex rewriting rules for NIS client (to
# enable adjusts like "/bin/ksh -> /bin/bash" etc.).
This has the purpose to change the NIS line itself to prevent such hacking as
simulating some /bin/ksh etc.
Karel Zatloukal
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
prev parent reply other threads:[~2000-11-13 5:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-06 21:21 Karel Zatloukal
2000-11-06 23:21 ` Albert D. Cahalan
2000-11-13 5:35 ` Karel Zatloukal [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=20001113063559.A27820@dolly.vellum.cz \
--to=kamzik@dolly.vellum.cz \
--cc=acahalan@cs.uml.edu \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®