blob: 127b1343214692ed0a1cbab78d31800e0d356a0e [file] [log] [blame]
Thomas Gleixner1802d0b2019-05-27 08:55:21 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Tiger Yang929fb012008-11-14 11:17:04 +08002/* -*- mode: c; c-basic-offset: 8; -*-
3 * vim: noexpandtab sw=8 ts=8 sts=0:
4 *
5 * acl.h
6 *
7 * Copyright (C) 2004, 2008 Oracle. All rights reserved.
Tiger Yang929fb012008-11-14 11:17:04 +08008 */
9
10#ifndef OCFS2_ACL_H
11#define OCFS2_ACL_H
12
13#include <linux/posix_acl_xattr.h>
14
15struct ocfs2_acl_entry {
16 __le16 e_tag;
17 __le16 e_perm;
18 __le32 e_id;
19};
20
Christoph Hellwig4e34e712011-07-23 17:37:31 +020021struct posix_acl *ocfs2_iop_get_acl(struct inode *inode, int type);
Christoph Hellwig702e5bc2013-12-20 05:16:48 -080022int ocfs2_iop_set_acl(struct inode *inode, struct posix_acl *acl, int type);
Junxiao Bi5ee0fbd2016-05-12 15:42:15 -070023extern int ocfs2_acl_chmod(struct inode *, struct buffer_head *);
Junxiao Bic25a1e02016-05-12 15:42:18 -070024extern int ocfs2_init_acl(handle_t *, struct inode *, struct inode *,
25 struct buffer_head *, struct buffer_head *,
26 struct ocfs2_alloc_context *,
27 struct ocfs2_alloc_context *);
Tiger Yang23fc2702008-11-14 11:17:18 +080028
Tiger Yang929fb012008-11-14 11:17:04 +080029#endif /* OCFS2_ACL_H */