summaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
authorFabiano Fidêncio <fidencio@redhat.com>2017-01-08 23:27:57 +0100
committerLukas Slebodnik <lslebodn@redhat.com>2017-01-25 12:33:12 +0100
commit087162b85e191af51637904702813969b35eaadc (patch)
tree56d4933d5c8cf9dae7cec107c32866b10ce2d6a3 /src/python
parent9657c178fb22bcbd3755db6d6fc2ec5f2e114841 (diff)
SERVER: Set the process group during server_setup()
By calling setpgid() in server_setup() we are able to kill the process in the watchdog by simply doing kill(-getpid(), SIGTERM). However, in order to have it working properly the SELinux policy for SSSD has to be updated and unless SSSD is ran with SELinux on permissive mode, each of the responders and the monitor will trigger a similar message: Jan 09 14:31:50 client1.ipa.example audit[11630]: AVC avc: denied { setpgid } for pid=11630 comm="sssd_pac" scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:system_r:sssd_t:s0 tclass=process permissive=0 It's important to say that till SELinux policy is fixed, we might end up leaking some processes. Related: https://fedorahosted.org/sssd/ticket/3266 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/python')
0 files changed, 0 insertions, 0 deletions