1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

nice() for now. We'll go with cgroups another day

This commit is contained in:
Nicolas Viennot 2013-06-11 19:09:11 -04:00
parent def38c984a
commit e18b70af0b

View File

@ -187,6 +187,9 @@ static void jail(void)
if (setresuid(gid, gid, gid) < 0)
tmate_fatal("Cannot setresgid()");
if (nice(1) < 0)
tmate_fatal("Cannot nice()");
tmate_debug("Dropped priviledges to %s (%d,%d)",
TMATE_JAIL_USER, uid, gid);
}