Re: [PATCH] New sys_chmod() hook for the LSM framework

From: Lorenzo Hernández García-Hierro (lorenzo@private)
Date: Tue Feb 08 2005 - 13:27:54 PST


El mar, 08-02-2005 a las 12:58 -0800, Tony Jones escribió:
> On Tue, Feb 08, 2005 at 05:14:35PM +0100, Lorenzo Hernández García-Hierro wrote:
> > Hi,
> > 
> > As commented yesterday, I was going to release a few more hooks for some
> > *critical* syscalls, this one adds a hook to sys_chmod(), and makes us
> > able to apply checks and logics before releasing the operation to
> > sys_chmod().
> 
> What is your need above&beyond the inode_setattr hook which is called by
> notify_change (at the end of sys_chmod)?  Curious.

Yes, that's a good point :)
I forgot about the notify_change call within the (f)chmod syscalls,
thanks for the advice, it makes the check redundant.

I've wasted 5 minutes in it, damn me, I will check twice next time ;)

Cheers,
-- 
Lorenzo Hernández García-Hierro <lorenzo@private> 
[1024D/6F2B2DEC] & [2048g/9AE91A22][http://tuxedo-es.org]





This archive was generated by hypermail 2.1.3 : Tue Feb 08 2005 - 13:28:44 PST