Skip to content

Commit 7e2deb7

Browse files
Tetsuo Handaxjamesmorris
authored andcommitted
TOMOYO: Explicitly set file_operations->llseek pointer.
TOMOYO does not deal offset pointer. Thus seek operation makes no sense. Changing default seek operation from default_llseek() to no_llseek() might break some applications. Thus, explicitly set noop_llseek(). Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: James Morris <jmorris@namei.org>
1 parent af4f136 commit 7e2deb7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎security/tomoyo/securityfs_if.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ static const struct file_operations tomoyo_operations = {
9595
.poll = tomoyo_poll,
9696
.read = tomoyo_read,
9797
.write = tomoyo_write,
98+
.llseek = noop_llseek,
9899
};
99100

100101
/**

0 commit comments

Comments
 (0)