Re: post_mountroot

From: Serge E. Hallyn (hallynat_private)
Date: Tue Dec 18 2001 - 12:50:40 PST

  • Next message: Serge E. Hallyn: "Re: [RFC][PATCH] super block [alloc|free]_security"

    This sounds like a good solution to me.
    
    -serge
    
    Quoting Stephen Smalley (sdsat_private):
    > 
    > On Mon, 17 Dec 2001, Chris Wright wrote:
    > 
    > > also, mount_root() has moved from fs/super.c to init/do_mounts.c and now
    > > uses sys_mount() rather than handling it all in mount_root().  so i'm not
    > > sure how we can handle the sb_ops->post_mountroot() hook (currently it
    > > does not exist anywhere).
    > 
    > Suppose that we dropped the explicit super_block parameter to
    > post_mountroot, and called the hook in prepare_namespace after the
    > sys_chroot call.  The hook function should be able to determine the
    > super_block from current->fs->rootmnt->mnt_sb at that point.
    > 
    > --
    > Stephen D. Smalley, NAI Labs
    > ssmalleyat_private
    _______________________________________________
    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 : Tue Dec 18 2001 - 12:51:25 PST