LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-18-2011, 04:14 PM   #1
keith2045
Member
 
Registered: Feb 2005
Location: Missour, USA
Posts: 83

Rep: Reputation: 15
python and audit


Hello all,

So i've setup auditing on a my system for any syscalls for any opens that fail (-a exit,always -F arch=b64 -S open -F success=0) and noticed that python is very noisy.

Maybe i'm not reading the log correctly, but comm=yum-updatesd-he exe=/usr/bin/python tells me that python is trying to run yum-updatesd? I've found a few other lines that have python as the exe but different comm values. But each line says that it's trying to open a file that doesnt exist. What is python doing? Can i change it?
 
Old 11-19-2011, 05:08 AM   #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
Quote:
Originally Posted by keith2045 View Post
So i've setup auditing on a my system for any syscalls for any opens that fail (-a exit,always -F arch=b64 -S open -F success=0) and noticed that python is very noisy. Maybe i'm not reading the log correctly, but comm=yum-updatesd-he exe=/usr/bin/python tells me that python is trying to run yum-updatesd? I've found a few other lines that have python as the exe but different comm values. But each line says that it's trying to open a file that doesnt exist. What is python doing? Can i change it?
Well, you explicitly watch failed opens so that's what you get. If it doesn't go against requirements why not try exclusion? Maybe something like "-F path!=/usr/bin/python"?
 
Old 11-19-2011, 08:00 AM   #3
keith2045
Member
 
Registered: Feb 2005
Location: Missour, USA
Posts: 83

Original Poster
Rep: Reputation: 15
True, but i'm just curious of why it's generating a lot of failed open attempts.
 
Old 11-19-2011, 10:09 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by keith2045 View Post
i'm just curious of why it's generating a lot of failed open attempts.
If you would strace them you'd see almost all processes do that due to dynamic linking with shared libraries: 'man ld.so; man ld' to start.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Logrotate - what is rotating /var/log/audit/audit.log? veeruk101 Linux - Newbie 3 11-03-2011 07:53 PM
How can I read the audit time stamp? msg=audit(1213186256.105:20663) abefroman Linux - Software 3 04-21-2011 06:37 PM
[Linux Audit]: Which groups should be allowed to read audit log files? quanba Linux - Security 1 11-15-2010 10:09 AM
error in line 5 of /etc/audit/audit.rules RHEL5u3 abti Red Hat 1 04-06-2010 05:42 PM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:26 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