• Home
  • Raw
  • Download

Lines Matching refs:acl

38 	struct posix_acl *acl;  in gfs2_acl_validate_set()  local
48 acl = posix_acl_from_xattr(er->er_data, er->er_data_len); in gfs2_acl_validate_set()
49 if (IS_ERR(acl)) in gfs2_acl_validate_set()
50 return PTR_ERR(acl); in gfs2_acl_validate_set()
51 if (!acl) { in gfs2_acl_validate_set()
56 error = posix_acl_valid(acl); in gfs2_acl_validate_set()
61 error = posix_acl_equiv_mode(acl, mode); in gfs2_acl_validate_set()
69 posix_acl_release(acl); in gfs2_acl_validate_set()
87 static int acl_get(struct gfs2_inode *ip, int access, struct posix_acl **acl, in acl_get() argument
128 if (acl) { in acl_get()
129 *acl = posix_acl_from_xattr(er.er_data, er.er_data_len); in acl_get()
130 if (IS_ERR(*acl)) in acl_get()
131 error = PTR_ERR(*acl); in acl_get()
157 struct posix_acl *acl = NULL; in gfs2_check_acl() local
160 error = acl_get(GFS2_I(inode), ACL_ACCESS, &acl, NULL, NULL, NULL); in gfs2_check_acl()
164 if (acl) { in gfs2_check_acl()
165 error = posix_acl_permission(inode, acl, mask); in gfs2_check_acl()
166 posix_acl_release(acl); in gfs2_check_acl()
201 struct posix_acl *acl = NULL, *clone; in gfs2_acl_create() local
214 error = acl_get(dip, ACL_DEFAULT, &acl, NULL, in gfs2_acl_create()
218 if (!acl) { in gfs2_acl_create()
225 clone = posix_acl_clone(acl, GFP_NOFS); in gfs2_acl_create()
229 posix_acl_release(acl); in gfs2_acl_create()
230 acl = clone; in gfs2_acl_create()
240 error = posix_acl_create_masq(acl, &mode); in gfs2_acl_create()
246 posix_acl_to_xattr(acl, er.er_data, er.er_data_len); in gfs2_acl_create()
256 posix_acl_release(acl); in gfs2_acl_create()
263 struct posix_acl *acl = NULL, *clone; in gfs2_acl_chmod() local
269 error = acl_get(ip, ACL_ACCESS, &acl, &el, &data, &len); in gfs2_acl_chmod()
272 if (!acl) in gfs2_acl_chmod()
275 clone = posix_acl_clone(acl, GFP_NOFS); in gfs2_acl_chmod()
279 posix_acl_release(acl); in gfs2_acl_chmod()
280 acl = clone; in gfs2_acl_chmod()
282 error = posix_acl_chmod_masq(acl, attr->ia_mode); in gfs2_acl_chmod()
284 posix_acl_to_xattr(acl, data, len); in gfs2_acl_chmod()
289 posix_acl_release(acl); in gfs2_acl_chmod()