From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 18/18] vfs: make no_llseek the default Date: Thu, 8 Jul 2010 14:08:06 +0200 Message-ID: <201007081408.06415.arnd@arndb.de> References: <1278538820-1392-1-git-send-email-arnd@arndb.de> <1278538820-1392-19-git-send-email-arnd@arndb.de> <201007082025.HDB82385.OOVHQSLtFFMFJO@I-love.SAKURA.ne.jp> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org To: Tetsuo Handa Return-path: In-Reply-To: <201007082025.HDB82385.OOVHQSLtFFMFJO@I-love.SAKURA.ne.jp> Sender: linux-security-module-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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