diff options
author | J. Bruce Fields <bfields@redhat.com> | 2017-01-12 10:16:42 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2017-01-12 10:16:42 -0500 |
commit | 13e2f9577b88d44001b509e89122ad907805b250 (patch) | |
tree | 1a685945bfdfcaa1cd3f5674c65a63f2bbd2610b /utils/exportfs/exportfs.c | |
parent | 9e12e221ead6d869977b43a99e4a7d13a33d82ee (diff) | |
download | nfs-utils-13e2f9577b88d44001b509e89122ad907805b250.tar.gz nfs-utils-13e2f9577b88d44001b509e89122ad907805b250.tar.xz nfs-utils-13e2f9577b88d44001b509e89122ad907805b250.zip |
exportfs: support "security_label" export option
On recent kernels only exports with NFSEXP_SECURITY_LABEL set will
export security labels.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/exportfs/exportfs.c')
-rw-r--r-- | utils/exportfs/exportfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c index bacf106..61dddfb 100644 --- a/utils/exportfs/exportfs.c +++ b/utils/exportfs/exportfs.c @@ -707,6 +707,8 @@ dump(int verbose, int export_format) c = dumpopt(c, "insecure_locks"); if (ep->e_flags & NFSEXP_NOREADDIRPLUS) c = dumpopt(c, "nordirplus"); + if (ep->e_flags & NFSEXP_SECURITY_LABEL) + c = dumpopt(c, "security_label"); if (ep->e_flags & NFSEXP_NOACL) c = dumpopt(c, "no_acl"); if (ep->e_flags & NFSEXP_PNFS) |