Page 1 of 1

How well does GRsecurity get along with those security LSMs?

PostPosted: Sat Sep 03, 2011 8:16 am
by konst
Do the LSMs step on the toes of grsecurity? Do they lessen the security provided by grsecurity?
Anyone have any experience or knowledge of how well the others play with grsecurity?
+
I don't mean SElinux but the other ones like TOMOYO and apparmor.

Re: How well does GRsecurity get along with those security L

PostPosted: Sat Sep 03, 2011 11:24 am
by LSD
LSMs or all MACs including grsec's RSBAC are only your last level of defense.

Imagine attacking a server with grsec protected kernel. You already found a way how to exploit your newest imap software and you are holding a remote root in your hands. Ofc you cant browse dirs, you cant write to /*/*/bin....unfortunately the net daemon is in group with others who can use raw sockets. Just redirect ssh sessions, wait for root to log in...kaboom you have gradm password and the game is over.

Re: How well does GRsecurity get along with those security L

PostPosted: Sun Sep 04, 2011 12:14 pm
by Lox

Re: How well does GRsecurity get along with those security L

PostPosted: Mon Sep 05, 2011 5:07 am
by spender
Grsecurity works fine with any other LSM. Ironically, if grsecurity's RBAC were implemented as an LSM, then it wouldn't co-operate with any other LSM ;)

As for LSD's comment, what he says is possible, but it's not as simple as he makes it sound. To make use of the special privilege, all the operations have to be done within the privileged task. For further reading, make note of the discussion of arbitrary code execution here:
viewtopic.php?f=7&t=2522

-Brad (from airport in Seoul)

Re: How well does GRsecurity get along with those security L

PostPosted: Mon Sep 05, 2011 8:35 am
by LSD
Yeah sorry Brad. I wanted to point out how worthless are policies (mostly what LSMs are doing) compared to real kernel hardening (grsec). Attacking a grsec was never easy.