blob: 95a57c888ab62239bbc4ee73681a330cffe941e4 [file] [log] [blame]
Thomas Gleixner1802d0b2019-05-27 08:55:21 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Masahiro Yamadafa60ce22021-05-06 18:06:44 -07002/*
Tiger Yang929fb012008-11-14 11:17:04 +08003 * acl.h
4 *
5 * Copyright (C) 2004, 2008 Oracle. All rights reserved.
Tiger Yang929fb012008-11-14 11:17:04 +08006 */
7
8#ifndef OCFS2_ACL_H
9#define OCFS2_ACL_H
10
11#include <linux/posix_acl_xattr.h>
12
13struct ocfs2_acl_entry {
14 __le16 e_tag;
15 __le16 e_perm;
16 __le32 e_id;
17};
18
Miklos Szeredi0cad6242021-08-18 22:08:24 +020019struct posix_acl *ocfs2_iop_get_acl(struct inode *inode, int type, bool rcu);
Christian Brauner549c7292021-01-21 14:19:43 +010020int ocfs2_iop_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
21 struct posix_acl *acl, int type);
Junxiao Bi5ee0fbd2016-05-12 15:42:15 -070022extern int ocfs2_acl_chmod(struct inode *, struct buffer_head *);
Junxiao Bic25a1e02016-05-12 15:42:18 -070023extern int ocfs2_init_acl(handle_t *, struct inode *, struct inode *,
24 struct buffer_head *, struct buffer_head *,
25 struct ocfs2_alloc_context *,
26 struct ocfs2_alloc_context *);
Tiger Yang23fc2702008-11-14 11:17:18 +080027
Tiger Yang929fb012008-11-14 11:17:04 +080028#endif /* OCFS2_ACL_H */