Re: question about bprm_ops->alloc_security(&bprm) (fwd)

From: Huagang Xie (xieat_private)
Date: Wed Feb 06 2002 - 18:38:15 PST

  • Next message: Chris Wright: "Re: question about bprm_ops->alloc_security(&bprm) (fwd)"

    What I want is to check the "envp" ( the envp passed to the
    sys_execve()).. current hook in do_execve() do not give me this envp, 
    the first one alloc_security(&bprm) is too early that the bprm do not 
    get envp from the copy_string yet..so I ask for another hook..but I found
    that the free_security(&bprm) can get me the envp in bprm structure, but
    it do not let me return an error from it. The best way for me is add a new
    hook after copy_string the envp..
    
    does this make it clear?
    
    Thanks,
    Huagang
    
    
    On Wed, 6 Feb 2002, Chris Wright wrote:
    
    > * Huagang Xie (xieat_private) wrote:
    > > If the 
    > > 	security_ops->bprm_ops->free_security(&bprm);
    > > can take a retval as a return value, it will be good for me.
    > > like,
    > > 	       if (retval >= 0) {
    > >                 /* execve success */
    > >                 retval = security_ops->bprm_ops->free_security(&bprm);
    > >                 return retval;
    > >         }
    > 
    > hmm, now i'm confused. at that point the loader is done.  you've "passed
    > the point of no return."  what are you trying to accomplish?
    > 
    > thanks,
    > -chris
    > _______________________________________________
    > linux-security-module mailing list
    > linux-security-moduleat_private
    > http://mail.wirex.com/mailman/listinfo/linux-security-module
    > 
    
    -- 
    LIDS secure linux kernel
    http://www.lids.org/
    1024D/B6EFB028 		4731 2BF7 7735 4DBD 3771  4E24 B53B B60A B6EF B028
    
    
    _______________________________________________
    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 Feb 06 2002 - 18:34:50 PST