mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-22 02:16:44 +00:00
Remove mirroring of 'lx_rpath' in 'app/chroot'
Thanks to the exclusive use of SCM rights for delegating access rights to memory objects and RPC entrypoints, Genode processes outside of core won't need to access any files.
This commit is contained in:
parent
7cb45e9648
commit
371b8fd12d
@ -145,9 +145,8 @@ int main(int, char **argv)
|
|||||||
{
|
{
|
||||||
using namespace Genode;
|
using namespace Genode;
|
||||||
|
|
||||||
static char chroot_path[MAX_PATH_LEN];
|
static char chroot_path[MAX_PATH_LEN];
|
||||||
static char cwd_path[MAX_PATH_LEN];
|
static char cwd_path[MAX_PATH_LEN];
|
||||||
static char genode_tmp_path[MAX_PATH_LEN];
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Read configuration
|
* Read configuration
|
||||||
@ -167,16 +166,12 @@ int main(int, char **argv)
|
|||||||
|
|
||||||
getcwd(cwd_path, sizeof(cwd_path));
|
getcwd(cwd_path, sizeof(cwd_path));
|
||||||
|
|
||||||
uid_t const uid = getuid();
|
|
||||||
snprintf(genode_tmp_path, sizeof(genode_tmp_path), "/tmp/genode-%d", uid);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Print diagnostic information
|
* Print diagnostic information
|
||||||
*/
|
*/
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
PINF("work directory: %s", cwd_path);
|
PINF("work directory: %s", cwd_path);
|
||||||
PINF("chroot path: %s", chroot_path);
|
PINF("chroot path: %s", chroot_path);
|
||||||
PINF("genode tmp path: %s", genode_tmp_path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -197,7 +192,6 @@ int main(int, char **argv)
|
|||||||
* environment.
|
* environment.
|
||||||
*/
|
*/
|
||||||
mirror_path_to_chroot(chroot_path, cwd_path);
|
mirror_path_to_chroot(chroot_path, cwd_path);
|
||||||
mirror_path_to_chroot(chroot_path, genode_tmp_path);
|
|
||||||
|
|
||||||
printf("changing root to %s ...\n", chroot_path);
|
printf("changing root to %s ...\n", chroot_path);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user