Am 26.07.2011 17:19 schrieb Eldon Ziegler:
Is there a way to have the Python processor look only for bytecode
files, not .py files? We are seeing huge numbers of Linux audit messages
on production system on which only bytecode files are stored. The audit
subsystem is recording each open failure.

Is that really a problem? AFAIK there are many failing open() calls on the start of every program.

E.g.

open("/lib/bash/4.1/tls/i686/sse2/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1/tls/i686/sse2", 0xbfd3a350) = -1 ENOENT (No such file or directory) open("/lib/bash/4.1/tls/i686/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1/tls/i686", 0xbfd3a350) = -1 ENOENT (No such file or directory) open("/lib/bash/4.1/tls/sse2/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1/tls/sse2", 0xbfd3a350) = -1 ENOENT (No such file or directory) open("/lib/bash/4.1/tls/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1/tls", 0xbfd3a350) = -1 ENOENT (No such file or directory) open("/lib/bash/4.1/i686/sse2/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1/i686/sse2", 0xbfd3a350) = -1 ENOENT (No such file or directory) open("/lib/bash/4.1/i686/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1/i686", 0xbfd3a350) = -1 ENOENT (No such file or directory) open("/lib/bash/4.1/sse2/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1/sse2", 0xbfd3a350) = -1 ENOENT (No such file or directory) open("/lib/bash/4.1/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1", 0xbfd3a350) = -1 ENOENT (No such file or directory)
open("/lib/libncurses.so.5", O_RDONLY)  = 3

is a part of what happens if I start the MySQL client,

Even starting the bash results in

open("/lib/bash/4.1/tls/i686/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1/tls/i686/sse2", 0xbfe0c4d0) = -1 ENOENT (No such file or directory) open("/lib/bash/4.1/tls/i686/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1/tls/i686", 0xbfe0c4d0) = -1 ENOENT (No such file or directory) open("/lib/bash/4.1/tls/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1/tls/sse2", 0xbfe0c4d0) = -1 ENOENT (No such file or directory) open("/lib/bash/4.1/tls/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1/tls", 0xbfe0c4d0) = -1 ENOENT (No such file or directory) open("/lib/bash/4.1/i686/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1/i686/sse2", 0xbfe0c4d0) = -1 ENOENT (No such file or directory) open("/lib/bash/4.1/i686/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1/i686", 0xbfe0c4d0) = -1 ENOENT (No such file or directory) open("/lib/bash/4.1/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1/sse2", 0xbfe0c4d0) = -1 ENOENT (No such file or directory) open("/lib/bash/4.1/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/bash/4.1", 0xbfe0c4d0) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3

So can it really be such a huge problem?


Thomas
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to