Searched refs:perm (Results 1 – 12 of 12) sorted by relevance
/fs/sdcardfs/ |
D | derived_perm.c | 29 ci->data->perm = PERM_INHERIT; in inherit_derived_state() 38 void setup_derived_state(struct inode *inode, perm_t perm, userid_t userid, in setup_derived_state() argument 43 info->data->perm = perm; in setup_derived_state() 86 switch (parent_data->perm) { in get_derived_permission_new() 93 info->data->perm = PERM_ROOT; in get_derived_permission_new() 104 info->data->perm = PERM_ANDROID; in get_derived_permission_new() 113 info->data->perm = PERM_ANDROID_DATA; in get_derived_permission_new() 116 info->data->perm = PERM_ANDROID_DATA; in get_derived_permission_new() 119 info->data->perm = PERM_ANDROID_OBB; in get_derived_permission_new() 124 info->data->perm = PERM_ANDROID_MEDIA; in get_derived_permission_new() [all …]
|
D | sdcardfs.h | 168 perm_t perm; member 444 if (data->perm == PERM_PRE_ROOT) { in get_mode() 517 extern void setup_derived_state(struct inode *inode, perm_t perm,
|
D | inode.c | 307 && (pd->perm == PERM_ANDROID) && (pd->userid == 0)) in sdcardfs_mkdir() 312 ((pd->perm == PERM_ANDROID) in sdcardfs_mkdir()
|
D | packagelist.c | 159 if (parent_node && SDCARDFS_I(parent_node)->data->perm == PERM_ROOT) { in check_caller_access_to_name()
|
/fs/nfsd/ |
D | nfs4acl.c | 66 mask_from_posix(unsigned short perm, unsigned int flags) in mask_from_posix() argument 72 if (perm & ACL_READ) in mask_from_posix() 74 if (perm & ACL_WRITE) in mask_from_posix() 76 if ((perm & ACL_WRITE) && (flags & NFS4_ACL_DIR)) in mask_from_posix() 78 if (perm & ACL_EXECUTE) in mask_from_posix() 84 deny_mask_from_posix(unsigned short perm, u32 flags) in deny_mask_from_posix() argument 88 if (perm & ACL_READ) in deny_mask_from_posix() 90 if (perm & ACL_WRITE) in deny_mask_from_posix() 92 if ((perm & ACL_WRITE) && (flags & NFS4_ACL_DIR)) in deny_mask_from_posix() 94 if (perm & ACL_EXECUTE) in deny_mask_from_posix() [all …]
|
/fs/ceph/ |
D | addr.c | 1821 struct ceph_pool_perm *perm; in __ceph_pool_perm_get() local 1829 perm = rb_entry(*p, struct ceph_pool_perm, node); in __ceph_pool_perm_get() 1830 if (pool < perm->pool) in __ceph_pool_perm_get() 1832 else if (pool > perm->pool) in __ceph_pool_perm_get() 1836 perm->pool_ns, in __ceph_pool_perm_get() 1837 perm->pool_ns_len); in __ceph_pool_perm_get() 1843 have = perm->perm; in __ceph_pool_perm_get() 1863 perm = rb_entry(parent, struct ceph_pool_perm, node); in __ceph_pool_perm_get() 1864 if (pool < perm->pool) in __ceph_pool_perm_get() 1866 else if (pool > perm->pool) in __ceph_pool_perm_get() [all …]
|
D | mds_client.h | 316 int perm; member
|
/fs/9p/ |
D | vfs_inode.c | 643 struct dentry *dentry, char *extension, u32 perm, u8 mode) in v9fs_create() argument 671 err = p9_client_fcreate(ofid, name, perm, mode, extension); in v9fs_create() 677 if (!(perm & P9_DMLINK)) { in v9fs_create() 728 u32 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_create() local 732 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_ORDWR); in v9fs_vfs_create() 753 u32 perm; in v9fs_vfs_mkdir() local 760 perm = unixmode2p9mode(v9ses, mode | S_IFDIR); in v9fs_vfs_mkdir() 761 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_OREAD); in v9fs_vfs_mkdir() 844 u32 perm; in v9fs_vfs_atomic_open() local 866 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_atomic_open() [all …]
|
D | vfs_dir.c | 53 unsigned long perm = mistat->mode; in dt_type() local 56 if (perm & P9_DMDIR) in dt_type() 58 if (perm & P9_DMSYMLINK) in dt_type()
|
/fs/fat/ |
D | file.c | 426 umode_t mask, perm; in fat_sanitize_mode() local 438 perm = *mode_ptr & ~(S_IFMT | mask); in fat_sanitize_mode() 446 if ((perm & (S_IRUGO | S_IXUGO)) != (inode->i_mode & (S_IRUGO|S_IXUGO))) in fat_sanitize_mode() 449 if ((perm & S_IWUGO) && ((perm & S_IWUGO) != (S_IWUGO & ~mask))) in fat_sanitize_mode() 452 if ((perm & S_IWUGO) != (S_IWUGO & ~mask)) in fat_sanitize_mode() 456 *mode_ptr &= S_IFMT | perm; in fat_sanitize_mode()
|
/fs/ |
D | block_dev.c | 1536 int perm = 0; in __blkdev_get() local 1540 perm |= MAY_READ; in __blkdev_get() 1542 perm |= MAY_WRITE; in __blkdev_get() 1547 ret = devcgroup_inode_permission(bdev->bd_inode, perm); in __blkdev_get()
|
/fs/nfs/ |
D | nfs4idmap.c | 323 rkey->perm |= KEY_USR_VIEW; in nfs_idmap_get_key()
|