Re: sys_security return value

From: Chris Wright (chrisat_private)
Date: Tue Nov 06 2001 - 16:15:14 PST

  • Next message: paul: "SNARE"

    * richard offer (offerat_private) wrote:
    > * frm hallynat_private "11/06/2001 06:42:14 PM -0500" | sed '1,$s/^/* /'
    > * 
    > * and tweaked security.c:sys_security to intercept the return value from the
    > * security_ops->sys_security() call.  The value returned from this call is
    > * in fact -38 as it should be, but the above code reports the returned
    > * value was -1.  Am I missing something obvious?
    > 
    > Take a look in errno, -38 should be there.
    
    yes, as richard mentioned, glibc turns a -ENOSYS into -1 and stores
    ENOSYS (not -ENOSYS) in your global errno.
    
    -chris
    
    _______________________________________________
    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 Nov 06 2001 - 16:21:40 PST