Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grsec kills snmp with signal 6. help!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dmotzev
n00b
n00b


Joined: 22 Jan 2006
Posts: 1

PostPosted: Sun Jan 22, 2006 6:51 pm    Post subject: grsec kills snmp with signal 6. help! Reply with quote

Hi there!

As stupid as it sounds, this was working fine with 2005.0... I migrated a key machine of my network to 2005.1 and now I can in no way execute the snmp daemon. The backtrace led nowhere - at first try to access /dev/urandom, snmpd get killed my grsec with signal 6. Meanwhile snmpwalk reports this:

Code:

snmpwalk: stack smashing attack in function netsnmp_udp_transport()
Aborted


And the grsec kernel log says this:

Code:

Jan 22 20:43:06 alphred grsec: From 85.187.214.196: signal 6 sent to /usr/sbin/snmpd[snmpd:10755] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0


Just my guess - I might have messed up the grsec kernel config but I don't quite believe it. Anyway, any ideas will be greatly appreciated!

Cheers!

Dan
Back to top
View user's profile Send private message
Sunthief
n00b
n00b


Joined: 22 Dec 2005
Posts: 34
Location: Grand Forks, BC

PostPosted: Tue Feb 14, 2006 9:19 pm    Post subject: Reply with quote

I just had the same problem on one of my AMD64 machines. I looked all over for the fix but there doesnt seem to be much help anywhere on the net. heres what I did that fixed the problem:

Code:
 USE="-tcpd -perl -ssl -ipv6" emerge net-snmp


I tried it first with removeing the ssl & ipv6, so it must of been either the perl or the tcpd that messed me up. Let me know if it works for you. Dont forget you can do a

Code:
 emerge -pv net-snmp


To see what flags are being used. Then try removing them one at a time till it works. GL
_________________
Nick Muzzio
www.sunthief.com
------------------------------------------
Sun E-250 Enterprise Server
Dual 400Mhz 64bit Ultra Sparc CPU's
2GB Ram
Back to top
View user's profile Send private message
eclipse99
n00b
n00b


Joined: 03 Oct 2004
Posts: 22

PostPosted: Wed Apr 05, 2006 4:11 pm    Post subject: It Worked For Me Too! Reply with quote

I had the same errors as you had and now it runs fine.
What could be the issue here?

My USE flag for ipv6 was disabled so this isn't the problem...
Back to top
View user's profile Send private message
eclipse99
n00b
n00b


Joined: 03 Oct 2004
Posts: 22

PostPosted: Mon Sep 25, 2006 9:23 am    Post subject: Solved! Reply with quote

I don't know exactly why but I found a solution:
Code:
USE="-perl -ssl -tcpd" emerge net-snmp
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Mon Sep 25, 2006 1:16 pm    Post subject: Reply with quote

This has nothing to do with grsec! grsec only logs the fact
that the executable was killed by signal 6. The real trouble
maker is ssp (stack-smashing-protector). This could either
be due to a real stack smashing attack or a simply an ssp
"bug". If you're willing to sacrifice ssp you could switch
your gcc to a non-ssp profile which should solve this problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum