strange problem with grsec 1.9.7 and kernel 2.4.19

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

strange problem with grsec 1.9.7 and kernel 2.4.19

Postby piavka » Wed Oct 16, 2002 6:56 am

hello all.
we're trying to use grsecurity with an ipvs enabled kernel. ( ipvs 1.0.6 )
the machine is used as a realserver
we've activated grsec on learning mode, using the basic acl from the
documentation.
now, after a short time, the system starts to behave VERY strangely:
-->very important --> this happens even when we issue "gradm -D"
and grsec is not operational. not even booting helps. ( only booting to
another kernel version -> 2.4.18 + grsec 1.9.6 + ipvs 1.0.5 and disabling
grsec.)<-- <--
at first glance, all seems to b fine. BUT, several processes do not run
at all -> like apache, and others behave strangely -> ssh, telnet ...
as for apache: when we start apache, it seems to work, all logs r ok, even
an strace looks fine, but no process is found in memory!!!!
ssh: ssh works fine when we try to connect to the server directly, but
when we're trying to use the virtual server for ssh, we get no response
from sshd!!
telnet: same as ssh

several months ago, we tried to use grsec 1.9.5 on 2.4.18 (not ipvs
enabled) and encountered similar problems.

grsec was compiled with these options:
acl debugging msg
(un)mount logging
fork failur logging
time change logging
randomized pids
randomized ip ids
randomized tcp source ports
randomized rpc xids
altered ping ids
sysctl support


and the problems persists even when we disable them from
/proc//sys/kernel/grsecurity/

p.s. all our kernels r compiled with the hidden flag patch(4 arp) and the
bonding driver patch.
piavka
 
Posts: 20
Joined: Tue Jul 02, 2002 10:03 am

grsec to 1.9.7c

Postby piavka » Wed Oct 16, 2002 9:18 am

updating grsec to 1.9.7c did no good.
piavka
 
Posts: 20
Joined: Tue Jul 02, 2002 10:03 am

Postby spender » Wed Oct 16, 2002 11:09 am

are you sure your kernel is patched correctly? Does the problem happen when you're using just the grsecurity patch?

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Postby piavka » Wed Oct 16, 2002 2:48 pm

I had the same problem with plain kernel 2.4.18 just patched with grsec
a couple of mounths ago. Then i thought that maybe it was problem with
grsec which will dissapear with new version. But now the same problem with
new grsec version.
piavka
 
Posts: 20
Joined: Tue Jul 02, 2002 10:03 am

Postby spender » Wed Oct 16, 2002 3:02 pm

can you paste your ACL?

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

acl

Postby piavka » Thu Oct 17, 2002 3:47 am

piavka
 
Posts: 20
Joined: Tue Jul 02, 2002 10:03 am

Postby spender » Thu Oct 17, 2002 7:51 am

grsecurity can't be hiding your processes, since when grsecurity is disabled, no ACL related code is executed. Try just a clean 2.4.19 kernel with grsecurity.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

clarification

Postby piavka » Thu Oct 17, 2002 10:42 am

hello again.
i dont think u quit understood my problem:
its not that my processes r hidden, they r not there at all!!!!
anyway, just to b sure, i recompiled a vanilla 2.4.19, and viola!
i have exactly the same problems!! (-> with apache for example.)
piavka
 
Posts: 20
Joined: Tue Jul 02, 2002 10:03 am

Postby spender » Thu Oct 17, 2002 11:40 am

can you paste some logs to show what happens?

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Postby piavka » Mon Oct 21, 2002 7:25 am

hi spender,
sorry 4 the late reply.
anyway, i think i know whats wrong with apache.
take a look at this snipest from error-log:
[Mon Oct 21 13:18:27 2002] [info] mod_unique_id: using ip addr 132.72.41.61
[Mon Oct 21 13:18:28 2002] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 132.72.41.50 port 80

this ip (132.72.41.50) is an alias to a bond device

i dont know why i didnt notice this b4... i let my gaurd down 4 a sec....
now, why grsec stops this bind? even when grsec is disabled?

i think the problems with sshd and telnet r the same.
any suggestions????
piavka
 
Posts: 20
Joined: Tue Jul 02, 2002 10:03 am

problem solved

Postby piavka » Tue Oct 22, 2002 8:45 am

hi
the problem was with keepalived.
we resolved it, now all works fine.
thanks!!!!
piavka
 
Posts: 20
Joined: Tue Jul 02, 2002 10:03 am


Return to grsecurity support

cron