All of lore.kernel.org
 help / color / mirror / Atom feed
* virtualenv
@ 2015-01-30 16:43 Andrew Holway
  2015-01-30 17:28 ` virtualenv Stephen Smalley
  2015-01-30 17:31 ` virtualenv Stephen Smalley
  0 siblings, 2 replies; 5+ messages in thread
From: Andrew Holway @ 2015-01-30 16:43 UTC (permalink / raw)
  To: selinux

Hello,

We're using virtualenv so we can use weird and wonderful python 
libraries. In the process of writing the SELinux policy module we have 
found that the parent process is in the initrc_t domain rather than the 
desired myapp_t domain.

It seems the virtualenv parent process is not transitioning to the 
nativeapi_t domain because the shell command "source" is not a 
standalone executable therefore we cannot set this with the 
"nativeapi_exec_t" type label. Is there a way around that would be more 
elegant than using some kind of wrapper script?

Its a bit odd to me that the parent process can be in one domain and the 
children in another.

Thanks,

Andrew

        system_u:system_r:initrc_t:s0 4086
/usr/bin/sh -c source /var/lib/myapp/env/bin/activate && gunicorn ...
        system_u:system_r:myapp_t:s0 4091
\_ /var/lib/native-api/env/bin/python /var/lib/myapp/env/bin/gunicorn ...
        system_u:system_r:myapp_t:s0 4176
\_ /var/lib/native-api/env/bin/python 
/var/lib/native-api/env/bin/gunicorn ...

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

end of thread, other threads:[~2015-02-04 14:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-30 16:43 virtualenv Andrew Holway
2015-01-30 17:28 ` virtualenv Stephen Smalley
2015-02-04 11:51   ` virtualenv Andrew Holway
2015-02-04 14:05     ` virtualenv Stephen Smalley
2015-01-30 17:31 ` virtualenv Stephen Smalley

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.