1 |
In May I started seeing grsec messages about bonding. It was compiled into |
2 |
the kernel for ages, serving the primary multi-port NIC connected to a |
3 |
Cisco in 802.3ad mode. It turned out, that the driver was auto-loaded |
4 |
before I tried to echo the mode parameters during the boot process. I |
5 |
started compiling it as a module and specifying module parameters for it. |
6 |
That solved the problem for some months. Now the messages returned while |
7 |
bumping to recent hardened-sources (Gentoo) kernels (3.0.3 and 3.0.4). |
8 |
This is the message I'm talking about: |
9 |
|
10 |
grsec: denied auto-loading kernel module for a network device with |
11 |
CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-bonding |
12 |
instead. |
13 |
|
14 |
These messages appear before the RBAC systems would be activated, so I |
15 |
have no clue how I might determine the executable causing it and how I |
16 |
could make the binary to ask for CAP_NET_ADMIN. I suspect it's not a |
17 |
simple policy issue. Modprobe and all other relevant module binaries have |
18 |
CAP_NET_ADMIN in my rule set. I suppose udev triggers the auto load logic |
19 |
for bonding. The parameters are included in the necessary files, but the |
20 |
mechanism doesn't care about those. |
21 |
I got to the point, where I chose the dirty way and had altered the |
22 |
defaults in the kernel source. Of course it works, but I'm seeking a |
23 |
proper solution. |
24 |
|
25 |
Please let me know what am I supposed to do to get rid of this and make |
26 |
the system auto-load the module with the correct parameters. I have no |
27 |
clue where can I teach the system the suggested alias and how I make a |
28 |
binary to ask for the proper CAP. |
29 |
|
30 |
Thanks: |
31 |
Dw. |
32 |
-- |
33 |
dr Tóth Attila, Radiológus, 06-20-825-8057 |
34 |
Attila Toth MD, Radiologist, +36-20-825-8057 |