diff options
author | chip <chip> | 2005-04-06 18:45:10 +0000 |
---|---|---|
committer | chip <chip> | 2005-04-06 18:45:10 +0000 |
commit | 442c362b033ff30be49e162db8a57d8e375a6f1f (patch) | |
tree | dc656dc8455b4d863c30b47c2ec40974baec07a9 /support/nfs | |
parent | 3a2c185ce46190b9f4712b2432297aa04f4bdd33 (diff) | |
download | nfs-utils-442c362b033ff30be49e162db8a57d8e375a6f1f.tar.gz nfs-utils-442c362b033ff30be49e162db8a57d8e375a6f1f.tar.xz nfs-utils-442c362b033ff30be49e162db8a57d8e375a6f1f.zip |
Support "acl" and "no_acl" export options.
Diffstat (limited to 'support/nfs')
-rw-r--r-- | support/nfs/exports.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/support/nfs/exports.c b/support/nfs/exports.c index c46c7a9..43e68b1 100644 --- a/support/nfs/exports.c +++ b/support/nfs/exports.c @@ -185,6 +185,8 @@ putexportent(struct exportent *ep) "no_" : ""); fprintf(fp, "%ssecure_locks,", (ep->e_flags & NFSEXP_NOAUTHNLM)? "in" : ""); + fprintf(fp, "%sacl,", (ep->e_flags & NFSEXP_NOACL)? + "no_" : ""); if (ep->e_flags & NFSEXP_FSID) { fprintf(fp, "fsid=%d,", ep->e_fsid); } @@ -374,6 +376,10 @@ parseopts(char *cp, struct exportent *ep, int warn) ep->e_flags &= ~NFSEXP_NOAUTHNLM; else if (strcmp(opt, "insecure_locks") == 0) ep->e_flags |= NFSEXP_NOAUTHNLM; + else if (strcmp(opt, "acl") == 0) + ep->e_flags &= ~NFSEXP_NOACL; + else if (strcmp(opt, "no_acl") == 0) + ep->e_flags |= NFSEXP_NOACL; else if (strncmp(opt, "mapping=", 8) == 0) ep->e_maptype = parsemaptype(opt+8); else if (strcmp(opt, "map_identity") == 0) /* old style */ |