Skip to content

nfsidmap: Allow admins to clean up id mappings that have failed

Steve Dickson linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nfsidmap: Allow all keys to clear on the keyringutils/nfsidmap/nfsidmap.c utils/nfsidmap/nfsidmap.man+69 -72 replies
2/2nfsidmap: Allow a particular key to be revoked.utils/nfsidmap/nfsidmap.c utils/nfsidmap/nfsidmap.man+99 -82 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] nfsidmap: Allow admins to clean up id mappings that have failed

In working with the new idmapper, it became very apparent that keys created from bad id mapping were very persistent and were not easy disposed of. Unlike with rpc.idmapd, to git rid of bad id mapping one just needed to restart the daemon.

So I've added some functionality to the nfsidmap command that will allow admins to:

- remove all the keys on the keyring.
- remove a particular key from the keying.

The intention is to allow admins a way to clean up the id name space when name resolution mechanisms, like NIS or LDAP, fail and leave a large number (or small number) of id mapping pointing to nobody.

Note, for the second patch to work, there need to be a small kernel patch that will change the per-key permissions to allow root to revoke them.

Steve Dickson (2):
nfsidmap: Allow all keys to clear on the keyring
nfsidmap: Allow a particular key to be revoked.

 utils/nfsidmap/nfsidmap.c   |  138 +++++++++++++++++++++++++++++++++++++++++--
 utils/nfsidmap/nfsidmap.man |   27 ++++++++-
 2 files changed, 159 insertions(+), 6 deletions(-)
Signature · 1 line
1.7.7