Skip to content

Commit

Permalink
nfs: Do not try to use idmap for sec=mariux
Browse files Browse the repository at this point in the history
Currently, operations which send uid or gid attributes (e.g. chgrp) try
to use idmap which results warnings like "Request-key: Cannot find
command to construct key 322998654" in the syslog, because we don't have
id_resolver configured in /etc/requesst-key.conf.

When the idmap operation fails, the uid of gid are send numerical, so
there is no problem aside from the log message.

Allow idmapping to be disabled for RPC_AITH_MARIUX just as for
RPC_AUTH_UNIX.
  • Loading branch information
donald committed Jan 18, 2023
1 parent 3ee3852 commit 5665b35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/nfs/nfs4client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,8 +1089,9 @@ static int nfs4_server_common_setup(struct nfs_server *server,
* Don't use NFS uid/gid mapping if we're using AUTH_SYS or lower
* authentication.
*/
if (nfs4_disable_idmapping &&
server->client->cl_auth->au_flavor == RPC_AUTH_UNIX)
if (nfs4_disable_idmapping && (
server->client->cl_auth->au_flavor == RPC_AUTH_UNIX
|| server->client->cl_auth->au_flavor == RPC_AUTH_MARIUX ))
server->caps |= NFS_CAP_UIDGID_NOMAP;


Expand Down

0 comments on commit 5665b35

Please sign in to comment.