xtables-addons: match packets based on status of grsecurity RBAC
PATCH 1/1 xtables-addons: match packets based on status of grsecurity RBAC
This patch adds a module which is useful to users of grsecurity's RBAC system. It matches packets based on whether RBAC is enabled or disabled.
--- extensions/Mbuild | 1 + extensions/libxt_gradm.c | 96 ++++++++++++++++++++++++++++++++++++ extensions/libxt_gradm.man | 7 +++ include/linux/netfilter/xt_gradm.h | 9 +++ mconfig | 1 + 5 files changed, 114 insertions(+), 0 deletions(-)
extensions/Mbuild +1 -0
@@ -25,3 +25,4 @@ obj-${build_lscan} += libxt_lscan.so obj-${build_pknock} += pknock/ obj-${build_psd} += libxt_psd.so obj-${build_quota2} += libxt_quota2.so +obj-${build_gradm} += libxt_gradm.so
extensions/libxt_gradm.c new file +96 -0
96 lines not on this page · raw message
extensions/libxt_gradm.man new file +7 -0
@@ -0,0 +1,7 @@ +This module matches packets based on grsecurity RBAC status. +.TP +[\fB!\fP] \fB\-\-enabled\fP +Matches packets if grsecurity RBAC is enabled. +.TP +[\fB!\fP] \fB\-\-disabled\fP +Matches packets if grsecurity RBAC is disabled.
include/linux/netfilter/xt_gradm.h new file +9 -0
@@ -0,0 +1,9 @@ +#ifndef _XT_GRADM_H +#define _XT_GRADM_H + +struct xt_gradm_mtinfo { +__u16 flags; +__u16 invflags; +}; + +#endif
mconfig +1 -0
@@ -25,3 +25,4 @@ build_lscan=m build_pknock=m build_psd=m build_quota2=m +build_gradm=m
Quoted 3 lines · On Sunday 2010-10-17 15:52, [email protected] wrote:
This patch adds a module which is useful to users of grsecurity's RBAC system. It matches packets based on whether RBAC is enabled or disabled.
Can you elaborate a bit on how this is useful in conjunction with rulesets? I could imagine it be used with LSM selctx'es for example, or another extension that tests for other RBAC attributes.
Also, I don't see a xt_gradm.c in this patch.
thanks,
Jan
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 9 lines · Jan Engelhardt
Quoted 3 lines · On Sunday 2010-10-17 15:52, [email protected] wrote:
This patch adds a module which is useful to users of grsecurity's RBAC system. It matches packets based on whether RBAC is enabled or disabled.
Can you elaborate a bit on how this is useful in conjunction with rulesets? I could imagine it be used with LSM selctx'es for example, or another extension that tests for other RBAC attributes.
The idea here is that when the RBAC rulesets are not being enforced, the system is more vulnerable and the user wants stricter firewall rules. When RBAC is being enforced, one can relax the firewall and access to services which are now better protected. In practice this usually means allowing only access to some trusted IP(s) on boot before RBAC is turned on.
Quoted 3 lines
Also, I don't see a
xt_gradm.cin this patch.
This is part of the grsecurity patch which not only adds the xtable code but also the RBAC code. Without the entire RBAC stuff, xt_gradm doesn't make sense and so it is included with the grsecurity patch to the kernel and not this patch to xtables-addons.
See: http://grsecurity.net/download_stable.php
Quoted 7 lines
thanks,
Jan
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
- --
Anthony G. Basile, Ph. D.
Chair of Information Technology
D'Youville College
Buffalo, NY 14201
(716) 829-8197
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAky9fC0ACgkQl5yvQNBFVTWZCACfX+x2JtBHJ0m2SpjroQHxzRnc KQYAoKFli7u3ikP0PcB1uMtty07HyS0P
=RgNX
-----END PGP SIGNATURE-----
Quoted 11 lines · Anthony G. Basile
Quoted 9 lines · Jan Engelhardt
Quoted 3 lines · On Sunday 2010-10-17 15:52, [email protected] wrote:
This patch adds a module which is useful to users of grsecurity's RBAC system. It matches packets based on whether RBAC is enabled or disabled.
Can you elaborate a bit on how this is useful in conjunction with rulesets? I could imagine it be used with LSM selctx'es for example, or another extension that tests for other RBAC attributes.
Quoted 5 lines
The idea here is that when the RBAC rulesets are not being enforced, the system is more vulnerable and the user wants stricter firewall rules. When RBAC is being enforced, one can relax the firewall and access to services which are now better protected. In practice this usually means allowing only access to some trusted IP(s) on boot before RBAC is turned on.
Thanks, I've put this into a branch that will be merged in time for the 1.31 release.