[SEL_CONTEXT] = {"context", &sel_context_ops, S_IRUGO|S_IWUGO}, 
[SEL_CONTEXT] = {"context", &transaction_ops, S_IRUGO|S_IWUGO}, 
static int sel_fill_super(struct super_block * sb, void * data, int silent){	int ret;	struct dentry *dentry;	struct inode *inode;	struct inode_security_struct *isec;	static struct tree_descr selinux_files[] = {		[SEL_LOAD] = {"load", &sel_load_ops, S_IRUSR|S_IWUSR},		[SEL_ENFORCE] = {"enforce", &sel_enforce_ops, S_IRUGO|S_IWUSR},		[SEL_CONTEXT] = {"context", &sel_context_ops, S_IRUGO|S_IWUGO},		[SEL_ACCESS] = {"access", &transaction_ops, S_IRUGO|S_IWUGO},		[SEL_CREATE] = {"create", &transaction_ops, S_IRUGO|S_IWUGO},		[SEL_RELABEL] = {"relabel", &transaction_ops, S_IRUGO|S_IWUGO},		[SEL_USER] = {"user", &transaction_ops, S_IRUGO|S_IWUGO},		[SEL_POLICYVERS] = {"policyvers", &sel_policyvers_ops, S_IRUGO},		[SEL_COMMIT_BOOLS] = {"commit_pending_bools", &sel_commit_bools_ops, S_IWUSR},		[SEL_MLS] = {"mls", &sel_mls_ops, S_IRUGO},		[SEL_DISABLE] = {"disable", &sel_disable_ops, S_IWUSR},		[SEL_MEMBER] = {"member", &transaction_ops, S_IRUGO|S_IWUGO},		[SEL_CHECKREQPROT] = {"checkreqprot", &sel_checkreqprot_ops, S_IRUGO|S_IWUSR},		/* last one */ {""}	};	ret = simple_fill_super(sb, SELINUX_MAGIC, selinux_files);	if (ret)		return ret;	dentry = d_alloc_name(sb->s_root, BOOL_DIR_NAME);	if (!dentry)		return -ENOMEM;	inode = sel_make_inode(sb, S_IFDIR | S_IRUGO | S_IXUGO);	if (!inode)		goto out;	inode->i_op = &simple_dir_inode_operations;	inode->i_fop = &simple_dir_operations;	d_add(dentry, inode);	bool_dir = dentry;	ret = sel_make_bools();	if (ret)		goto out;	dentry = d_alloc_name(sb->s_root, NULL_FILE_NAME);	if (!dentry)		return -ENOMEM;	inode = sel_make_inode(sb, S_IFCHR | S_IRUGO | S_IWUGO);	if (!inode)		goto out;	isec = (struct inode_security_struct*)inode->i_security;	isec->sid = SECINITSID_DEVNULL;	isec->sclass = SECCLASS_CHR_FILE;	isec->initialized = 1;	init_special_inode(inode, S_IFCHR | S_IRUGO | S_IWUGO, MKDEV(MEM_MAJOR, 3));	d_add(dentry, inode);	selinux_null = dentry;	dentry = d_alloc_name(sb->s_root, "avc");	if (!dentry)		return -ENOMEM;	ret = sel_make_dir(sb, dentry);	if (ret)		goto out;	ret = sel_make_avc_files(dentry);	if (ret)		goto out;	return 0;out:	dput(dentry);	printk(KERN_ERR "%s:  failed while creating inodes\n", __FUNCTION__);	return -ENOMEM;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/ce9982d048bb498c38ec1fe2ae59a44350882f3f/selinuxfs.c/buggy/security/selinux/selinuxfs.c