LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-22-2006, 03:40 PM   #1
kingkhan2006
LQ Newbie
 
Registered: Jan 2006
Posts: 6

Rep: Reputation: 0
GDB functionality and SegExec in GRsecurity can't coexist ?


Hi people
This is what i understand from the grsecurity implementation .
With grsecurity enabled , the only way of getting gdb to debug a process is to disable restrictions using chpax/paxctl.


Most of the processess that run on my customised linux kernel needs to be debugged and at the same time needs grsecurity protection .

I have two problems staring out of this situation .
1]chpax does not disable restrictions run time . If i want to do remote debugging of process i dont want to kill the process .
Is there an alternative to killing the process ,running chpax on it and then debugging the process ?
What are the consquences or design constraints
of having to disable/enable grsec features run time using chpax?

2] If i use chpax on the binaries before i start the process , then binaries like sshd and xinetd will run unprotected defeating the very purpose of grsec .
[chpax -s binary] disables "segment exec " effectively exposing stack code execution via buffer overflow .
 
Old 03-23-2006, 07:32 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If I want to do remote debugging of process I dont want to kill the process. Is there an alternative to killing the process, running chpax on it and then debugging the process?
Check if the ACL example at http://www.grsecurity.net/gracldoc.h...gs_and_caveats under "PaX flags and caveats" is something you could use.


What are the consquences or design constraints of having to disable/enable grsec features run time using chpax?
Design constraints I don't know. Please ask the PAX team.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a firewall and bridge coexist? sys7em Linux - Networking 1 09-30-2005 12:43 AM
normal gdb and spec gdb for kgdb Igor007 Programming 1 09-23-2005 04:15 PM
normal gdb and spec gdb for kgdb Igor007 Linux - Newbie 1 09-23-2005 01:41 PM
gdb .. looking for 32 bit gdb.. for ia64 suse.. nkshirsagar SUSE / openSUSE 0 12-09-2004 03:02 AM
Can suse 9.1 and MDK 10 coexist on same box. d1l2w3 Linux - Software 1 07-08-2004 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration