]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - fs/jffs2/acl.h
Merge git://git.infradead.org/hdrinstall-2.6
[mirror_ubuntu-bionic-kernel.git] / fs / jffs2 / acl.h
CommitLineData
652ecc20
KK
1/*
2 * JFFS2 -- Journalling Flash File System, Version 2.
aa98d7cf 3 *
652ecc20 4 * Copyright (C) 2006 NEC Corporation
aa98d7cf 5 *
652ecc20
KK
6 * Created by KaiGai Kohei <kaigai@ak.jp.nec.com>
7 *
8 * For licensing information, see the file 'LICENCE' in this directory.
9 *
10 */
de1f72fa 11struct jffs2_acl_entry {
aa98d7cf
KK
12 jint16_t e_tag;
13 jint16_t e_perm;
14 jint32_t e_id;
de1f72fa 15};
aa98d7cf 16
de1f72fa 17struct jffs2_acl_entry_short {
aa98d7cf
KK
18 jint16_t e_tag;
19 jint16_t e_perm;
de1f72fa 20};
aa98d7cf 21
de1f72fa 22struct jffs2_acl_header {
aa98d7cf 23 jint32_t a_version;
de1f72fa 24};
aa98d7cf 25
aa98d7cf
KK
26#ifdef CONFIG_JFFS2_FS_POSIX_ACL
27
28#define JFFS2_ACL_NOT_CACHED ((void *)-1)
29
30extern int jffs2_permission(struct inode *, int, struct nameidata *);
31extern int jffs2_acl_chmod(struct inode *);
32extern int jffs2_init_acl(struct inode *, struct inode *);
c7afb0f9 33extern void jffs2_clear_acl(struct jffs2_inode_info *);
aa98d7cf
KK
34
35extern struct xattr_handler jffs2_acl_access_xattr_handler;
36extern struct xattr_handler jffs2_acl_default_xattr_handler;
37
38#else
39
40#define jffs2_permission NULL
41#define jffs2_acl_chmod(inode) (0)
42#define jffs2_init_acl(inode,dir) (0)
c7afb0f9 43#define jffs2_clear_acl(f)
aa98d7cf
KK
44
45#endif /* CONFIG_JFFS2_FS_POSIX_ACL */