invoking python?
  • While tuning the selinux policy that I wrote for cyphesis, I noticed that it was trying to perform a stat() on /usr/bin/python. I didn't see any obvious reference to reading or invoking the python binary itself in cyphesis, and wondered if anyone knew what this was from? Perhaps the python library that is linked with cyphesis tries to do a stat() on the python binary? Or was there something else that I missed?
  • The specific calls as reported by strace are:

    6787 stat64("/sbin/python", 0xbfea94b4) = -1 ENOENT (No such file or directory)
    6787 stat64("/usr/sbin/python", 0xbfea94b4) = -1 ENOENT (No such file or directory)
    6787 stat64("/bin/python", 0xbfea94b4) = -1 ENOENT (No such file or directory)
    6787 stat64("/usr/bin/python", {st_mode=S_IFREG|0755, st_size=5852, ...}) = 0
    6787 readlink("/usr/bin/python", 0xbfea9515, 4096) = -1 EINVAL (Invalid argument)
  • I believe the python interpreter does this on startup to determine the correct python path. It makes very little sense to me, but as far as I am aware it is entirely outside the control of an application that embeds python?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID