mirror of
https://github.com/ilyakooo0/nix-bundle.git
synced 2024-10-10 13:37:55 +03:00
Merge pull request #64 from symphorien/fix-system
symlink /bin to /usr/bin
This commit is contained in:
commit
5caec2e85a
5
AppRun.c
5
AppRun.c
@ -207,6 +207,11 @@ int main(int argc, char *argv[]) {
|
||||
err_exit("mount(%s, %s)", usrdir, path_buf);
|
||||
}
|
||||
|
||||
snprintf(path_buf, sizeof(path_buf), "%s/bin", rootdir);
|
||||
if (symlink("/usr/bin", path_buf) < 0) {
|
||||
err_exit("symlink(/usr/bin, %s)", path_buf);
|
||||
}
|
||||
|
||||
// fixes issue #1 where writing to /proc/self/gid_map fails
|
||||
// see user_namespaces(7) for more documentation
|
||||
int fd_setgroups = open("/proc/self/setgroups", O_WRONLY);
|
||||
|
Loading…
Reference in New Issue
Block a user