Home
last modified time | relevance | path

Searched refs:may_create (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dmcg.c939 int may_create = 0; in mlx4_ib_mcg_multiplex_handler() local
946 may_create = 1; in mlx4_ib_mcg_multiplex_handler()
957 group = acquire_group(ctx, &rec->mgid, may_create); in mlx4_ib_mcg_multiplex_handler()
/kernel/linux/linux-5.10/fs/
Dnamei.c2749 static inline int may_create(struct inode *dir, struct dentry *child) in may_create() function
2811 int error = may_create(dir, dentry); in vfs_create()
2834 int error = may_create(dir, dentry); in vfs_mkobj()
3545 int error = may_create(dir, dentry); in vfs_mknod()
3646 int error = may_create(dir, dentry); in vfs_mkdir()
3961 int error = may_create(dir, dentry); in vfs_symlink()
4050 error = may_create(dir, new_dentry); in vfs_link()
4257 error = may_create(new_dir, new_dentry); in vfs_rename()
/kernel/linux/linux-5.10/security/selinux/
Dhooks.c1780 static int may_create(struct inode *dir, in may_create() function
2941 return may_create(dir, dentry, SECCLASS_FILE); in selinux_inode_create()
2956 return may_create(dir, dentry, SECCLASS_LNK_FILE); in selinux_inode_symlink()
2961 return may_create(dir, dentry, SECCLASS_DIR); in selinux_inode_mkdir()
2971 return may_create(dir, dentry, inode_mode_to_security_class(mode)); in selinux_inode_mknod()