Re: [PATCH 18/18] vfs: make no_llseek the default

From: Arnd Bergmann
Date: Thu Jul 08 2010 - 08:08:19 EST


On Thursday 08 July 2010, Tetsuo Handa wrote:
> Hello.
>
> Arnd Bergmann wrote:
> > All file operations now have an explicit .llseek
> > operation pointer, so we can change the default
> > action for future code.
>
> I saw patch for SELinux and IMA, but not for TOMOYO.
> TOMOYO has
>
> static const struct file_operations tomoyo_operations
>
> without .llseek operation pointer.
>
> TOMOYO does not deal offset pointer. Thus seek operation makes
> no sense. But returning -ESPIPE for seek operation might break
> some applications. What should I do for TOMOYO?

The semantic patch (16/18 in this series) had detected that case,
so I did not have to manually create a patch as for selinux
and ima.

The behaviour you want is noop_llseek, which is what gets used
when the semantic patch is applied. If you wish, you can
do the patch yourself and add .llseek = noop_llseek to the file
operations in your tree.

Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/