Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * JFFS2 -- Journalling Flash File System, Version 2.
0003  *
0004  * Copyright © 2006  NEC Corporation
0005  *
0006  * Created by KaiGai Kohei <kaigai@ak.jp.nec.com>
0007  *
0008  * For licensing information, see the file 'LICENCE' in this directory.
0009  *
0010  */
0011 
0012 struct jffs2_acl_entry {
0013     jint16_t    e_tag;
0014     jint16_t    e_perm;
0015     jint32_t    e_id;
0016 };
0017 
0018 struct jffs2_acl_entry_short {
0019     jint16_t    e_tag;
0020     jint16_t    e_perm;
0021 };
0022 
0023 struct jffs2_acl_header {
0024     jint32_t    a_version;
0025     struct jffs2_acl_entry  a_entries[];
0026 };
0027 
0028 #ifdef CONFIG_JFFS2_FS_POSIX_ACL
0029 
0030 struct posix_acl *jffs2_get_acl(struct inode *inode, int type, bool rcu);
0031 int jffs2_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
0032           struct posix_acl *acl, int type);
0033 extern int jffs2_init_acl_pre(struct inode *, struct inode *, umode_t *);
0034 extern int jffs2_init_acl_post(struct inode *);
0035 
0036 #else
0037 
0038 #define jffs2_get_acl               (NULL)
0039 #define jffs2_set_acl               (NULL)
0040 #define jffs2_init_acl_pre(dir_i,inode,mode)    (0)
0041 #define jffs2_init_acl_post(inode)      (0)
0042 
0043 #endif  /* CONFIG_JFFS2_FS_POSIX_ACL */