Commit 2c7e2a3e authored by Tomáš Peterka's avatar Tomáš Peterka

Group writeable cgroup task file

parent 2d942896
...@@ -523,6 +523,7 @@ class Computer(object): ...@@ -523,6 +523,7 @@ class Computer(object):
with open(cpu_path + "/cpuset.cpu_exclusive", "wt") as fx: with open(cpu_path + "/cpuset.cpu_exclusive", "wt") as fx:
fx.write("1") # manages it exclusively fx.write("1") # manages it exclusively
os.chown(cpu_path + "/tasks", -1, self.software_gid) os.chown(cpu_path + "/tasks", -1, self.software_gid)
os.chmod(cpu_path + "/tasks", 0o664)
def prepare_cgroup(self): def prepare_cgroup(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment