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 .  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 
    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).
    --   My NSA Security Enhanced Linux packages  Bonnie++ hard drive benchmark    Postal SMTP/POP benchmark  My home page
    linux-security-module mailing list

    This archive was generated by hypermail 2b30 : Sun Jan 19 2003 - 14:58:00 PST