TOMOYO: Explicitly set file_operations->llseek pointer.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 8 Jul 2010 12:57:41 +0000 (21:57 +0900)
committerJames Morris <jmorris@namei.org>
Mon, 2 Aug 2010 05:34:57 +0000 (15:34 +1000)
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>
security/tomoyo/securityfs_if.c

index 9967c1c5c713bac56e25bf90c5f8b16d9f513d43..e43d5554b50628b823db9f026f98e2191bc6090e 100644 (file)
@@ -95,6 +95,7 @@ static const struct file_operations tomoyo_operations = {
        .poll    = tomoyo_poll,
        .read    = tomoyo_read,
        .write   = tomoyo_write,
+       .llseek  = noop_llseek,
 };
 
 /**