Update main.cpp

This commit is contained in:
snake-4
2024-04-10 00:52:12 +02:00
parent 33a9ff93f4
commit c797376230

View File

@@ -65,7 +65,7 @@ public:
* postAppSpecialize is after seccomp setup.
* So we unshare here to create an app mount namespace.
*/
if (unshare(CLONE_NEWNS) == -1)
if (old_unshare(CLONE_NEWNS) == -1)
{
LOGE("unshare(CLONE_NEWNS) returned -1: %d (%s)", errno, strerror(errno));
return;