Skip to content

Commit

Permalink
TOMOYO: Explicitly set file_operations->llseek pointer.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tetsuo Handa authored and James Morris committed Aug 2, 2010
1 parent af4f136 commit 7e2deb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/tomoyo/securityfs_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ static const struct file_operations tomoyo_operations = {
.poll = tomoyo_poll,
.read = tomoyo_read,
.write = tomoyo_write,
.llseek = noop_llseek,
};

/**
Expand Down

0 comments on commit 7e2deb7

Please sign in to comment.