mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
switch dentry_open() to struct path, make it grab references itself
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
bf349a4470
commit
765927b2d5
15 changed files with 106 additions and 151 deletions
|
@ -1297,7 +1297,7 @@ out:
|
|||
|
||||
#define NULL_FILE_NAME "null"
|
||||
|
||||
struct dentry *selinux_null;
|
||||
struct path selinux_null;
|
||||
|
||||
static ssize_t sel_read_avc_cache_threshold(struct file *filp, char __user *buf,
|
||||
size_t count, loff_t *ppos)
|
||||
|
@ -1838,7 +1838,7 @@ static int sel_fill_super(struct super_block *sb, void *data, int silent)
|
|||
|
||||
init_special_inode(inode, S_IFCHR | S_IRUGO | S_IWUGO, MKDEV(MEM_MAJOR, 3));
|
||||
d_add(dentry, inode);
|
||||
selinux_null = dentry;
|
||||
selinux_null.dentry = dentry;
|
||||
|
||||
dentry = sel_make_dir(sb->s_root, "avc", &sel_last_ino);
|
||||
if (IS_ERR(dentry)) {
|
||||
|
@ -1912,7 +1912,7 @@ static int __init init_sel_fs(void)
|
|||
return err;
|
||||
}
|
||||
|
||||
selinuxfs_mount = kern_mount(&sel_fs_type);
|
||||
selinux_null.mnt = selinuxfs_mount = kern_mount(&sel_fs_type);
|
||||
if (IS_ERR(selinuxfs_mount)) {
|
||||
printk(KERN_ERR "selinuxfs: could not mount!\n");
|
||||
err = PTR_ERR(selinuxfs_mount);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue