]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mountd/cache.c
Make mountd complain on unsupported uid mapping schemes
[nfs-utils.git] / utils / mountd / cache.c
index dcb5dac1369bc3621290f730fd3b3537d1115cd0..e8d42aea101d5ede54903a2c277ee6251661e92b 100644 (file)
@@ -377,6 +377,12 @@ int cache_export(nfs_export *exp)
        int err;
        FILE *f;
 
+       if (exp->m_export.e_maptype != CLE_MAP_IDENT) {
+               xlog(L_ERROR, "%s: unsupported mapping; kernel supports only 'identity' (default)",
+                   exp->m_export.m_path);
+               return;
+       }
+
        f = fopen("/proc/net/rpc/auth.unix.ip/channel", "w");
        if (!f)
                return -1;