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:
parent
def38c984a
commit
e18b70af0b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user