Print this page
Updated wording
5032 share_nfs(1m): Documentation for "noaclfab" is needed


   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2016 Nexenta Systems, Inc.  All rights reserved.
  24  * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.

  25  */
  26 
  27 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 #ifndef _NFS_EXPORT_H
  31 #define _NFS_EXPORT_H
  32 
  33 #include <nfs/nfs_sec.h>
  34 #include <nfs/auth.h>
  35 #include <sys/vnode.h>
  36 #include <nfs/nfs4.h>
  37 #include <sys/kiconv.h>
  38 #include <sys/avl.h>
  39 
  40 #ifdef  __cplusplus
  41 extern "C" {
  42 #endif
  43 
  44 /*


 168  */
 169 
 170 #define EX_NOSUID       0x01    /* exported with unsetable set[ug]ids */
 171 #define EX_ACLOK        0x02    /* exported with maximal access if acl exists */
 172 #define EX_PUBLIC       0x04    /* exported with public filehandle */
 173 #define EX_NOSUB        0x08    /* no nfs_getfh or MCL below export point */
 174 #define EX_INDEX        0x10    /* exported with index file specified */
 175 #define EX_LOG          0x20    /* logging enabled */
 176 #define EX_LOG_ALLOPS   0x40    /* logging of all RPC operations enabled */
 177                                 /* by default only operations which affect */
 178                                 /* transaction logging are enabled */
 179 #define EX_PSEUDO       0x80    /* pseudo filesystem export */
 180 #ifdef VOLATILE_FH_TEST
 181 #define EX_VOLFH        0x100   /* XXX nfsv4 fh may expire anytime */
 182 #define EX_VOLRNM       0x200   /* XXX nfsv4 fh expire at rename */
 183 #define EX_VOLMIG       0x400   /* XXX nfsv4 fh expire at migration */
 184 #define EX_NOEXPOPEN    0x800   /* XXX nfsv4 fh no expire with open */
 185 #endif /* VOLATILE_FH_TEST */
 186 
 187 #define EX_CHARMAP      0x1000  /* NFS may need a character set conversion */
 188 #define EX_NOACLFAB     0x2000  /* If set, NFSv2 and v3 servers doesn't */
 189                                 /* fabricate ACL for VOP_GETSECATTR OTW call */

 190 
 191 #ifdef  _KERNEL
 192 
 193 #define RPC_IDEMPOTENT  0x1     /* idempotent or not */
 194 /*
 195  * Be very careful about which NFS procedures get the RPC_ALLOWANON bit.
 196  * Right now, if this bit is on, we ignore the results of per NFS request
 197  * access control.
 198  */
 199 #define RPC_ALLOWANON   0x2     /* allow anonymous access */
 200 #define RPC_MAPRESP     0x4     /* use mapped response buffer */
 201 #define RPC_AVOIDWORK   0x8     /* do work avoidance for dups */
 202 #define RPC_PUBLICFH_OK 0x10    /* allow use of public filehandle */
 203 
 204 /*
 205  * RPC_ALL is an or of all above bits to be used with "don't care"
 206  * nfsv4 ops. The flags of an nfsv4 request is the bit-AND of the
 207  * per-op flags.
 208  */
 209 #define RPC_ALL (RPC_IDEMPOTENT|RPC_ALLOWANON|RPC_AVOIDWORK|RPC_PUBLICFH_OK)




   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2016 Nexenta Systems, Inc.  All rights reserved.
  24  * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  25  * Copyright 2016 Jason King.
  26  */
  27 
  28 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  29 /*        All Rights Reserved   */
  30 
  31 #ifndef _NFS_EXPORT_H
  32 #define _NFS_EXPORT_H
  33 
  34 #include <nfs/nfs_sec.h>
  35 #include <nfs/auth.h>
  36 #include <sys/vnode.h>
  37 #include <nfs/nfs4.h>
  38 #include <sys/kiconv.h>
  39 #include <sys/avl.h>
  40 
  41 #ifdef  __cplusplus
  42 extern "C" {
  43 #endif
  44 
  45 /*


 169  */
 170 
 171 #define EX_NOSUID       0x01    /* exported with unsetable set[ug]ids */
 172 #define EX_ACLOK        0x02    /* exported with maximal access if acl exists */
 173 #define EX_PUBLIC       0x04    /* exported with public filehandle */
 174 #define EX_NOSUB        0x08    /* no nfs_getfh or MCL below export point */
 175 #define EX_INDEX        0x10    /* exported with index file specified */
 176 #define EX_LOG          0x20    /* logging enabled */
 177 #define EX_LOG_ALLOPS   0x40    /* logging of all RPC operations enabled */
 178                                 /* by default only operations which affect */
 179                                 /* transaction logging are enabled */
 180 #define EX_PSEUDO       0x80    /* pseudo filesystem export */
 181 #ifdef VOLATILE_FH_TEST
 182 #define EX_VOLFH        0x100   /* XXX nfsv4 fh may expire anytime */
 183 #define EX_VOLRNM       0x200   /* XXX nfsv4 fh expire at rename */
 184 #define EX_VOLMIG       0x400   /* XXX nfsv4 fh expire at migration */
 185 #define EX_NOEXPOPEN    0x800   /* XXX nfsv4 fh no expire with open */
 186 #endif /* VOLATILE_FH_TEST */
 187 
 188 #define EX_CHARMAP      0x1000  /* NFS may need a character set conversion */
 189 #define EX_NOACLFAB     0x2000  /* If set, NFSv2 and v3 servers won't */
 190                                 /* fabricate an aclent_t ACL on file systems */
 191                                 /* that don't support aclent_t ACLs */
 192 
 193 #ifdef  _KERNEL
 194 
 195 #define RPC_IDEMPOTENT  0x1     /* idempotent or not */
 196 /*
 197  * Be very careful about which NFS procedures get the RPC_ALLOWANON bit.
 198  * Right now, if this bit is on, we ignore the results of per NFS request
 199  * access control.
 200  */
 201 #define RPC_ALLOWANON   0x2     /* allow anonymous access */
 202 #define RPC_MAPRESP     0x4     /* use mapped response buffer */
 203 #define RPC_AVOIDWORK   0x8     /* do work avoidance for dups */
 204 #define RPC_PUBLICFH_OK 0x10    /* allow use of public filehandle */
 205 
 206 /*
 207  * RPC_ALL is an or of all above bits to be used with "don't care"
 208  * nfsv4 ops. The flags of an nfsv4 request is the bit-AND of the
 209  * per-op flags.
 210  */
 211 #define RPC_ALL (RPC_IDEMPOTENT|RPC_ALLOWANON|RPC_AVOIDWORK|RPC_PUBLICFH_OK)