brintos

brintos / linux-shallow public Read only

0
0
Text · 2.4 KiB · a73ca37 Raw
80 lines · c
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */2/*3 * include/linux/nfsd/export.h4 * 5 * Public declarations for NFS exports. The definitions for the6 * syscall interface are in nfsctl.h7 *8 * Copyright (C) 1995-1997 Olaf Kirch <okir@monad.swb.de>9 */10 11#ifndef _UAPINFSD_EXPORT_H12#define _UAPINFSD_EXPORT_H13 14# include <linux/types.h>15 16/*17 * Important limits for the exports stuff.18 */19#define NFSCLNT_IDMAX		102420#define NFSCLNT_ADDRMAX		1621#define NFSCLNT_KEYMAX		3222 23/*24 * Export flags.25 *26 * Please update the expflags[] array in fs/nfsd/export.c when adding27 * a new flag.28 */29#define NFSEXP_READONLY		0x000130#define NFSEXP_INSECURE_PORT	0x000231#define NFSEXP_ROOTSQUASH	0x000432#define NFSEXP_ALLSQUASH	0x000833#define NFSEXP_ASYNC		0x001034#define NFSEXP_GATHERED_WRITES	0x002035#define NFSEXP_NOREADDIRPLUS    0x004036#define NFSEXP_SECURITY_LABEL	0x008037/* 0x100 currently unused */38#define NFSEXP_NOHIDE		0x020039#define NFSEXP_NOSUBTREECHECK	0x040040#define	NFSEXP_NOAUTHNLM	0x0800		/* Don't authenticate NLM requests - just trust */41#define NFSEXP_MSNFS		0x1000	/* do silly things that MS clients expect; no longer supported */42#define NFSEXP_FSID		0x200043#define	NFSEXP_CROSSMOUNT	0x400044#define	NFSEXP_NOACL		0x8000	/* reserved for possible ACL related use */45/*46 * The NFSEXP_V4ROOT flag causes the kernel to give access only to NFSv447 * clients, and only to the single directory that is the root of the48 * export; further lookup and readdir operations are treated as if every49 * subdirectory was a mountpoint, and ignored if they are not themselves50 * exported.  This is used by nfsd and mountd to construct the NFSv451 * pseudofilesystem, which provides access only to paths leading to each52 * exported filesystem.53 */54#define	NFSEXP_V4ROOT		0x1000055#define NFSEXP_PNFS		0x2000056 57/* All flags that we claim to support.  (Note we don't support NOACL.) */58#define NFSEXP_ALLFLAGS		0x3FEFF59 60/* The flags that may vary depending on security flavor: */61#define NFSEXP_SECINFO_FLAGS	(NFSEXP_READONLY | NFSEXP_ROOTSQUASH \62					| NFSEXP_ALLSQUASH \63					| NFSEXP_INSECURE_PORT)64 65/*66 * Transport layer security policies that are permitted to access67 * an export68 */69#define NFSEXP_XPRTSEC_NONE	0x000170#define NFSEXP_XPRTSEC_TLS	0x000271#define NFSEXP_XPRTSEC_MTLS	0x000472 73#define NFSEXP_XPRTSEC_NUM	(3)74 75#define NFSEXP_XPRTSEC_ALL	(NFSEXP_XPRTSEC_NONE | \76				 NFSEXP_XPRTSEC_TLS | \77				 NFSEXP_XPRTSEC_MTLS)78 79#endif /* _UAPINFSD_EXPORT_H */80