Lines Matching defs:acl
965 zpl_set_acl_impl(struct inode *ip, struct posix_acl *acl, int type)
977 if (acl) {
979 error = posix_acl_equiv_mode(acl, &mode);
998 acl = NULL;
1006 return (acl ? -EACCES : 0);
1013 if (acl) {
1014 size = posix_acl_xattr_size(acl->a_count);
1017 error = zpl_acl_to_xattr(acl, value, size);
1029 if (acl)
1030 set_cached_acl(ip, type, acl);
1041 struct posix_acl *acl, int type)
1044 struct posix_acl *acl, int type)
1047 struct posix_acl *acl, int type)
1049 zpl_set_acl(struct inode *ip, struct posix_acl *acl, int type)
1053 return (zpl_set_acl_impl(d_inode(dentry), acl, type));
1055 return (zpl_set_acl_impl(d_inode(dentry), acl, type));
1057 return (zpl_set_acl_impl(ip, acl, type));
1064 struct posix_acl *acl;
1086 acl = zpl_acl_from_xattr(value, size);
1088 acl = NULL;
1090 acl = ERR_PTR(-EIO);
1096 return (acl);
1121 struct posix_acl *acl = NULL;
1128 acl = zpl_get_acl_impl(dir, ACL_TYPE_DEFAULT);
1129 if (IS_ERR(acl))
1130 return (PTR_ERR(acl));
1131 if (!acl) {
1139 if (acl) {
1143 error = zpl_set_acl_impl(ip, acl, ACL_TYPE_DEFAULT);
1149 error = __posix_acl_create(&acl, GFP_KERNEL, &mode);
1154 error = zpl_set_acl_impl(ip, acl,
1160 zpl_posix_acl_release(acl);
1168 struct posix_acl *acl;
1177 acl = zpl_get_acl_impl(ip, ACL_TYPE_ACCESS);
1178 if (IS_ERR(acl) || !acl)
1179 return (PTR_ERR(acl));
1181 error = __posix_acl_chmod(&acl, GFP_KERNEL, ip->i_mode);
1183 error = zpl_set_acl_impl(ip, acl, ACL_TYPE_ACCESS);
1185 zpl_posix_acl_release(acl);
1228 struct posix_acl *acl;
1235 acl = zpl_get_acl_impl(ip, type);
1236 if (IS_ERR(acl))
1237 return (PTR_ERR(acl));
1238 if (acl == NULL)
1241 error = zpl_acl_to_xattr(acl, buffer, size);
1242 zpl_posix_acl_release(acl);
1252 struct posix_acl *acl;
1259 acl = zpl_get_acl_impl(ip, type);
1260 if (IS_ERR(acl))
1261 return (PTR_ERR(acl));
1262 if (acl == NULL)
1265 error = zpl_acl_to_xattr(acl, buffer, size);
1266 zpl_posix_acl_release(acl);
1277 struct posix_acl *acl;
1294 acl = zpl_acl_from_xattr(value, size);
1295 if (IS_ERR(acl))
1296 return (PTR_ERR(acl));
1297 else if (acl) {
1298 error = posix_acl_valid(ip->i_sb->s_user_ns, acl);
1300 zpl_posix_acl_release(acl);
1305 acl = NULL;
1307 error = zpl_set_acl_impl(ip, acl, type);
1308 zpl_posix_acl_release(acl);
1319 struct posix_acl *acl;
1336 acl = zpl_acl_from_xattr(value, size);
1337 if (IS_ERR(acl))
1338 return (PTR_ERR(acl));
1339 else if (acl) {
1340 error = posix_acl_valid(ip->i_sb->s_user_ns, acl);
1342 zpl_posix_acl_release(acl);
1347 acl = NULL;
1350 error = zpl_set_acl_impl(ip, acl, type);
1351 zpl_posix_acl_release(acl);
1458 struct posix_acl *acl;
1530 kfree(a->acl);
1536 zpl_posix_acl_release_impl(struct posix_acl *acl)
1542 a->acl = acl;