Unix Technical Forum

semi-gripe/documentation: how to debug systrace issues

This is a discussion on semi-gripe/documentation: how to debug systrace issues within the mailing.openbsd.tech forums, part of the OpenBSD category; --> Can't believe this kind of use case has not been foreseen with respect to systrace... Case in point: a ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 09:26 AM
Marc Espie
 
Posts: n/a
Default semi-gripe/documentation: how to debug systrace issues

Can't believe this kind of use case has not been foreseen with
respect to systrace...

Case in point: a rather large program in ports (cmake) is giving
out systrace warnings. I don't know where in the source, I just
see some fswrite warnings and the paths are rather generic enough
(okay, so it's trying to write to /usr, fine).

Reading through systrace, the only things I can do from a systrace
config file is allow/permit/ask. There's no way to just abort the
faulty program (sending it a SIGTRAP or whatever). So, wee, debug.
(and also, is it wise ? I mean, you have a program you're keeping
under systrace. You're assuming systrace is 100% protection, right ?
This is just wrong compared to the way inetd functions, where you
CAN have violations simply NOT KEEP ON THE OFFENDING DAEMON).

I ended up turning those deny into `ask', waited for the requester to
show up, and attached a gdb to the running process at that point...

This works, but it is counter-intuitive.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:45 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com