Re: kernel stack challenge

Valdis.Kletnieks_at_vt.edu
Date: 04/05/04

  • Next message: Alex Riesen: "Re: 2.6.5: Solid freeze after removing a bluetooth usb dongle"
    To: Sergiy Lozovsky <serge_lozovsky@yahoo.com>
    Date:	Mon, 05 Apr 2004 15:27:02 -0400
    
    
    

    On Mon, 05 Apr 2004 10:59:40 PDT, Sergiy Lozovsky said:

    > 1. Give system administrator possibility to change
    > security policy easy enough without C programminig
    > inside the kernel (we should not expect system
    > administartor to be a kernel guru). Language of higher
    > lavel make code more compact (C - is too low level,
    > that's why people use PERL for example or LISP). Lisp
    > was chosen because of very compact VM - around 100K.

    Didn't seem to slow the SELinux crowd down any...

    You may not need the exact SELinux config language, but it does address the
    issue of making something fairly easy for the sysadmin to write while not
    requiring a large interpreter in the kernel (the kernel side of the selinuxfs
    pseudo-filesystem is all of 14K, the loadpolicy is about a 4K binary and a 60K
    shared library, and the policy compiler is about 100K and the shared lib).

    So you're including a much bigger interface for little gain. The total
    footprint of the two solutions is about the same, but SELinux the vast majority
    of it is in userspace, and only costs you when you're actually compiling/
    loading a new policy, whereas yours takes up 100K of kernel space all the
    time....

    > 2. Protect system from bugs in security policy created
    > by system administrator (user). LISP interpreter is a
    > LISP Virtual Machine (as Java VM). So all bugs are
    > incapsulated and don't affect kernel. Even severe bugs
    > in this LISP kernel module can cause termination of
    > user space application only (except of stack overflow
    > - which I can address). LISP error message will be
    > printed in the kernel log.

    If you think that "all bugs are encapsulated" actually means anything in the
    context of the Linux kernel, you're in for a very big surprise.

    For example - your Lisp error messages go through the kernel log, so you're
    using printk() and friends. Note that it *is* possible for a buggy call to
    printk() to cause problems for the kernel.

    
    

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


    • application/pgp-signature attachment: stored

  • Next message: Alex Riesen: "Re: 2.6.5: Solid freeze after removing a bluetooth usb dongle"

    Relevant Pages

    • Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation,pathname matching
      ... why not just extend SELinux to include AA functionality ... policy, and therefor no need to check the path. ... labels on files etc. ... into the kernel. ...
      (Linux-Kernel)
    • Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation,pathname matching
      ... policy, and therefor no need to check the path. ... labels on files etc. ... becouse the SELinux people don't want to have this in their code for one thing. ... policy is not supposed to be decided by the kernel. ...
      (Linux-Kernel)
    • Re: 2.6.14-rc2-git6 vs FC3
      ... Note that the name SELinux doesn't appear in SELinux error ... > and setting enforcing mode on boot works with these kernel versions. ... policy format, not the package version) supported by the kernel (based ... there could be permission denials due to new permissions ...
      (Fedora)
    • Re: Challenge for lisp lovers....
      ... to be not tied to a single HLL implementation (Lisp Machines ... is "a fault of people working on the kernel", ... (Why worry about *random* implementations, ... > that all languages must use the same bignum representation? ...
      (comp.lang.lisp)
    • Re: [Bug #11500] /proc/net bug related to selinux
      ... With which versions of which userspace packages? ... This seems to me to be an extremely fragile selinux user space policy. ... Why don't we have AppArmor in the kernel again? ...
      (Linux-Kernel)