David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. |
Steven Whitehouse | 3a8a9a1 | 2006-05-18 15:09:15 -0400 | [diff] [blame] | 3 | * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 4 | * |
| 5 | * This copyrighted material is made available to anyone wishing to use, |
| 6 | * modify, copy, or redistribute it subject to the terms and conditions |
Steven Whitehouse | e9fc2aa | 2006-09-01 11:05:15 -0400 | [diff] [blame] | 7 | * of the GNU General Public License version 2. |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #include <linux/sched.h> |
| 11 | #include <linux/slab.h> |
| 12 | #include <linux/spinlock.h> |
| 13 | #include <linux/completion.h> |
| 14 | #include <linux/buffer_head.h> |
Steven Whitehouse | 2646a1f | 2009-10-02 11:50:54 +0100 | [diff] [blame] | 15 | #include <linux/xattr.h> |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 16 | #include <linux/posix_acl.h> |
| 17 | #include <linux/posix_acl_xattr.h> |
Steven Whitehouse | 5c676f6 | 2006-02-27 17:23:27 -0500 | [diff] [blame] | 18 | #include <linux/gfs2_ondisk.h> |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 19 | |
| 20 | #include "gfs2.h" |
Steven Whitehouse | 5c676f6 | 2006-02-27 17:23:27 -0500 | [diff] [blame] | 21 | #include "incore.h" |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 22 | #include "acl.h" |
Steven Whitehouse | 307cf6e | 2009-08-26 18:51:04 +0100 | [diff] [blame] | 23 | #include "xattr.h" |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 24 | #include "glock.h" |
| 25 | #include "inode.h" |
| 26 | #include "meta_io.h" |
| 27 | #include "trans.h" |
Steven Whitehouse | 5c676f6 | 2006-02-27 17:23:27 -0500 | [diff] [blame] | 28 | #include "util.h" |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 29 | |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 30 | static const char *gfs2_acl_name(int type) |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 31 | { |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 32 | switch (type) { |
| 33 | case ACL_TYPE_ACCESS: |
| 34 | return GFS2_POSIX_ACL_ACCESS; |
| 35 | case ACL_TYPE_DEFAULT: |
| 36 | return GFS2_POSIX_ACL_DEFAULT; |
| 37 | } |
| 38 | return NULL; |
| 39 | } |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 40 | |
Steven Whitehouse | 018a01c | 2011-11-23 13:31:51 +0000 | [diff] [blame^] | 41 | struct posix_acl *gfs2_get_acl(struct inode *inode, int type) |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 42 | { |
Steven Whitehouse | 018a01c | 2011-11-23 13:31:51 +0000 | [diff] [blame^] | 43 | struct gfs2_inode *ip = GFS2_I(inode); |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 44 | struct posix_acl *acl; |
| 45 | const char *name; |
| 46 | char *data; |
| 47 | int len; |
Steven Whitehouse | 40b78a3 | 2009-08-26 18:41:32 +0100 | [diff] [blame] | 48 | |
Steven Whitehouse | 3767ac2 | 2008-11-03 14:28:42 +0000 | [diff] [blame] | 49 | if (!ip->i_eattr) |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 50 | return NULL; |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 51 | |
Steven Whitehouse | 106381b | 2009-09-29 16:26:23 +0100 | [diff] [blame] | 52 | acl = get_cached_acl(&ip->i_inode, type); |
| 53 | if (acl != ACL_NOT_CACHED) |
| 54 | return acl; |
| 55 | |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 56 | name = gfs2_acl_name(type); |
| 57 | if (name == NULL) |
| 58 | return ERR_PTR(-EINVAL); |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 59 | |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 60 | len = gfs2_xattr_acl_get(ip, name, &data); |
| 61 | if (len < 0) |
| 62 | return ERR_PTR(len); |
| 63 | if (len == 0) |
| 64 | return NULL; |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 65 | |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 66 | acl = posix_acl_from_xattr(data, len); |
| 67 | kfree(data); |
| 68 | return acl; |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 69 | } |
| 70 | |
Al Viro | d3fb612 | 2011-07-23 18:37:50 -0400 | [diff] [blame] | 71 | static int gfs2_set_mode(struct inode *inode, umode_t mode) |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 72 | { |
Steven Whitehouse | 69dca42 | 2009-09-29 12:40:19 +0100 | [diff] [blame] | 73 | int error = 0; |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 74 | |
Steven Whitehouse | 69dca42 | 2009-09-29 12:40:19 +0100 | [diff] [blame] | 75 | if (mode != inode->i_mode) { |
| 76 | struct iattr iattr; |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 77 | |
Steven Whitehouse | 69dca42 | 2009-09-29 12:40:19 +0100 | [diff] [blame] | 78 | iattr.ia_valid = ATTR_MODE; |
| 79 | iattr.ia_mode = mode; |
| 80 | |
Steven Whitehouse | ab9bbda | 2011-08-15 14:20:36 +0100 | [diff] [blame] | 81 | error = gfs2_setattr_simple(inode, &iattr); |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 82 | } |
| 83 | |
Steven Whitehouse | 69dca42 | 2009-09-29 12:40:19 +0100 | [diff] [blame] | 84 | return error; |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 85 | } |
| 86 | |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 87 | static int gfs2_acl_set(struct inode *inode, int type, struct posix_acl *acl) |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 88 | { |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 89 | int error; |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 90 | int len; |
| 91 | char *data; |
| 92 | const char *name = gfs2_acl_name(type); |
| 93 | |
| 94 | BUG_ON(name == NULL); |
| 95 | len = posix_acl_to_xattr(acl, NULL, 0); |
| 96 | if (len == 0) |
| 97 | return 0; |
| 98 | data = kmalloc(len, GFP_NOFS); |
| 99 | if (data == NULL) |
| 100 | return -ENOMEM; |
| 101 | error = posix_acl_to_xattr(acl, data, len); |
| 102 | if (error < 0) |
| 103 | goto out; |
Christoph Hellwig | 431547b | 2009-11-13 09:52:56 +0000 | [diff] [blame] | 104 | error = __gfs2_xattr_set(inode, name, data, len, 0, GFS2_EATYPE_SYS); |
Steven Whitehouse | 106381b | 2009-09-29 16:26:23 +0100 | [diff] [blame] | 105 | if (!error) |
| 106 | set_cached_acl(inode, type, acl); |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 107 | out: |
| 108 | kfree(data); |
| 109 | return error; |
| 110 | } |
| 111 | |
| 112 | int gfs2_acl_create(struct gfs2_inode *dip, struct inode *inode) |
| 113 | { |
| 114 | struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode); |
Al Viro | 826cae2 | 2011-07-23 03:10:32 -0400 | [diff] [blame] | 115 | struct posix_acl *acl; |
Al Viro | d3fb612 | 2011-07-23 18:37:50 -0400 | [diff] [blame] | 116 | umode_t mode = inode->i_mode; |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 117 | int error = 0; |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 118 | |
| 119 | if (!sdp->sd_args.ar_posix_acl) |
| 120 | return 0; |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 121 | if (S_ISLNK(inode->i_mode)) |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 122 | return 0; |
| 123 | |
Steven Whitehouse | 018a01c | 2011-11-23 13:31:51 +0000 | [diff] [blame^] | 124 | acl = gfs2_get_acl(&dip->i_inode, ACL_TYPE_DEFAULT); |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 125 | if (IS_ERR(acl)) |
| 126 | return PTR_ERR(acl); |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 127 | if (!acl) { |
Al Viro | ce3b0f8 | 2009-03-29 19:08:22 -0400 | [diff] [blame] | 128 | mode &= ~current_umask(); |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 129 | if (mode != inode->i_mode) |
| 130 | error = gfs2_set_mode(inode, mode); |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 131 | return error; |
| 132 | } |
| 133 | |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 134 | if (S_ISDIR(inode->i_mode)) { |
| 135 | error = gfs2_acl_set(inode, ACL_TYPE_DEFAULT, acl); |
| 136 | if (error) |
| 137 | goto out; |
| 138 | } |
| 139 | |
Al Viro | 826cae2 | 2011-07-23 03:10:32 -0400 | [diff] [blame] | 140 | error = posix_acl_create(&acl, GFP_NOFS, &mode); |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 141 | if (error < 0) |
Al Viro | 826cae2 | 2011-07-23 03:10:32 -0400 | [diff] [blame] | 142 | return error; |
| 143 | |
Steven Whitehouse | 40b78a3 | 2009-08-26 18:41:32 +0100 | [diff] [blame] | 144 | if (error == 0) |
| 145 | goto munge; |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 146 | |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 147 | error = gfs2_acl_set(inode, ACL_TYPE_ACCESS, acl); |
Steven Whitehouse | 40b78a3 | 2009-08-26 18:41:32 +0100 | [diff] [blame] | 148 | if (error) |
| 149 | goto out; |
| 150 | munge: |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 151 | error = gfs2_set_mode(inode, mode); |
Steven Whitehouse | a91ea69 | 2006-09-04 12:04:26 -0400 | [diff] [blame] | 152 | out: |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 153 | posix_acl_release(acl); |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 154 | return error; |
| 155 | } |
| 156 | |
| 157 | int gfs2_acl_chmod(struct gfs2_inode *ip, struct iattr *attr) |
| 158 | { |
Steven Whitehouse | ab9bbda | 2011-08-15 14:20:36 +0100 | [diff] [blame] | 159 | struct inode *inode = &ip->i_inode; |
Al Viro | bc26ab5 | 2011-07-23 00:18:02 -0400 | [diff] [blame] | 160 | struct posix_acl *acl; |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 161 | char *data; |
| 162 | unsigned int len; |
| 163 | int error; |
| 164 | |
Steven Whitehouse | 018a01c | 2011-11-23 13:31:51 +0000 | [diff] [blame^] | 165 | acl = gfs2_get_acl(&ip->i_inode, ACL_TYPE_ACCESS); |
Steven Whitehouse | 479c427 | 2009-10-02 12:00:00 +0100 | [diff] [blame] | 166 | if (IS_ERR(acl)) |
| 167 | return PTR_ERR(acl); |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 168 | if (!acl) |
Steven Whitehouse | ab9bbda | 2011-08-15 14:20:36 +0100 | [diff] [blame] | 169 | return gfs2_setattr_simple(inode, attr); |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 170 | |
Al Viro | bc26ab5 | 2011-07-23 00:18:02 -0400 | [diff] [blame] | 171 | error = posix_acl_chmod(&acl, GFP_NOFS, attr->ia_mode); |
| 172 | if (error) |
| 173 | return error; |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 174 | |
Al Viro | bc26ab5 | 2011-07-23 00:18:02 -0400 | [diff] [blame] | 175 | len = posix_acl_to_xattr(acl, NULL, 0); |
| 176 | data = kmalloc(len, GFP_NOFS); |
| 177 | error = -ENOMEM; |
| 178 | if (data == NULL) |
| 179 | goto out; |
| 180 | posix_acl_to_xattr(acl, data, len); |
| 181 | error = gfs2_xattr_acl_chmod(ip, attr, data); |
| 182 | kfree(data); |
| 183 | set_cached_acl(&ip->i_inode, ACL_TYPE_ACCESS, acl); |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 184 | |
Steven Whitehouse | a91ea69 | 2006-09-04 12:04:26 -0400 | [diff] [blame] | 185 | out: |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 186 | posix_acl_release(acl); |
David Teigland | b3b94fa | 2006-01-16 16:50:04 +0000 | [diff] [blame] | 187 | return error; |
| 188 | } |
| 189 | |
Steven Whitehouse | 2646a1f | 2009-10-02 11:50:54 +0100 | [diff] [blame] | 190 | static int gfs2_acl_type(const char *name) |
| 191 | { |
| 192 | if (strcmp(name, GFS2_POSIX_ACL_ACCESS) == 0) |
| 193 | return ACL_TYPE_ACCESS; |
| 194 | if (strcmp(name, GFS2_POSIX_ACL_DEFAULT) == 0) |
| 195 | return ACL_TYPE_DEFAULT; |
| 196 | return -EINVAL; |
| 197 | } |
| 198 | |
Christoph Hellwig | 431547b | 2009-11-13 09:52:56 +0000 | [diff] [blame] | 199 | static int gfs2_xattr_system_get(struct dentry *dentry, const char *name, |
| 200 | void *buffer, size_t size, int xtype) |
Steven Whitehouse | 2646a1f | 2009-10-02 11:50:54 +0100 | [diff] [blame] | 201 | { |
Christoph Hellwig | 431547b | 2009-11-13 09:52:56 +0000 | [diff] [blame] | 202 | struct inode *inode = dentry->d_inode; |
Steven Whitehouse | f72f2d2 | 2010-05-21 16:12:27 +0100 | [diff] [blame] | 203 | struct gfs2_sbd *sdp = GFS2_SB(inode); |
Steven Whitehouse | 106381b | 2009-09-29 16:26:23 +0100 | [diff] [blame] | 204 | struct posix_acl *acl; |
Steven Whitehouse | 2646a1f | 2009-10-02 11:50:54 +0100 | [diff] [blame] | 205 | int type; |
Steven Whitehouse | 106381b | 2009-09-29 16:26:23 +0100 | [diff] [blame] | 206 | int error; |
Steven Whitehouse | 2646a1f | 2009-10-02 11:50:54 +0100 | [diff] [blame] | 207 | |
Steven Whitehouse | f72f2d2 | 2010-05-21 16:12:27 +0100 | [diff] [blame] | 208 | if (!sdp->sd_args.ar_posix_acl) |
| 209 | return -EOPNOTSUPP; |
| 210 | |
Steven Whitehouse | 2646a1f | 2009-10-02 11:50:54 +0100 | [diff] [blame] | 211 | type = gfs2_acl_type(name); |
| 212 | if (type < 0) |
| 213 | return type; |
| 214 | |
Steven Whitehouse | 018a01c | 2011-11-23 13:31:51 +0000 | [diff] [blame^] | 215 | acl = gfs2_get_acl(inode, type); |
Steven Whitehouse | 106381b | 2009-09-29 16:26:23 +0100 | [diff] [blame] | 216 | if (IS_ERR(acl)) |
| 217 | return PTR_ERR(acl); |
| 218 | if (acl == NULL) |
| 219 | return -ENODATA; |
Steven Whitehouse | 2646a1f | 2009-10-02 11:50:54 +0100 | [diff] [blame] | 220 | |
Steven Whitehouse | 106381b | 2009-09-29 16:26:23 +0100 | [diff] [blame] | 221 | error = posix_acl_to_xattr(acl, buffer, size); |
| 222 | posix_acl_release(acl); |
| 223 | |
| 224 | return error; |
| 225 | } |
Steven Whitehouse | 2646a1f | 2009-10-02 11:50:54 +0100 | [diff] [blame] | 226 | |
Christoph Hellwig | 431547b | 2009-11-13 09:52:56 +0000 | [diff] [blame] | 227 | static int gfs2_xattr_system_set(struct dentry *dentry, const char *name, |
| 228 | const void *value, size_t size, int flags, |
| 229 | int xtype) |
Steven Whitehouse | 2646a1f | 2009-10-02 11:50:54 +0100 | [diff] [blame] | 230 | { |
Christoph Hellwig | 431547b | 2009-11-13 09:52:56 +0000 | [diff] [blame] | 231 | struct inode *inode = dentry->d_inode; |
Steven Whitehouse | 2646a1f | 2009-10-02 11:50:54 +0100 | [diff] [blame] | 232 | struct gfs2_sbd *sdp = GFS2_SB(inode); |
| 233 | struct posix_acl *acl = NULL; |
| 234 | int error = 0, type; |
| 235 | |
| 236 | if (!sdp->sd_args.ar_posix_acl) |
| 237 | return -EOPNOTSUPP; |
| 238 | |
| 239 | type = gfs2_acl_type(name); |
| 240 | if (type < 0) |
| 241 | return type; |
| 242 | if (flags & XATTR_CREATE) |
| 243 | return -EINVAL; |
| 244 | if (type == ACL_TYPE_DEFAULT && !S_ISDIR(inode->i_mode)) |
| 245 | return value ? -EACCES : 0; |
| 246 | if ((current_fsuid() != inode->i_uid) && !capable(CAP_FOWNER)) |
| 247 | return -EPERM; |
| 248 | if (S_ISLNK(inode->i_mode)) |
| 249 | return -EOPNOTSUPP; |
| 250 | |
| 251 | if (!value) |
| 252 | goto set_acl; |
| 253 | |
| 254 | acl = posix_acl_from_xattr(value, size); |
| 255 | if (!acl) { |
| 256 | /* |
| 257 | * acl_set_file(3) may request that we set default ACLs with |
| 258 | * zero length -- defend (gracefully) against that here. |
| 259 | */ |
| 260 | goto out; |
| 261 | } |
| 262 | if (IS_ERR(acl)) { |
| 263 | error = PTR_ERR(acl); |
| 264 | goto out; |
| 265 | } |
| 266 | |
| 267 | error = posix_acl_valid(acl); |
| 268 | if (error) |
| 269 | goto out_release; |
| 270 | |
| 271 | error = -EINVAL; |
| 272 | if (acl->a_count > GFS2_ACL_MAX_ENTRIES) |
| 273 | goto out_release; |
| 274 | |
| 275 | if (type == ACL_TYPE_ACCESS) { |
Al Viro | d695212 | 2011-07-23 18:56:36 -0400 | [diff] [blame] | 276 | umode_t mode = inode->i_mode; |
Steven Whitehouse | 2646a1f | 2009-10-02 11:50:54 +0100 | [diff] [blame] | 277 | error = posix_acl_equiv_mode(acl, &mode); |
| 278 | |
| 279 | if (error <= 0) { |
| 280 | posix_acl_release(acl); |
| 281 | acl = NULL; |
| 282 | |
| 283 | if (error < 0) |
| 284 | return error; |
| 285 | } |
| 286 | |
| 287 | error = gfs2_set_mode(inode, mode); |
| 288 | if (error) |
| 289 | goto out_release; |
| 290 | } |
| 291 | |
| 292 | set_acl: |
Christoph Hellwig | 431547b | 2009-11-13 09:52:56 +0000 | [diff] [blame] | 293 | error = __gfs2_xattr_set(inode, name, value, size, 0, GFS2_EATYPE_SYS); |
Steven Whitehouse | 106381b | 2009-09-29 16:26:23 +0100 | [diff] [blame] | 294 | if (!error) { |
| 295 | if (acl) |
| 296 | set_cached_acl(inode, type, acl); |
| 297 | else |
| 298 | forget_cached_acl(inode, type); |
| 299 | } |
Steven Whitehouse | 2646a1f | 2009-10-02 11:50:54 +0100 | [diff] [blame] | 300 | out_release: |
| 301 | posix_acl_release(acl); |
| 302 | out: |
| 303 | return error; |
| 304 | } |
| 305 | |
Stephen Hemminger | b7bb0a1 | 2010-05-13 17:53:23 -0700 | [diff] [blame] | 306 | const struct xattr_handler gfs2_xattr_system_handler = { |
Steven Whitehouse | 2646a1f | 2009-10-02 11:50:54 +0100 | [diff] [blame] | 307 | .prefix = XATTR_SYSTEM_PREFIX, |
Christoph Hellwig | 431547b | 2009-11-13 09:52:56 +0000 | [diff] [blame] | 308 | .flags = GFS2_EATYPE_SYS, |
Steven Whitehouse | 2646a1f | 2009-10-02 11:50:54 +0100 | [diff] [blame] | 309 | .get = gfs2_xattr_system_get, |
| 310 | .set = gfs2_xattr_system_set, |
| 311 | }; |
| 312 | |