Re: post_mountroot

From: Stephen Smalley (sdsat_private)
Date: Tue Dec 18 2001 - 08:57:29 PST

  • Next message: Serge E. Hallyn: "Re: post_mountroot"

    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
    linux-security-module mailing list

    This archive was generated by hypermail 2b30 : Tue Dec 18 2001 - 08:58:37 PST