Re: chmod from LSM

From: Chris Wright (chrisat_private)
Date: Wed May 21 2003 - 11:27:14 PDT

  • Next message: Chris Wright: "Re: User mode"

    * Michael Halcrow (mhalcrowat_private) wrote:
    > Anyone have any good ways of chmod'ing a file from inside an LSM
    > module?  No hacks, please.  :-)
    
    Have you looked at the notify_change() path in the kernel?  It's
    exported, and is the interface for setting attributes (through the
    filesystem specific ->setattr op).
    
    cheers,
    -chris
    -- 
    Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net
    _______________________________________________
    linux-security-module mailing list
    linux-security-moduleat_private
    http://mail.wirex.com/mailman/listinfo/linux-security-module
    



    This archive was generated by hypermail 2b30 : Wed May 21 2003 - 11:30:03 PDT