mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 20:00:16 +02:00
FEXServer: Support socket path override
This is necessary for the fexserver to function correctly when chrooting in to our rootfs and doing things. Requires independent rootfs script modifications which will come with the next rootfs update. Problem comes down to a chroot supporting multiple users, where our typical use case is only one user. Bind the server file to a single server for the entire chroot session regardless of users, solving this problem inside the chroot. Fixes apt-get inside of chroot, which runs as user _apt.
This commit is contained in:
1 parent
e544591c9c
commit
fe1f00aadb
2 files changed
+13
-1
No files matched your search
@@ -351,6 +351,13 @@
|
||||
"Desc": [
|
||||
"Loads an AOT IR cache for the loaded executable."
|
||||
]
|
||||
},
|
||||
"ServerSocketPath": {
|
||||
"Type": "str",
|
||||
"Default": "",
|
||||
"Desc": [
|
||||
"Override for a FEXServer socket path. Only useful for chroots."
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -101,7 +101,12 @@ namespace FEXServerClient {
|
||||
}
|
||||
|
||||
std::string GetServerSocketFile() {
|
||||
return fmt::format("{}/{}.FEXServer.socket", std::filesystem::temp_directory_path().string(), ::geteuid());
|
||||
FEX_CONFIG_OPT(ServerSocketPath, SERVERSOCKETPATH);
|
||||
if (ServerSocketPath().empty()) {
|
||||
return fmt::format("{}/{}.FEXServer.socket", std::filesystem::temp_directory_path().string(), ::geteuid());
|
||||
}
|
||||
|
||||
return ServerSocketPath;
|
||||
}
|
||||
|
||||
int GetServerFD() {
|
||||
|
||||
Reference in new issue
Block a user