pax and grsecurity things..
Posted: Sun Dec 08, 2002 3:22 pm
Hi,
I've got a little problem with chpax and some logging issues with pax and grsec
(grsec-1.9.8-rc1, gradm for it and probably the newest chpax)
When I try to view or set flags for some programs using chpax
I just get error Bad file descriptor (in admin mode and only for some files):
# chpax -v /usr/sbin/sshd
/usr/sbin/sshd: Bad file descriptor
#file /usr/sbin/sshd
/usr/sbin/sshd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
Any ideas?
Also pax for some reason kills some of my programs and i only get
"PAX: terminating task: ..." to the logs.. It would be great it if gave a bit more
information about what happened and why pax killed it.. Now it's hard to tell if the
program does something wrong (ie. buffer overflow) or if pax does something wrong
(bad configuration, etc)
I tried to disable all the flags too, but the program was still terminated..
What do you think?
Then to grsec:
grsec: From x.x.x.x: attempt to open .. for reading by (updatedb:23092) UID(0) EUID(0), parent (slocate:17401) UID(0) EUID(0)
hm. "attempt to open .."
that doesn't tell too much.. maybe an inode should be shown there too?
(If there's an easy way to figure it out)
--
Tuomas silen
I've got a little problem with chpax and some logging issues with pax and grsec
(grsec-1.9.8-rc1, gradm for it and probably the newest chpax)
When I try to view or set flags for some programs using chpax
I just get error Bad file descriptor (in admin mode and only for some files):
# chpax -v /usr/sbin/sshd
/usr/sbin/sshd: Bad file descriptor
#file /usr/sbin/sshd
/usr/sbin/sshd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
Any ideas?
Also pax for some reason kills some of my programs and i only get
"PAX: terminating task: ..." to the logs.. It would be great it if gave a bit more
information about what happened and why pax killed it.. Now it's hard to tell if the
program does something wrong (ie. buffer overflow) or if pax does something wrong
(bad configuration, etc)
I tried to disable all the flags too, but the program was still terminated..
What do you think?
Then to grsec:
grsec: From x.x.x.x: attempt to open .. for reading by (updatedb:23092) UID(0) EUID(0), parent (slocate:17401) UID(0) EUID(0)
hm. "attempt to open .."
that doesn't tell too much.. maybe an inode should be shown there too?
(If there's an easy way to figure it out)
--
Tuomas silen