• Home
  • Raw
  • Download

Lines Matching refs:inode

225 static int sel_open_handle_status(struct inode *inode, struct file *filp)  in sel_open_handle_status()  argument
395 static int sel_open_policy(struct inode *inode, struct file *filp) in sel_open_policy() argument
397 struct selinux_fs_info *fsi = inode->i_sb->s_fs_info; in sel_open_policy()
425 if ((size_t)i_size_read(inode) != plm->len) { in sel_open_policy()
426 inode_lock(inode); in sel_open_policy()
427 i_size_write(inode, plm->len); in sel_open_policy()
428 inode_unlock(inode); in sel_open_policy()
447 static int sel_release_policy(struct inode *inode, struct file *filp) in sel_release_policy() argument
449 struct selinux_fs_info *fsi = inode->i_sb->s_fs_info; in sel_release_policy()
1253 static struct inode *sel_make_inode(struct super_block *sb, int mode) in sel_make_inode()
1255 struct inode *ret = new_inode(sb); in sel_make_inode()
1427 struct inode *inode = NULL; in sel_make_bools() local
1450 inode = sel_make_inode(bool_dir->d_sb, S_IFREG | S_IRUGO | S_IWUSR); in sel_make_bools()
1451 if (!inode) { in sel_make_bools()
1460 iput(inode); in sel_make_bools()
1464 isec = selinux_inode(inode); in sel_make_bools()
1475 inode->i_fop = &sel_bool_ops; in sel_make_bools()
1476 inode->i_ino = i|SEL_BOOL_INO_OFFSET; in sel_make_bools()
1477 d_add(dentry, inode); in sel_make_bools()
1668 static int sel_open_avc_cache_stats(struct inode *inode, struct file *file) in sel_open_avc_cache_stats() argument
1696 struct inode *inode; in sel_make_avc_files() local
1703 inode = sel_make_inode(dir->d_sb, S_IFREG|files[i].mode); in sel_make_avc_files()
1704 if (!inode) { in sel_make_avc_files()
1709 inode->i_fop = files[i].ops; in sel_make_avc_files()
1710 inode->i_ino = ++fsi->last_ino; in sel_make_avc_files()
1711 d_add(dentry, inode); in sel_make_avc_files()
1727 struct inode *inode; in sel_make_ss_files() local
1734 inode = sel_make_inode(dir->d_sb, S_IFREG|files[i].mode); in sel_make_ss_files()
1735 if (!inode) { in sel_make_ss_files()
1740 inode->i_fop = files[i].ops; in sel_make_ss_files()
1741 inode->i_ino = ++fsi->last_ino; in sel_make_ss_files()
1742 d_add(dentry, inode); in sel_make_ss_files()
1776 struct inode *inode; in sel_make_initcon_files() local
1786 inode = sel_make_inode(dir->d_sb, S_IFREG|S_IRUGO); in sel_make_initcon_files()
1787 if (!inode) { in sel_make_initcon_files()
1792 inode->i_fop = &sel_initcon_ops; in sel_make_initcon_files()
1793 inode->i_ino = i|SEL_INITCON_INO_OFFSET; in sel_make_initcon_files()
1794 d_add(dentry, inode); in sel_make_initcon_files()
1880 struct inode *inode; in sel_make_perm_files() local
1889 inode = sel_make_inode(dir->d_sb, S_IFREG|S_IRUGO); in sel_make_perm_files()
1890 if (!inode) { in sel_make_perm_files()
1895 inode->i_fop = &sel_perm_ops; in sel_make_perm_files()
1897 inode->i_ino = sel_perm_to_ino(classvalue, i + 1); in sel_make_perm_files()
1898 d_add(dentry, inode); in sel_make_perm_files()
1915 struct inode *inode = NULL; in sel_make_class_dir_entries() local
1922 inode = sel_make_inode(dir->d_sb, S_IFREG|S_IRUGO); in sel_make_class_dir_entries()
1923 if (!inode) { in sel_make_class_dir_entries()
1928 inode->i_fop = &sel_class_ops; in sel_make_class_dir_entries()
1929 inode->i_ino = sel_class_to_ino(index); in sel_make_class_dir_entries()
1930 d_add(dentry, inode); in sel_make_class_dir_entries()
1984 struct inode *inode = NULL; in sel_make_policycap() local
1996 inode = sel_make_inode(fsi->sb, S_IFREG | 0444); in sel_make_policycap()
1997 if (inode == NULL) { in sel_make_policycap()
2002 inode->i_fop = &sel_policycap_ops; in sel_make_policycap()
2003 inode->i_ino = iter | SEL_POLICYCAP_INO_OFFSET; in sel_make_policycap()
2004 d_add(dentry, inode); in sel_make_policycap()
2014 struct inode *inode; in sel_make_dir() local
2019 inode = sel_make_inode(dir->d_sb, S_IFDIR | S_IRUGO | S_IXUGO); in sel_make_dir()
2020 if (!inode) { in sel_make_dir()
2025 inode->i_op = &simple_dir_inode_operations; in sel_make_dir()
2026 inode->i_fop = &simple_dir_operations; in sel_make_dir()
2027 inode->i_ino = ++(*ino); in sel_make_dir()
2029 inc_nlink(inode); in sel_make_dir()
2030 d_add(dentry, inode); in sel_make_dir()
2040 struct inode *inode = sel_make_inode(sb, S_IFDIR | S_IRUGO | S_IXUGO); in sel_make_disconnected_dir() local
2042 if (!inode) in sel_make_disconnected_dir()
2045 inode->i_op = &simple_dir_inode_operations; in sel_make_disconnected_dir()
2046 inode->i_fop = &simple_dir_operations; in sel_make_disconnected_dir()
2047 inode->i_ino = ++(*ino); in sel_make_disconnected_dir()
2049 inc_nlink(inode); in sel_make_disconnected_dir()
2050 return d_obtain_alias(inode); in sel_make_disconnected_dir()
2060 struct inode *inode; in sel_fill_super() local
2108 inode = sel_make_inode(sb, S_IFCHR | S_IRUGO | S_IWUGO); in sel_fill_super()
2109 if (!inode) { in sel_fill_super()
2114 inode->i_ino = ++fsi->last_ino; in sel_fill_super()
2115 isec = selinux_inode(inode); in sel_fill_super()
2120 init_special_inode(inode, S_IFCHR | S_IRUGO | S_IWUGO, MKDEV(MEM_MAJOR, 3)); in sel_fill_super()
2121 d_add(dentry, inode); in sel_fill_super()