Comment formatting.

pull/7/head
Ferry Boender 5 years ago
parent 173a8fe375
commit 5a94c6754d
  1. 10
      src/runscript.py

@ -11,10 +11,14 @@ import subprocess
def run_as(uid, gid, groups): def run_as(uid, gid, groups):
"""Closure that changes the current running user and groups. Called before """
executing scripts by Subprocess.""" Closure that changes the current running user and groups. Called before
executing scripts by Subprocess.
"""
def set_acc(): def set_acc():
"""Change user and groups""" """
Change user and groups
"""
os.setgroups(groups) os.setgroups(groups)
os.setgid(gid) os.setgid(gid)
os.setuid(uid) os.setuid(uid)

Loading…
Cancel
Save