3462d773d2
We should chown what we allocate ourselves, i.e. any pty we allocate ourselves. But for stuff we propagate, let's avoid that: we shouldn't make more changes than necessary. Fixes: #17229
6 lines
254 B
C
6 lines
254 B
C
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
#pragma once
|
|
|
|
int change_uid_gid_raw(uid_t uid, gid_t gid, const gid_t *supplementary_gids, size_t n_supplementary_gids, bool chown_stdio);
|
|
int change_uid_gid(const char *user, bool chown_stdio, char **ret_home);
|