Skip to contentSkip to conversation

Write-once file system

DISCUSSION Mike Young 3 participants 3 messages Jun 28, 2003 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mike Young

author
#1 lore raw

Hi Jens,

Interesting idea. I like it. I agree with the various comments about trust, especially as it pertains to administrators. However, I think at the very heart of this whole topic is the need to protect against "dubious" acts. The latest and greatest security measures and HIPAA acts have a need for archived, readily accessible, data that cannot be overwritten-- even if the CFO has a gun to the head of the administrator.

It sounds like this drives towards that end. It may be stronger than the requirement, it sure sounds like the direction things are going. Thanks for the input on it.

-Mike

Quoted 22 lines · Jens Benecke
Quoted 2 lines · Jason Holt

*Somebody* has to have root. Just like *something* on the disk has got to be physically capable of writing a sector that it shouldn't.

<delurk>

I am using GrSecurity (www.getrewted.net), which is a kernel patch that allows detailed ACLs and kernel security enhancements. Once these enhancements are configured (at run-time) and "echo 1 > /proc/sys/kernel/grsecuity/lock" is executed, it is _not_ possible (even for root) to change them again. One of these features is the ability to insmod/rmmod, another is the ability to open sockets, another is the ability to access raw devices.

Suppose we have a module that watches over file open calls to the file system driver (like the LD_PRELOAD tricks do) and deny write access whenever a file already exists.

Just an idea ...

#2 lore raw
In reply to a message not in the archive

One other thought wrt Mike Young's comments; trust in the enforcement system could be distributed cryptographically. Say you go with my suggestion of user-mode linux running on top of "real" linux which enforces your disk access policies. You have auditors observe the setting up of the machine, and install a script on the "real" side which rotates the "real" root password periodically to some random value. It then splits up that password using a cryptographic secret-splitting algorithm (they're extremely simple) and sends the pieces to selected individuals. They all have to get together and agree to put their pieces together any time you need access to the "real" root account.

This sort of setup could make a great network appliance for HIPPA shops.

Also,

On Sat, 28 Jun 2003, Jens Benecke wrote:
[...]

Quoted 7 lines

I am using GrSecurity (www.getrewted.net), which is a kernel patch that allows detailed ACLs and kernel security enhancements. Once these enhancements are configured (at run-time) and "echo 1 > /proc/sys/kernel/grsecuity/lock" is executed, it is _not_ possible (even for root) to change them again. One of these features is the ability to insmod/rmmod, another is the ability to open sockets, another is the ability to access raw devices.

[...]

I looked a bit at grsecurity.net, but didn't find anything right off the bat to explain how they accomplish this securely. It sounds... really suspicious, to me anyway. Do they actually prevent root from, say, manually issuing the machine code to talk to the disk? Or does it just keep him from doing it via the standard syscalls?

						-J
#3 lore raw
Quoted 5 lines · Jason Holt

I looked a bit at grsecurity.net, but didn't find anything right off the bat to explain how they accomplish this securely. It sounds... really suspicious, to me anyway. Do they actually prevent root from, say, manually issuing the machine code to talk to the disk? Or does it just keep him from doing it via the standard syscalls?

They limit what can be done with the system calls.

There is no way of avoiding system calls when accessing things in Linux (*), this is the difference between Linux and DOS.

(*) Presuming that you also limit access to /dev/kmem and /dev/mem.

Signature · 4 lines
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