Re: (no subject)

From: Russell Coker (russellat_private)
Date: Sun Jan 19 2003 - 14:56:21 PST

  • Next message: Christoph Hellwig: "Re: [RFC][PATCH] Add LSM sysctl hook to 2.5.59"

    On Sun, 19 Jan 2003 12:45,   wrote:
    >   I have some trouble implementing a lsm module.
    >
    >   In the module init function, when some error happens, for example,
    >   kmalloc failed, what shall I return ? I found that when insmod a kernel
    >   module, if the module init function returns -EINVAL, the kernel collapse.
    
    Firstly a disclaimer.  I don't know much about LSM coding, I'm only just 
    getting into it myself.
    
    However, I have been playing with User-Mode Linux 
    http://user-mode-linux.sourceforge.net/ .  UML is a patch for compiling a 
    Linux kernel as a Linux application which can then be "booted" under a 
    regular Linux.  This means that you can use GDB etc to debug a running 
    kernel.
    
    I have been doing my LSM coding experiments with UML and using GDB to debug it 
    with some success (GDB shows me what's wrong with my code, now I just have to 
    work out how to fix it).
    
    -- 
    http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
    http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
    http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
    http://www.coker.com.au/~russell/  My home page
    
    _______________________________________________
    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 : Sun Jan 19 2003 - 14:58:00 PST