diff options
author | neilbrown <neilbrown> | 2000-02-04 03:34:35 +0000 |
---|---|---|
committer | neilbrown <neilbrown> | 2000-02-04 03:34:35 +0000 |
commit | c0e89b264fb01c5b4bb925b32d1b6b7764c44d4a (patch) | |
tree | 0477c8518fb801df159fe21f8b535c0be072c492 /support | |
parent | d6a3885164e3c58e355feb4a7b94176ae127343d (diff) | |
download | nfs-utils-c0e89b264fb01c5b4bb925b32d1b6b7764c44d4a.tar.gz nfs-utils-c0e89b264fb01c5b4bb925b32d1b6b7764c44d4a.tar.xz nfs-utils-c0e89b264fb01c5b4bb925b32d1b6b7764c44d4a.zip |
Support for NFSEXP_NOAUTHNLM introduced in 2.3.42
Diffstat (limited to 'support')
-rw-r--r-- | support/include/nfs/export.h | 4 | ||||
-rw-r--r-- | support/nfs/exports.c | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/support/include/nfs/export.h b/support/include/nfs/export.h index cc88f0f..57b0371 100644 --- a/support/include/nfs/export.h +++ b/support/include/nfs/export.h @@ -21,8 +21,8 @@ #define NFSEXP_KERBEROS 0x0080 /* not available */ #define NFSEXP_SUNSECURE 0x0100 #define NFSEXP_CROSSMNT 0x0200 - #define NFSEXP_NOSUBTREECHECK 0x0400 -#define NFSEXP_ALLFLAGS 0x07FF +#define NFSEXP_NOAUTHNLM 0x0800 +#define NFSEXP_ALLFLAGS 0x0FFF #endif /* _NSF_EXPORT_H */ diff --git a/support/nfs/exports.c b/support/nfs/exports.c index 078c806..71420c8 100644 --- a/support/nfs/exports.c +++ b/support/nfs/exports.c @@ -151,6 +151,8 @@ putexportent(struct exportent *ep) "" : "no_"); fprintf(fp, "%ssubtree_check,", (ep->e_flags & NFSEXP_NOSUBTREECHECK)? "no_" : ""); + fprintf(fp, "%ssecure_locks,", (ep->e_flags & NFSEXP_NOAUTHNLM)? + "in" : ""); fprintf(fp, "mapping="); switch (ep->e_maptype) { @@ -307,6 +309,14 @@ parseopts(char *cp, struct exportent *ep) ep->e_flags &= ~NFSEXP_NOSUBTREECHECK; else if (strcmp(opt, "no_subtree_check") == 0) ep->e_flags |= NFSEXP_NOSUBTREECHECK; + else if (strcmp(opt, "auth_nlm") == 0) + ep->e_flags &= ~NFSEXP_NOAUTHNLM; + else if (strcmp(opt, "no_auth_nlm") == 0) + ep->e_flags |= NFSEXP_NOAUTHNLM; + else if (strcmp(opt, "secure_locks") == 0) + ep->e_flags &= ~NFSEXP_NOAUTHNLM; + else if (strcmp(opt, "insecure_locks") == 0) + ep->e_flags |= NFSEXP_NOAUTHNLM; else if (strncmp(opt, "mapping=", 8) == 0) ep->e_maptype = parsemaptype(opt+8); else if (strcmp(opt, "map_identity") == 0) /* old style */ |