All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stefan (metze) Metzmacher" <metze@samba.org>
To: Jeff Layton <jlayton@samba.org>
Cc: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org
Subject: Re: [PATCH v2 0/5] cifs-utils: plugin interface for SID to UID/GID mapping
Date: Tue, 18 Dec 2012 15:45:17 +0100	[thread overview]
Message-ID: <50D0817D.5040508@samba.org> (raw)
In-Reply-To: <1355839848-24118-1-git-send-email-jlayton@samba.org>

[-- Attachment #1: Type: text/plain, Size: 2535 bytes --]

Hi Jeff,

I didn't look at the whole patchset in detail, but I think
such a new API should support IDMAP_BOTH, which means that
a sid can resolve into a uid and a gid at the same time.

This is very important as it allows groups to own files
e.g. BUILTIN\Administrators is likely to be the owner of a lot
of files. And it's the only way to support the 'sIDHistory' for users.

metze

> This is the second official posting for the plugin interface. Major
> changes since the last set are:
> 
> 1/ There's a header file now that plugin implementers are expected to use
> 
> 2/ New manpage for idmapwb.so and cleanups to the existing manpages to
>    discuss plugin configuration
> 
> 3/ Better handling for the plugin_errmsg variable. A pointer to the
>    pointer is passed into the init_plugin routine, which allows the
>    setting of it in the context.
> 
> With this, I think I'm pretty close to something mergeable, but
> comments and review are still appreciated.
> 
> Jeff Layton (5):
>   cifs-utils: struct cifs_sid definition to new cifsidmap.h header
>   cifs-utils: new plugin architecture for ID mapping code
>   cifs-utils: convert setcifsacl to use the plugin interface
>   cifs-utils: convert cifs.idmap to use plugin interface
>   cifs-utils: add a manpage for idmapwb
> 
>  Makefile.am                     |  37 ++++--
>  cifs.idmap.8.in                 |  22 ++--
>  cifs.idmap.c                    |  93 +++++++--------
>  cifsacl.h                       |  12 +-
>  cifsidmap.h                     | 161 ++++++++++++++++++++++++++
>  configure.ac                    |  10 ++
>  getcifsacl.1 => getcifsacl.1.in |   5 +-
>  getcifsacl.c                    |  98 +++++++---------
>  idmap_plugin.c                  | 160 ++++++++++++++++++++++++++
>  idmap_plugin.h                  |  61 ++++++++++
>  idmapwb.8.in                    | 148 ++++++++++++++++++++++++
>  idmapwb.c                       | 242 ++++++++++++++++++++++++++++++++++++++++
>  idmapwb.pod                     |  26 +++++
>  setcifsacl.1 => setcifsacl.1.in |   6 +-
>  setcifsacl.c                    |  70 +++---------
>  15 files changed, 952 insertions(+), 199 deletions(-)
>  create mode 100644 cifsidmap.h
>  rename getcifsacl.1 => getcifsacl.1.in (87%)
>  create mode 100644 idmap_plugin.c
>  create mode 100644 idmap_plugin.h
>  create mode 100644 idmapwb.8.in
>  create mode 100644 idmapwb.c
>  create mode 100644 idmapwb.pod
>  rename setcifsacl.1 => setcifsacl.1.in (91%)
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 261 bytes --]

  parent reply	other threads:[~2012-12-18 14:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-18 14:10 [PATCH v2 0/5] cifs-utils: plugin interface for SID to UID/GID mapping Jeff Layton
     [not found] ` <1355839848-24118-1-git-send-email-jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-12-18 14:10   ` [PATCH v2 1/5] cifs-utils: struct cifs_sid definition to new cifsidmap.h header Jeff Layton
2012-12-18 14:10   ` [PATCH v2 2/5] cifs-utils: new plugin architecture for ID mapping code Jeff Layton
     [not found]     ` <1355839848-24118-3-git-send-email-jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-12-18 14:20       ` Jeff Layton
2012-12-18 14:10   ` [PATCH v2 3/5] cifs-utils: convert setcifsacl to use the plugin interface Jeff Layton
2012-12-18 14:10   ` [PATCH v2 4/5] cifs-utils: convert cifs.idmap to use " Jeff Layton
2012-12-18 14:10   ` [PATCH v2 5/5] cifs-utils: add a manpage for idmapwb Jeff Layton
2012-12-18 14:45 ` Stefan (metze) Metzmacher [this message]
     [not found]   ` <50D0817D.5040508-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-12-18 15:04     ` [PATCH v2 0/5] cifs-utils: plugin interface for SID to UID/GID mapping Jeff Layton

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=50D0817D.5040508@samba.org \
    --to=metze@samba.org \
    --cc=jlayton@samba.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=samba-technical@lists.samba.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.