Blame view

fs/9p/acl.h 1.67 KB
85ff872d3   Aneesh Kumar K.V   fs/9p: Implement ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  /*
   * Copyright IBM Corporation, 2010
   * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
   *
   * This program is free software; you can redistribute it and/or modify it
   * under the terms of version 2.1 of the GNU Lesser General Public License
   * as published by the Free Software Foundation.
   *
   * This program is distributed in the hope that it would be useful, but
   * WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   *
   */
  #ifndef FS_9P_ACL_H
  #define FS_9P_ACL_H
  
  #ifdef CONFIG_9P_FS_POSIX_ACL
  extern int v9fs_get_acl(struct inode *, struct p9_fid *);
4e34e719e   Christoph Hellwig   fs: take the ACL ...
19
  extern struct posix_acl *v9fs_iop_get_acl(struct inode *inode, int type);
be308f079   Al Viro   9p: switch v9fs_a...
20
  extern int v9fs_acl_chmod(struct inode *, struct p9_fid *);
3592ac444   Al Viro   9p: switch v9fs_s...
21
  extern int v9fs_set_create_acl(struct inode *, struct p9_fid *,
5fa6300ae   Al Viro   9p: split droppin...
22
  			       struct posix_acl *, struct posix_acl *);
d3fb61207   Al Viro   switch posix_acl_...
23
  extern int v9fs_acl_mode(struct inode *dir, umode_t *modep,
ad77dbce5   Aneesh Kumar K.V   fs/9p: Implement ...
24
  			 struct posix_acl **dpacl, struct posix_acl **pacl);
5fa6300ae   Al Viro   9p: split droppin...
25
  extern void v9fs_put_acl(struct posix_acl *dacl, struct posix_acl *acl);
85ff872d3   Aneesh Kumar K.V   fs/9p: Implement ...
26
  #else
4e34e719e   Christoph Hellwig   fs: take the ACL ...
27
  #define v9fs_iop_get_acl NULL
85ff872d3   Aneesh Kumar K.V   fs/9p: Implement ...
28
29
30
31
  static inline int v9fs_get_acl(struct inode *inode, struct p9_fid *fid)
  {
  	return 0;
  }
be308f079   Al Viro   9p: switch v9fs_a...
32
  static inline int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid)
6e8dc5555   Aneesh Kumar K.V   fs/9p: Update ACL...
33
34
35
  {
  	return 0;
  }
3592ac444   Al Viro   9p: switch v9fs_s...
36
37
  static inline int v9fs_set_create_acl(struct inode *inode,
  				      struct p9_fid *fid,
5fa6300ae   Al Viro   9p: split droppin...
38
39
  				      struct posix_acl *dacl,
  				      struct posix_acl *acl)
ad77dbce5   Aneesh Kumar K.V   fs/9p: Implement ...
40
41
42
  {
  	return 0;
  }
5fa6300ae   Al Viro   9p: split droppin...
43
44
45
46
  static inline void v9fs_put_acl(struct posix_acl *dacl,
  				struct posix_acl *acl)
  {
  }
d3fb61207   Al Viro   switch posix_acl_...
47
  static inline int v9fs_acl_mode(struct inode *dir, umode_t *modep,
ad77dbce5   Aneesh Kumar K.V   fs/9p: Implement ...
48
49
50
51
52
  				struct posix_acl **dpacl,
  				struct posix_acl **pacl)
  {
  	return 0;
  }
85ff872d3   Aneesh Kumar K.V   fs/9p: Implement ...
53
54
  #endif
  #endif /* FS_9P_XATTR_H */