Lines Matching refs:dir
1770 struct inode *dir, in selinux_determine_inode_label() argument
1775 selinux_superblock(dir->i_sb); in selinux_determine_inode_label()
1784 const struct inode_security_struct *dsec = inode_security(dir); in selinux_determine_inode_label()
1794 static int may_create(struct inode *dir, in may_create() argument
1805 dsec = inode_security(dir); in may_create()
1806 sbsec = selinux_superblock(dir->i_sb); in may_create()
1819 rc = selinux_determine_inode_label(tsec, dir, &dentry->d_name, tclass, in may_create()
1838 static int may_link(struct inode *dir, in may_link() argument
1849 dsec = inode_security(dir); in may_link()
2900 static int selinux_inode_init_security(struct inode *inode, struct inode *dir, in selinux_inode_init_security() argument
2911 sbsec = selinux_superblock(dir->i_sb); in selinux_inode_init_security()
2915 rc = selinux_determine_inode_label(tsec, dir, qstr, in selinux_inode_init_security()
3001 static int selinux_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode) in selinux_inode_create() argument
3003 return may_create(dir, dentry, SECCLASS_FILE); in selinux_inode_create()
3006 static int selinux_inode_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dent… in selinux_inode_link() argument
3008 return may_link(dir, old_dentry, MAY_LINK); in selinux_inode_link()
3011 static int selinux_inode_unlink(struct inode *dir, struct dentry *dentry) in selinux_inode_unlink() argument
3013 return may_link(dir, dentry, MAY_UNLINK); in selinux_inode_unlink()
3016 static int selinux_inode_symlink(struct inode *dir, struct dentry *dentry, const char *name) in selinux_inode_symlink() argument
3018 return may_create(dir, dentry, SECCLASS_LNK_FILE); in selinux_inode_symlink()
3021 static int selinux_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mask) in selinux_inode_mkdir() argument
3023 return may_create(dir, dentry, SECCLASS_DIR); in selinux_inode_mkdir()
3026 static int selinux_inode_rmdir(struct inode *dir, struct dentry *dentry) in selinux_inode_rmdir() argument
3028 return may_link(dir, dentry, MAY_RMDIR); in selinux_inode_rmdir()
3031 static int selinux_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) in selinux_inode_mknod() argument
3033 return may_create(dir, dentry, inode_mode_to_security_class(mode)); in selinux_inode_mknod()