Skip to contentSkip to conversation

PROBLEM: A Capability LSM Module serious bug

DISCUSSION Serge E. Hallyn 2 participants 3 messages Dec 8, 2003 5 messages 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]

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

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

#3 lore raw
Quoted 1 line

you retest in a stupid way!

That's what I said :)

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

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

#6 lore raw
Quoted 3 lines

I think patch to capability.c maybe a better way to fix this bug. Because dummy.c is a simple superuser mechanism, capability should be not visible to it. And capability modules may be extended to file system so as to

The main question is do we declare cap_effective to belong solely to capability.c, or do we want capability.c to trust previous LSM's computations of those values? So, even with the current case, if we insmod, rmmod, then re-insmod capability, do we want to revoke all previous cap_* computations?

It seems reasonable for it "belong" to capability.c (and I've heard of noone else wanting to use it). I just don't think we've explicitly declared this to be the case.

#7 lore raw
Quoted 5 lines · * Serge E. Hallyn ([email protected]) wrote:

The main question is do we declare cap_effective to belong solely to capability.c, or do we want capability.c to trust previous LSM's computations of those values? So, even with the current case, if we insmod, rmmod, then re-insmod capability, do we want to revoke all previous cap_* computations?

This is a common issue with the opaque blobs as well.

Quoted 3 lines

It seems reasonable for it "belong" to capability.c (and I've heard of noone else wanting to use it). I just don't think we've explicitly declared this to be the case.

Unfortunately, it's currently used by kernel proper. So we need a generic solution.

thanks,
-chris

Signature · 1 line
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net