Lines Matching refs:perm

35 #define HMDFS_PERM_XATTR "user.hmdfs.perm"
52 * | perm fix | permmnt | permdfs | permpkg | perm other
68 static inline bool is_perm_fix(__u16 perm)
70 return (perm & HMDFS_PERM_MASK) == HMDFS_PERM_FIX;
73 static inline bool is_perm_mnt(__u16 perm)
75 return (perm & HMDFS_PERM_MASK) == HMDFS_PERM_MNT;
78 static inline bool is_perm_dfs(__u16 perm)
80 return (perm & HMDFS_PERM_MASK) == HMDFS_PERM_DFS;
83 static inline bool is_perm_pkg(__u16 perm)
85 return (perm & HMDFS_PERM_MASK) == HMDFS_PERM_PKG;
88 static inline bool is_perm_other(__u16 perm)
90 return (perm & HMDFS_PERM_MASK) == HMDFS_PERM_OTHER;
103 /* LEVEL 0 perm fix - permmnt , only root dir */
106 /* LEVEL 1 perm dfs */
132 static inline bool is_data_dir(__u16 perm)
134 return (perm & HMDFS_DIR_TYPE_MASK) == HMDFS_DIR_DATA;
137 static inline bool is_service_dir(__u16 perm)
139 return (perm & HMDFS_DIR_TYPE_MASK) == HMDFS_DIR_SERVICES;
142 static inline bool is_pkg_dir(__u16 perm)
144 return (perm & HMDFS_DIR_TYPE_MASK) == HMDFS_DIR_PKG;
147 static inline bool is_pkg_sub_dir(__u16 perm)
149 return (perm & HMDFS_DIR_TYPE_MASK) == HMDFS_DIR_PKG_SUB;
152 static inline bool is_pkg_sub_file(__u16 perm)
154 return (perm & HMDFS_DIR_TYPE_MASK) == HMDFS_FILE_PKG_SUB;
157 static inline bool is_default_dir(__u16 perm)
159 return (perm & HMDFS_DIR_TYPE_MASK) == HMDFS_DIR_DEFAULT;
162 static inline bool is_default_file(__u16 perm)
164 return (perm & HMDFS_DIR_TYPE_MASK) == HMDFS_FILE_DEFAULT;
172 static inline bool is_pkg_auth(__u16 perm)
174 return (perm & AUTH_MASK) == AUTH_PKG;
177 static inline bool is_system_auth(__u16 perm)
179 return (perm & AUTH_MASK) == AUTH_SYSTEM;
182 static inline bool is_service_auth(__u16 perm)
184 return (perm & AUTH_MASK) == AUTH_SERVICES;
236 static inline __u16 hmdfs_perm_get_next_level(__u16 perm)
238 __u16 level = (perm & HMDFS_PERM_MASK) + 1;
251 struct dentry *dentry, __u16 *perm);
252 const struct cred *hmdfs_override_file_fsids(struct inode *dir, __u16 *perm);
254 int hmdfs_persist_perm(struct dentry *dentry, __u16 *perm);
261 __u16 *perm);
291 __u16 *perm)