aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/securityfs_if.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/tomoyo/securityfs_if.c')
-rw-r--r--security/tomoyo/securityfs_if.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/security/tomoyo/securityfs_if.c b/security/tomoyo/securityfs_if.c
index a5bd76d7f6be..6410868c8a3d 100644
--- a/security/tomoyo/securityfs_if.c
+++ b/security/tomoyo/securityfs_if.c
@@ -34,7 +34,7 @@ static int tomoyo_open(struct inode *inode, struct file *file)
34 */ 34 */
35static int tomoyo_release(struct inode *inode, struct file *file) 35static int tomoyo_release(struct inode *inode, struct file *file)
36{ 36{
37 return tomoyo_close_control(file); 37 return tomoyo_close_control(file->private_data);
38} 38}
39 39
40/** 40/**
@@ -63,7 +63,7 @@ static unsigned int tomoyo_poll(struct file *file, poll_table *wait)
63static ssize_t tomoyo_read(struct file *file, char __user *buf, size_t count, 63static ssize_t tomoyo_read(struct file *file, char __user *buf, size_t count,
64 loff_t *ppos) 64 loff_t *ppos)
65{ 65{
66 return tomoyo_read_control(file, buf, count); 66 return tomoyo_read_control(file->private_data, buf, count);
67} 67}
68 68
69/** 69/**
@@ -79,7 +79,7 @@ static ssize_t tomoyo_read(struct file *file, char __user *buf, size_t count,
79static ssize_t tomoyo_write(struct file *file, const char __user *buf, 79static ssize_t tomoyo_write(struct file *file, const char __user *buf,
80 size_t count, loff_t *ppos) 80 size_t count, loff_t *ppos)
81{ 81{
82 return tomoyo_write_control(file, buf, count); 82 return tomoyo_write_control(file->private_data, buf, count);
83} 83}
84 84
85/* 85/*