diff options
Diffstat (limited to 'security/apparmor')
-rw-r--r-- | security/apparmor/apparmorfs.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c index 7320331b44ab..a27086d16f05 100644 --- a/security/apparmor/apparmorfs.c +++ b/security/apparmor/apparmorfs.c | |||
@@ -86,7 +86,8 @@ static ssize_t profile_load(struct file *f, const char __user *buf, size_t size, | |||
86 | } | 86 | } |
87 | 87 | ||
88 | static const struct file_operations aa_fs_profile_load = { | 88 | static const struct file_operations aa_fs_profile_load = { |
89 | .write = profile_load | 89 | .write = profile_load, |
90 | .llseek = default_llseek, | ||
90 | }; | 91 | }; |
91 | 92 | ||
92 | /* .replace file hook fn to load and/or replace policy */ | 93 | /* .replace file hook fn to load and/or replace policy */ |
@@ -107,7 +108,8 @@ static ssize_t profile_replace(struct file *f, const char __user *buf, | |||
107 | } | 108 | } |
108 | 109 | ||
109 | static const struct file_operations aa_fs_profile_replace = { | 110 | static const struct file_operations aa_fs_profile_replace = { |
110 | .write = profile_replace | 111 | .write = profile_replace, |
112 | .llseek = default_llseek, | ||
111 | }; | 113 | }; |
112 | 114 | ||
113 | /* .remove file hook fn to remove loaded policy */ | 115 | /* .remove file hook fn to remove loaded policy */ |
@@ -134,7 +136,8 @@ static ssize_t profile_remove(struct file *f, const char __user *buf, | |||
134 | } | 136 | } |
135 | 137 | ||
136 | static const struct file_operations aa_fs_profile_remove = { | 138 | static const struct file_operations aa_fs_profile_remove = { |
137 | .write = profile_remove | 139 | .write = profile_remove, |
140 | .llseek = default_llseek, | ||
138 | }; | 141 | }; |
139 | 142 | ||
140 | /** Base file system setup **/ | 143 | /** Base file system setup **/ |