All of lore.kernel.org
 help / color / mirror / Atom feed
* Why does Python want to read /proc/meminfo
@ 2017-05-06  4:54 Ian Pilcher
       [not found] ` <87tw4yfs82.fsf@handshake.de>
  2017-05-14 11:16 ` Daniel Walsh
  0 siblings, 2 replies; 8+ messages in thread
From: Ian Pilcher @ 2017-05-06  4:54 UTC (permalink / raw)
  To: python-list; +Cc: selinux

I am trying to write an SELinux policy to confine a simple service that
I have written in Python, and I'm trying to decide whether to allow or
dontaudit various denials.

To start, I've reduced my service to the simplest case:

   #!/usr/bin/python

   import sys

   sys.exit()

Running this program in a confined domain generated the following
denial:

avc:  denied  { read } for  pid=2024 comm="denatc" name="meminfo" 
dev="proc" ino=4026532028 scontext=system_u:system_r:denatc_t:s0 
tcontext=system_u:object_r:proc_t:s0 tclass=file

The program does continue on and exit cleanly, so it doesn't seem to
strictly require the access.

Does anyone know why Python is trying to access this file, or what
functionality I might be missing if I don't allow the access?

-- 
========================================================================
Ian Pilcher                                         arequipeno@gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-05-14 11:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-06  4:54 Why does Python want to read /proc/meminfo Ian Pilcher
     [not found] ` <87tw4yfs82.fsf@handshake.de>
2017-05-06 16:07   ` Ian Pilcher
2017-05-06 18:00     ` Dominick Grift
2017-05-08 13:42       ` Stephen Smalley
2017-05-08 13:40         ` Dominick Grift
2017-05-07  4:46     ` Dan Stromberg
2017-05-08 13:32     ` Stephen Smalley
2017-05-14 11:16 ` Daniel Walsh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.