Lines Matching refs:dir
335 static struct dentry *sel_make_dir(struct dentry *dir, const char *name,
1614 static int sel_make_avc_files(struct dentry *dir) in sel_make_avc_files() argument
1616 struct super_block *sb = dir->d_sb; in sel_make_avc_files()
1632 dentry = d_alloc_name(dir, files[i].name); in sel_make_avc_files()
1636 inode = sel_make_inode(dir->d_sb, S_IFREG|files[i].mode); in sel_make_avc_files()
1650 static int sel_make_ss_files(struct dentry *dir) in sel_make_ss_files() argument
1652 struct super_block *sb = dir->d_sb; in sel_make_ss_files()
1663 dentry = d_alloc_name(dir, files[i].name); in sel_make_ss_files()
1667 inode = sel_make_inode(dir->d_sb, S_IFREG|files[i].mode); in sel_make_ss_files()
1703 static int sel_make_initcon_files(struct dentry *dir) in sel_make_initcon_files() argument
1714 dentry = d_alloc_name(dir, s); in sel_make_initcon_files()
1718 inode = sel_make_inode(dir->d_sb, S_IFREG|S_IRUGO); in sel_make_initcon_files()
1801 struct dentry *dir) in sel_make_perm_files() argument
1816 dentry = d_alloc_name(dir, perms[i]); in sel_make_perm_files()
1821 inode = sel_make_inode(dir->d_sb, S_IFREG|S_IRUGO); in sel_make_perm_files()
1842 struct dentry *dir) in sel_make_class_dir_entries() argument
1844 struct super_block *sb = dir->d_sb; in sel_make_class_dir_entries()
1849 dentry = d_alloc_name(dir, "index"); in sel_make_class_dir_entries()
1853 inode = sel_make_inode(dir->d_sb, S_IFREG|S_IRUGO); in sel_make_class_dir_entries()
1863 dentry = sel_make_dir(dir, "perms", &fsi->last_class_ino); in sel_make_class_dir_entries()
1939 static struct dentry *sel_make_dir(struct dentry *dir, const char *name, in sel_make_dir() argument
1942 struct dentry *dentry = d_alloc_name(dir, name); in sel_make_dir()
1948 inode = sel_make_inode(dir->d_sb, S_IFDIR | S_IRUGO | S_IXUGO); in sel_make_dir()
1961 inc_nlink(d_inode(dir)); in sel_make_dir()