diff options
Diffstat (limited to 'security/tomoyo/tomoyo.c')
-rw-r--r-- | security/tomoyo/tomoyo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/tomoyo.c b/security/tomoyo/tomoyo.c index dedd97d0c163..4120f5a0e1bc 100644 --- a/security/tomoyo/tomoyo.c +++ b/security/tomoyo/tomoyo.c | |||
@@ -173,7 +173,7 @@ static int tomoyo_file_fcntl(struct file *file, unsigned int cmd, | |||
173 | unsigned long arg) | 173 | unsigned long arg) |
174 | { | 174 | { |
175 | if (cmd == F_SETFL && ((arg ^ file->f_flags) & O_APPEND)) | 175 | if (cmd == F_SETFL && ((arg ^ file->f_flags) & O_APPEND)) |
176 | return tomoyo_check_rewrite_permission(file); | 176 | return tomoyo_path_perm(TOMOYO_TYPE_REWRITE, &file->f_path); |
177 | return 0; | 177 | return 0; |
178 | } | 178 | } |
179 | 179 | ||