qubesd: make qubesd socket qubes-group owned

QubesOS/qubes-issues#853
This commit is contained in:
Marek Marczykowski-Górecki 2017-02-27 21:42:06 +01:00
parent c454973596
commit f4616fc366
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -4,6 +4,7 @@ import asyncio
import functools
import io
import os
import shutil
import signal
import struct
import traceback
@ -156,6 +157,7 @@ def main(args=None):
old_umask = os.umask(0o007)
server = loop.run_until_complete(loop.create_unix_server(
functools.partial(QubesDaemonProtocol, app=args.app), QUBESD_SOCK))
shutil.chown(QUBESD_SOCK, group='qubes')
os.umask(old_umask)
del old_umask