18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/* -*- mode: c; c-basic-offset: 8; -*-
38c2ecf20Sopenharmony_ci * vim: noexpandtab sw=8 ts=8 sts=0:
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * acl.h
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (C) 2004, 2008 Oracle.  All rights reserved.
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#ifndef OCFS2_ACL_H
118c2ecf20Sopenharmony_ci#define OCFS2_ACL_H
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#include <linux/posix_acl_xattr.h>
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_cistruct ocfs2_acl_entry {
168c2ecf20Sopenharmony_ci	__le16 e_tag;
178c2ecf20Sopenharmony_ci	__le16 e_perm;
188c2ecf20Sopenharmony_ci	__le32 e_id;
198c2ecf20Sopenharmony_ci};
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_cistruct posix_acl *ocfs2_iop_get_acl(struct inode *inode, int type);
228c2ecf20Sopenharmony_ciint ocfs2_iop_set_acl(struct inode *inode, struct posix_acl *acl, int type);
238c2ecf20Sopenharmony_ciextern int ocfs2_acl_chmod(struct inode *, struct buffer_head *);
248c2ecf20Sopenharmony_ciextern int ocfs2_init_acl(handle_t *, struct inode *, struct inode *,
258c2ecf20Sopenharmony_ci			  struct buffer_head *, struct buffer_head *,
268c2ecf20Sopenharmony_ci			  struct ocfs2_alloc_context *,
278c2ecf20Sopenharmony_ci			  struct ocfs2_alloc_context *);
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#endif /* OCFS2_ACL_H */
30