Commit | Line | Data |
---|---|---|
1802d0be | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
929fb014 TY |
2 | /* -*- 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. | |
929fb014 TY |
8 | */ |
9 | ||
10 | #ifndef OCFS2_ACL_H | |
11 | #define OCFS2_ACL_H | |
12 | ||
13 | #include <linux/posix_acl_xattr.h> | |
14 | ||
15 | struct ocfs2_acl_entry { | |
16 | __le16 e_tag; | |
17 | __le16 e_perm; | |
18 | __le32 e_id; | |
19 | }; | |
20 | ||
4e34e719 | 21 | struct posix_acl *ocfs2_iop_get_acl(struct inode *inode, int type); |
549c7297 CB |
22 | int ocfs2_iop_set_acl(struct user_namespace *mnt_userns, struct inode *inode, |
23 | struct posix_acl *acl, int type); | |
5ee0fbd5 | 24 | extern int ocfs2_acl_chmod(struct inode *, struct buffer_head *); |
c25a1e06 JB |
25 | extern int ocfs2_init_acl(handle_t *, struct inode *, struct inode *, |
26 | struct buffer_head *, struct buffer_head *, | |
27 | struct ocfs2_alloc_context *, | |
28 | struct ocfs2_alloc_context *); | |
23fc2702 | 29 | |
929fb014 | 30 | #endif /* OCFS2_ACL_H */ |