Skip to contentSkip to conversation

The disappearing sys_call_table export.

DISCUSSION Chuck Ebbert 4 participants 6 messages May 12, 2003 – May 13, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines · Alan Cox
Quoted 2 lines

...and on a related topic, if someone wrote a patch to optionally clear
the swap area at swapoff would it ever be accepted?

man dd ?

"That can be done manually" does not get you the check mark in
the list of features. Management wants idiot-resistant security.

#1 lore raw
Quoted 9 lines · Chuck Ebbert
Quoted 4 lines · Alan Cox
Quoted 2 lines

...and on a related topic, if someone wrote a patch to optionally clear
the swap area at swapoff would it ever be accepted?

man dd ?

"That can be done manually" does not get you the check mark in
the list of features. Management wants idiot-resistant security.

man dd
man bash

idiot proof != kernel side

And its still a waste of time because you dont have enough guarantees about things like drive layout.

#2 lore raw
In reply to Chuck Ebbert
Quoted 9 lines · Chuck Ebbert
Quoted 4 lines · Alan Cox
Quoted 2 lines

...and on a related topic, if someone wrote a patch to optionally clear
the swap area at swapoff would it ever be accepted?

man dd ?

"That can be done manually" does not get you the check mark in
the list of features. Management wants idiot-resistant security.

In particular, the code that handles the zeroing out of resource objects before re-use needs to be "inside" the trusted-base perimeter. This has been well-understood for years - even my August 83 copy of the Orange Book says (for class C2):

2.2.1.2 Object Reuse

All authorizations to the information contained within a storage object shall be revoked prior to initial assignment, allocation, or reallocation to a subject from the TCB's pool of unused storage objects. No information, including encrypted representations of information, produced by a prior subject's actions is to be available to any subject that obtains access to an object that has been released back to the system.

(OK.. it doesn't have to be in-kernel, but the function *does* have to be inside the TCB, not out in random userland)...

#3 lore raw
Quoted 7 lines · On Llu, 2003-05-12 at 23:12, [email protected] wrote:
Quoted 2 lines

"That can be done manually" does not get you the check mark in
the list of features. Management wants idiot-resistant security.

In particular, the code that handles the zeroing out of resource objects before re-use needs to be "inside" the trusted-base perimeter. This has been well-understood for years - even my August 83 copy of the Orange Book says (for class C2):

1. Base Linux is not C2 certified
2. C2 is obsolete
3. NSA SELinux can do the needed stuff from scanning the code
4. Even then data erasure is not guaranteed because of the drive logic

So you are back to crypting swap in the first place

#4 lore raw
Quoted 2 lines · Alan Cox

1. Base Linux is not C2 certified
2. C2 is obsolete

Right.. but the point was that the object-reuse stuff was known 20 years ago to have to be inside the TCB.... And in the Linux world, having /etc/rc?.d/ and all the dependent code inside the TCB is just... ugly.. ;)

#5 lore raw
In reply to Alan Cox
Quoted 7 lines · Alan Cox
Quoted 4 lines · On Llu, 2003-05-12 at 23:12, [email protected] wrote:

In particular, the code that handles the zeroing out of resource objects before re-use needs to be "inside" the trusted-base perimeter. This has been well-understood for years - even my August 83 copy of the Orange Book says (for class C2):

1. Base Linux is not C2 certified

No but it can be, provided appropriate steps are taken on the system, without recoding the kernel become C2 certified. C2 is not mandatory access control, it is still in the realm of discretionary access control. According to the orange book standard, it's the highest DAC standard.

Quoted 1 line

2. C2 is obsolete

Or in Common Criteria Equivalence, achieve EAL3 in various system security classes. No labelled security classes would be required.

Quoted 1 line

3. NSA SELinux can do the needed stuff from scanning the code

Yes but SELinux is not an attempt to get C2 ... it is more to try and get B1 equivalence (Labelled security) however B1 by itself is no good because it doesn't secure against the security officer itself, which is a desirable feature in order to achieve EAL4 for labeled security under common-criteria.

Linux kernel, as a whole, will not meet the EAL4 requirements as it stands, because it is not documented as per the EAL4 code documentation standard. This is from my direct discussions with two independent CC evaluation laboritory top technical advisors. The sheer size of the linux kernel code, and the speed at which it develops and enhances, makes it a bad candidate.

Quoted 1 line

4. Even then data erasure is not guaranteed because of the drive logic

Data-erasure is not a requirement to ensure a trusted-operating system, if it can be demonstrated that on a running system no one except the kernel-user can get access to the swap information. If along with this it can be proven (certified really) that the phyiscal security of the system meets a certain level of assurance then you can consider the environment trusted.

Quoted 2 lines

So you are back to crypting swap in the first place

But isn't swap crypting fun ? :-) Running encrypted swap is okay so long as we throw away the key after each session. This can be easily (famous last words) achieved under crypto kernels. I am not certain if such functionaility is being contemplated for the Linux kernel along with the new cryptoloop stuff, if there isn't i can volunteer to put something like that in - if we are interested. Are we?

Cheers,

Ahmed.