Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 2 | /* |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 3 | * Process version 3 NFSACL requests. |
| 4 | * |
| 5 | * Copyright (C) 2002-2003 Andreas Gruenbacher <agruen@suse.de> |
| 6 | */ |
| 7 | |
Boaz Harrosh | 9a74af2 | 2009-12-03 20:30:56 +0200 | [diff] [blame] | 8 | #include "nfsd.h" |
| 9 | /* FIXME: nfsacl.h is a broken header */ |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 10 | #include <linux/nfsacl.h> |
Tejun Heo | 5a0e3ad | 2010-03-24 17:04:11 +0900 | [diff] [blame] | 11 | #include <linux/gfp.h> |
Boaz Harrosh | 9a74af2 | 2009-12-03 20:30:56 +0200 | [diff] [blame] | 12 | #include "cache.h" |
| 13 | #include "xdr3.h" |
J. Bruce Fields | 0a3adad | 2009-11-04 18:12:35 -0500 | [diff] [blame] | 14 | #include "vfs.h" |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 15 | |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 16 | /* |
| 17 | * NULL call. |
| 18 | */ |
Al Viro | 7111c66 | 2006-10-19 23:28:45 -0700 | [diff] [blame] | 19 | static __be32 |
Christoph Hellwig | a6beb73 | 2017-05-08 17:35:49 +0200 | [diff] [blame] | 20 | nfsd3_proc_null(struct svc_rqst *rqstp) |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 21 | { |
Chuck Lever | cc028a1 | 2020-10-02 15:52:44 -0400 | [diff] [blame] | 22 | return rpc_success; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | /* |
| 26 | * Get the Access and/or Default ACL of a file. |
| 27 | */ |
Christoph Hellwig | a6beb73 | 2017-05-08 17:35:49 +0200 | [diff] [blame] | 28 | static __be32 nfsd3_proc_getacl(struct svc_rqst *rqstp) |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 29 | { |
Christoph Hellwig | a6beb73 | 2017-05-08 17:35:49 +0200 | [diff] [blame] | 30 | struct nfsd3_getaclargs *argp = rqstp->rq_argp; |
| 31 | struct nfsd3_getaclres *resp = rqstp->rq_resp; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 32 | struct posix_acl *acl; |
Christoph Hellwig | 4ac7249 | 2013-12-20 05:16:55 -0800 | [diff] [blame] | 33 | struct inode *inode; |
| 34 | svc_fh *fh; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 35 | |
| 36 | fh = fh_copy(&resp->fh, &argp->fh); |
Chuck Lever | 14168d6 | 2020-10-01 18:59:54 -0400 | [diff] [blame] | 37 | resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); |
| 38 | if (resp->status != nfs_ok) |
| 39 | goto out; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 40 | |
David Howells | 2b0143b | 2015-03-17 22:25:59 +0000 | [diff] [blame] | 41 | inode = d_inode(fh->fh_dentry); |
Christoph Hellwig | 4ac7249 | 2013-12-20 05:16:55 -0800 | [diff] [blame] | 42 | |
Chuck Lever | 14168d6 | 2020-10-01 18:59:54 -0400 | [diff] [blame] | 43 | if (argp->mask & ~NFS_ACL_MASK) { |
| 44 | resp->status = nfserr_inval; |
| 45 | goto out; |
| 46 | } |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 47 | resp->mask = argp->mask; |
| 48 | |
| 49 | if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { |
Christoph Hellwig | 4ac7249 | 2013-12-20 05:16:55 -0800 | [diff] [blame] | 50 | acl = get_acl(inode, ACL_TYPE_ACCESS); |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 51 | if (acl == NULL) { |
| 52 | /* Solaris returns the inode's minimum ACL. */ |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 53 | acl = posix_acl_from_mode(inode->i_mode, GFP_KERNEL); |
| 54 | } |
Kinglong Mee | 35e634b | 2014-07-09 21:54:16 +0800 | [diff] [blame] | 55 | if (IS_ERR(acl)) { |
Chuck Lever | 14168d6 | 2020-10-01 18:59:54 -0400 | [diff] [blame] | 56 | resp->status = nfserrno(PTR_ERR(acl)); |
Kinglong Mee | 35e634b | 2014-07-09 21:54:16 +0800 | [diff] [blame] | 57 | goto fail; |
| 58 | } |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 59 | resp->acl_access = acl; |
| 60 | } |
| 61 | if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { |
| 62 | /* Check how Solaris handles requests for the Default ACL |
| 63 | of a non-directory! */ |
Christoph Hellwig | 4ac7249 | 2013-12-20 05:16:55 -0800 | [diff] [blame] | 64 | acl = get_acl(inode, ACL_TYPE_DEFAULT); |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 65 | if (IS_ERR(acl)) { |
Chuck Lever | 14168d6 | 2020-10-01 18:59:54 -0400 | [diff] [blame] | 66 | resp->status = nfserrno(PTR_ERR(acl)); |
Christoph Hellwig | 4ac7249 | 2013-12-20 05:16:55 -0800 | [diff] [blame] | 67 | goto fail; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 68 | } |
| 69 | resp->acl_default = acl; |
| 70 | } |
| 71 | |
| 72 | /* resp->acl_{access,default} are released in nfs3svc_release_getacl. */ |
Chuck Lever | 14168d6 | 2020-10-01 18:59:54 -0400 | [diff] [blame] | 73 | out: |
Chuck Lever | cc028a1 | 2020-10-02 15:52:44 -0400 | [diff] [blame] | 74 | return rpc_success; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 75 | |
| 76 | fail: |
| 77 | posix_acl_release(resp->acl_access); |
| 78 | posix_acl_release(resp->acl_default); |
Chuck Lever | 14168d6 | 2020-10-01 18:59:54 -0400 | [diff] [blame] | 79 | goto out; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 80 | } |
| 81 | |
| 82 | /* |
| 83 | * Set the Access and/or Default ACL of a file. |
| 84 | */ |
Christoph Hellwig | a6beb73 | 2017-05-08 17:35:49 +0200 | [diff] [blame] | 85 | static __be32 nfsd3_proc_setacl(struct svc_rqst *rqstp) |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 86 | { |
Christoph Hellwig | a6beb73 | 2017-05-08 17:35:49 +0200 | [diff] [blame] | 87 | struct nfsd3_setaclargs *argp = rqstp->rq_argp; |
| 88 | struct nfsd3_attrstat *resp = rqstp->rq_resp; |
Christoph Hellwig | 4ac7249 | 2013-12-20 05:16:55 -0800 | [diff] [blame] | 89 | struct inode *inode; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 90 | svc_fh *fh; |
Christoph Hellwig | 4ac7249 | 2013-12-20 05:16:55 -0800 | [diff] [blame] | 91 | int error; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 92 | |
| 93 | fh = fh_copy(&resp->fh, &argp->fh); |
Chuck Lever | 14168d6 | 2020-10-01 18:59:54 -0400 | [diff] [blame] | 94 | resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); |
| 95 | if (resp->status != nfs_ok) |
Christoph Hellwig | 4ac7249 | 2013-12-20 05:16:55 -0800 | [diff] [blame] | 96 | goto out; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 97 | |
David Howells | 2b0143b | 2015-03-17 22:25:59 +0000 | [diff] [blame] | 98 | inode = d_inode(fh->fh_dentry); |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 99 | |
Christoph Hellwig | 4ac7249 | 2013-12-20 05:16:55 -0800 | [diff] [blame] | 100 | error = fh_want_write(fh); |
| 101 | if (error) |
| 102 | goto out_errno; |
| 103 | |
Ben Hutchings | 9996537 | 2016-06-22 19:43:35 +0100 | [diff] [blame] | 104 | fh_lock(fh); |
Christoph Hellwig | 4ac7249 | 2013-12-20 05:16:55 -0800 | [diff] [blame] | 105 | |
Ben Hutchings | 9996537 | 2016-06-22 19:43:35 +0100 | [diff] [blame] | 106 | error = set_posix_acl(inode, ACL_TYPE_ACCESS, argp->acl_access); |
| 107 | if (error) |
| 108 | goto out_drop_lock; |
| 109 | error = set_posix_acl(inode, ACL_TYPE_DEFAULT, argp->acl_default); |
| 110 | |
| 111 | out_drop_lock: |
| 112 | fh_unlock(fh); |
Christoph Hellwig | 4ac7249 | 2013-12-20 05:16:55 -0800 | [diff] [blame] | 113 | fh_drop_write(fh); |
| 114 | out_errno: |
Chuck Lever | 14168d6 | 2020-10-01 18:59:54 -0400 | [diff] [blame] | 115 | resp->status = nfserrno(error); |
Christoph Hellwig | 4ac7249 | 2013-12-20 05:16:55 -0800 | [diff] [blame] | 116 | out: |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 117 | /* argp->acl_{access,default} may have been allocated in |
| 118 | nfs3svc_decode_setaclargs. */ |
| 119 | posix_acl_release(argp->acl_access); |
| 120 | posix_acl_release(argp->acl_default); |
Chuck Lever | cc028a1 | 2020-10-02 15:52:44 -0400 | [diff] [blame] | 121 | return rpc_success; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 122 | } |
| 123 | |
| 124 | /* |
| 125 | * XDR decode functions |
| 126 | */ |
Christoph Hellwig | 026fec7 | 2017-05-08 19:01:48 +0200 | [diff] [blame] | 127 | static int nfs3svc_decode_getaclargs(struct svc_rqst *rqstp, __be32 *p) |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 128 | { |
Christoph Hellwig | 026fec7 | 2017-05-08 19:01:48 +0200 | [diff] [blame] | 129 | struct nfsd3_getaclargs *args = rqstp->rq_argp; |
| 130 | |
Benoit Taine | d40aa33 | 2014-05-22 16:32:30 +0200 | [diff] [blame] | 131 | p = nfs3svc_decode_fh(p, &args->fh); |
| 132 | if (!p) |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 133 | return 0; |
| 134 | args->mask = ntohl(*p); p++; |
| 135 | |
| 136 | return xdr_argsize_check(rqstp, p); |
| 137 | } |
| 138 | |
| 139 | |
Christoph Hellwig | 026fec7 | 2017-05-08 19:01:48 +0200 | [diff] [blame] | 140 | static int nfs3svc_decode_setaclargs(struct svc_rqst *rqstp, __be32 *p) |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 141 | { |
Christoph Hellwig | 026fec7 | 2017-05-08 19:01:48 +0200 | [diff] [blame] | 142 | struct nfsd3_setaclargs *args = rqstp->rq_argp; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 143 | struct kvec *head = rqstp->rq_arg.head; |
| 144 | unsigned int base; |
| 145 | int n; |
| 146 | |
Benoit Taine | d40aa33 | 2014-05-22 16:32:30 +0200 | [diff] [blame] | 147 | p = nfs3svc_decode_fh(p, &args->fh); |
| 148 | if (!p) |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 149 | return 0; |
| 150 | args->mask = ntohl(*p++); |
Kinglong Mee | 7b8f458 | 2015-07-03 19:39:02 +0800 | [diff] [blame] | 151 | if (args->mask & ~NFS_ACL_MASK || |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 152 | !xdr_argsize_check(rqstp, p)) |
| 153 | return 0; |
| 154 | |
| 155 | base = (char *)p - (char *)head->iov_base; |
| 156 | n = nfsacl_decode(&rqstp->rq_arg, base, NULL, |
| 157 | (args->mask & NFS_ACL) ? |
| 158 | &args->acl_access : NULL); |
| 159 | if (n > 0) |
| 160 | n = nfsacl_decode(&rqstp->rq_arg, base + n, NULL, |
| 161 | (args->mask & NFS_DFACL) ? |
| 162 | &args->acl_default : NULL); |
| 163 | return (n > 0); |
| 164 | } |
| 165 | |
| 166 | /* |
| 167 | * XDR encode functions |
| 168 | */ |
| 169 | |
| 170 | /* GETACL */ |
Christoph Hellwig | 63f8de3 | 2017-05-08 19:42:02 +0200 | [diff] [blame] | 171 | static int nfs3svc_encode_getaclres(struct svc_rqst *rqstp, __be32 *p) |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 172 | { |
Christoph Hellwig | 63f8de3 | 2017-05-08 19:42:02 +0200 | [diff] [blame] | 173 | struct nfsd3_getaclres *resp = rqstp->rq_resp; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 174 | struct dentry *dentry = resp->fh.fh_dentry; |
| 175 | |
Chuck Lever | cc028a1 | 2020-10-02 15:52:44 -0400 | [diff] [blame] | 176 | *p++ = resp->status; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 177 | p = nfs3svc_encode_post_op_attr(rqstp, p, &resp->fh); |
David Howells | 2b0143b | 2015-03-17 22:25:59 +0000 | [diff] [blame] | 178 | if (resp->status == 0 && dentry && d_really_is_positive(dentry)) { |
| 179 | struct inode *inode = d_inode(dentry); |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 180 | struct kvec *head = rqstp->rq_res.head; |
| 181 | unsigned int base; |
| 182 | int n; |
Jesper Juhl | 14d2b59 | 2006-12-08 02:39:40 -0800 | [diff] [blame] | 183 | int w; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 184 | |
| 185 | *p++ = htonl(resp->mask); |
| 186 | if (!xdr_ressize_check(rqstp, p)) |
| 187 | return 0; |
| 188 | base = (char *)p - (char *)head->iov_base; |
| 189 | |
Jesper Juhl | 14d2b59 | 2006-12-08 02:39:40 -0800 | [diff] [blame] | 190 | rqstp->rq_res.page_len = w = nfsacl_size( |
| 191 | (resp->mask & NFS_ACL) ? resp->acl_access : NULL, |
| 192 | (resp->mask & NFS_DFACL) ? resp->acl_default : NULL); |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 193 | while (w > 0) { |
J. Bruce Fields | afc5940 | 2012-12-10 18:01:37 -0500 | [diff] [blame] | 194 | if (!*(rqstp->rq_next_page++)) |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 195 | return 0; |
| 196 | w -= PAGE_SIZE; |
| 197 | } |
| 198 | |
| 199 | n = nfsacl_encode(&rqstp->rq_res, base, inode, |
| 200 | resp->acl_access, |
| 201 | resp->mask & NFS_ACL, 0); |
| 202 | if (n > 0) |
| 203 | n = nfsacl_encode(&rqstp->rq_res, base + n, inode, |
| 204 | resp->acl_default, |
| 205 | resp->mask & NFS_DFACL, |
| 206 | NFS_ACL_DEFAULT); |
| 207 | if (n <= 0) |
| 208 | return 0; |
| 209 | } else |
| 210 | if (!xdr_ressize_check(rqstp, p)) |
| 211 | return 0; |
| 212 | |
| 213 | return 1; |
| 214 | } |
| 215 | |
| 216 | /* SETACL */ |
Christoph Hellwig | 63f8de3 | 2017-05-08 19:42:02 +0200 | [diff] [blame] | 217 | static int nfs3svc_encode_setaclres(struct svc_rqst *rqstp, __be32 *p) |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 218 | { |
Christoph Hellwig | 63f8de3 | 2017-05-08 19:42:02 +0200 | [diff] [blame] | 219 | struct nfsd3_attrstat *resp = rqstp->rq_resp; |
| 220 | |
Chuck Lever | cc028a1 | 2020-10-02 15:52:44 -0400 | [diff] [blame] | 221 | *p++ = resp->status; |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 222 | p = nfs3svc_encode_post_op_attr(rqstp, p, &resp->fh); |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 223 | return xdr_ressize_check(rqstp, p); |
| 224 | } |
| 225 | |
| 226 | /* |
| 227 | * XDR release functions |
| 228 | */ |
Christoph Hellwig | 8537488 | 2017-05-08 18:48:24 +0200 | [diff] [blame] | 229 | static void nfs3svc_release_getacl(struct svc_rqst *rqstp) |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 230 | { |
Christoph Hellwig | 8537488 | 2017-05-08 18:48:24 +0200 | [diff] [blame] | 231 | struct nfsd3_getaclres *resp = rqstp->rq_resp; |
| 232 | |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 233 | fh_put(&resp->fh); |
| 234 | posix_acl_release(resp->acl_access); |
| 235 | posix_acl_release(resp->acl_default); |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 236 | } |
| 237 | |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 238 | struct nfsd3_voidargs { int dummy; }; |
| 239 | |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 240 | #define ST 1 /* status*/ |
| 241 | #define AT 21 /* attributes */ |
| 242 | #define pAT (1+AT) /* post attributes - conditional */ |
| 243 | #define ACL (1+NFS_ACL_MAX_ENTRIES*3) /* Access Control List */ |
| 244 | |
Chuck Lever | ba1df79 | 2020-10-01 18:59:07 -0400 | [diff] [blame] | 245 | static const struct svc_procedure nfsd_acl_procedures3[3] = { |
| 246 | [ACLPROC3_NULL] = { |
| 247 | .pc_func = nfsd3_proc_null, |
Chuck Lever | 788f718 | 2020-11-05 14:48:29 -0500 | [diff] [blame] | 248 | .pc_decode = nfssvc_decode_voidarg, |
| 249 | .pc_encode = nfssvc_encode_voidres, |
| 250 | .pc_argsize = sizeof(struct nfsd_voidargs), |
| 251 | .pc_ressize = sizeof(struct nfsd_voidres), |
Chuck Lever | ba1df79 | 2020-10-01 18:59:07 -0400 | [diff] [blame] | 252 | .pc_cachetype = RC_NOCACHE, |
| 253 | .pc_xdrressize = ST, |
| 254 | }, |
| 255 | [ACLPROC3_GETACL] = { |
| 256 | .pc_func = nfsd3_proc_getacl, |
| 257 | .pc_decode = nfs3svc_decode_getaclargs, |
| 258 | .pc_encode = nfs3svc_encode_getaclres, |
| 259 | .pc_release = nfs3svc_release_getacl, |
| 260 | .pc_argsize = sizeof(struct nfsd3_getaclargs), |
| 261 | .pc_ressize = sizeof(struct nfsd3_getaclres), |
| 262 | .pc_cachetype = RC_NOCACHE, |
| 263 | .pc_xdrressize = ST+1+2*(1+ACL), |
| 264 | }, |
| 265 | [ACLPROC3_SETACL] = { |
| 266 | .pc_func = nfsd3_proc_setacl, |
| 267 | .pc_decode = nfs3svc_decode_setaclargs, |
| 268 | .pc_encode = nfs3svc_encode_setaclres, |
| 269 | .pc_release = nfs3svc_release_fhandle, |
| 270 | .pc_argsize = sizeof(struct nfsd3_setaclargs), |
| 271 | .pc_ressize = sizeof(struct nfsd3_attrstat), |
| 272 | .pc_cachetype = RC_NOCACHE, |
| 273 | .pc_xdrressize = ST+pAT, |
| 274 | }, |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 275 | }; |
| 276 | |
Christoph Hellwig | 7fd38af | 2017-05-08 23:40:27 +0200 | [diff] [blame] | 277 | static unsigned int nfsd_acl_count3[ARRAY_SIZE(nfsd_acl_procedures3)]; |
Christoph Hellwig | e967918 | 2017-05-12 16:21:37 +0200 | [diff] [blame] | 278 | const struct svc_version nfsd_acl_version3 = { |
| 279 | .vs_vers = 3, |
| 280 | .vs_nproc = 3, |
| 281 | .vs_proc = nfsd_acl_procedures3, |
| 282 | .vs_count = nfsd_acl_count3, |
| 283 | .vs_dispatch = nfsd_dispatch, |
| 284 | .vs_xdrsize = NFS3_SVC_XDRSIZE, |
Andreas Gruenbacher | a257cdd | 2005-06-22 17:16:26 +0000 | [diff] [blame] | 285 | }; |
| 286 | |