]> git.decadent.org.uk Git - nfs-utils.git/blob - debian/patches/05-refuse-non-ident-maptypes.patch
Imported Debian patch 1.0.10-6~quilt.1
[nfs-utils.git] / debian / patches / 05-refuse-non-ident-maptypes.patch
1 Index: nfs-utils-1.0.10/utils/mountd/cache.c
2 ===================================================================
3 --- nfs-utils-1.0.10.orig/utils/mountd/cache.c
4 +++ nfs-utils-1.0.10/utils/mountd/cache.c
5 @@ -381,6 +381,12 @@ void cache_export(nfs_export *exp)
6  {
7         FILE *f;
8  
9 +       if (exp->m_export.e_maptype != CLE_MAP_IDENT) {
10 +               xlog(L_ERROR, "%s: unsupported mapping; kernel supports only 'identity' (default)",
11 +                   exp->m_export.m_path);
12 +               return;
13 +       }
14 +
15         f = fopen("/proc/net/rpc/auth.unix.ip/channel", "w");
16         if (!f)
17                 return;