This page hosts some code that has been written for Linux-Privs. Comments
and suggestions should be directed at
linux-privs@mit.edu.
(WARNING: If you don't know what VERY ALPHA means, please do not try any
of the code on this page.. Specifically, no liability is assumed if anything
on this page causes you any trouble - of ANY sort!)
The beginnings of an audit
facility (this patch only audits "_exit()" events. To view/drain the audit
buffer, you may find readaudit.c useful. NOTE,
you need to start draining the audit buffer pretty quickly after boot if you
want to avoid the system locking up...
Securelevel is now a bitmap. Use to flip between capability based
system and root-based one.
Capabilities
task structure contains 3 capability sets
contents are readable from /proc/<PID>/capabilities
capabilities combined on exec()
kernel code for reading and writing capability resources.
Generic resource fork support (Ext2 implemented)
functions for reading and writing (deleting resource forks) are
present.
A small patch to e2fsprogs-1.06
that will make them safe for use with capability-aware ext2 filesystems.
This was provided by Zefram (who knew what he was doing...)
Here is a modified version of the 1.06 patch (made by me and containing
at least one kludge - look for XXX in the patch file) against e2fsprogs-1.09.
(Some audit code contributed by Christos
Ricudis - this is something written pre-POSIX but may have some parts
absorbed into the auditing code.. it may not.. we'll see.)
Solar Designer's stack patch is included along with the /tmp
restrictions.
You should then be able to boot this file to see how the linux-privs work
is coming along. (There are no passwords).
Note, the BootRoot disk does not have any hard disk, CD or any networking
support compiled in (the patch to the kernel does support these, but I want
to minimize hassles with this floppy). It is a simple self-contained system
that copies a compressed ext2 filesystem onto a 4 megabyte ramdisk and runs
from there.