Follow-up for: "Merge libc_vfs plugin into libc"

This patch avoids the construction of the Genode::Config object in Noux
processes. The construction of this object would populate the Noux
process with additional capabilities, which cannot be handled by
'fork()'.
This commit is contained in:
Stefan Kalkowski 2014-05-06 11:49:56 +02:00 committed by Norman Feske
parent 42cce8668b
commit 1f9890d635
2 changed files with 6 additions and 4 deletions

View File

@ -164,7 +164,8 @@ class Libc_file_system_factory : public Vfs::File_system_factory
namespace Libc {
static Genode::Xml_node config()
Genode::Xml_node config() __attribute__((weak));
Genode::Xml_node config()
{
return Genode::config()->xml_node().sub_node("libc");
}

View File

@ -68,10 +68,11 @@ enum { verbose_signals = false };
namespace Libc {
/*
* Override the weak function interface of the VFS plugin as Noux programs
* do not obtain a VFS configuration via Genode's config mechansim.
* Override the weak function interface of the libc and VFS plugin as Noux
* programs do not obtain such configuration via Genode's config mechanism.
*/
Genode::Xml_node vfs_config() { return Xml_node("<vfs/>"); }
Genode::Xml_node config() { return Xml_node("<libc/>"); }
Genode::Xml_node vfs_config() { return Xml_node("<vfs/>"); }
}