lol
1From f404e176e89c5d778363cb0177b44dc1aa5e1fda Mon Sep 17 00:00:00 2001
2From: wxt <3264117476@qq.com>
3Date: Tue, 5 Nov 2024 12:53:04 +0800
4Subject: [PATCH] Bind Nix Store
5
6---
7 src/core/judgingthread.cpp | 18 +++---------------
8 1 file changed, 3 insertions(+), 15 deletions(-)
9
10diff --git a/src/core/judgingthread.cpp b/src/core/judgingthread.cpp
11index 7201552..88aee9d 100644
12--- a/src/core/judgingthread.cpp
13+++ b/src/core/judgingthread.cpp
14@@ -893,21 +893,9 @@ void JudgingThread::runProgram() {
15 auto *runner = new QProcess(this);
16 QStringList argumentsList;
17
18- argumentsList << "--ro-bind"
19- << "/usr"
20- << "/usr";
21- argumentsList << "--symlink"
22- << "/usr/lib"
23- << "/lib";
24- argumentsList << "--symlink"
25- << "/usr/lib64"
26- << "/lib64";
27- argumentsList << "--symlink"
28- << "/usr/bin"
29- << "/bin";
30- argumentsList << "--symlink"
31- << "/usr/sbin"
32- << "/sbin";
33+ argumentsList << "--bind"
34+ << "/nix/store"
35+ << "/nix/store";
36 argumentsList << "--tmpfs"
37 << "/tmp";
38
39--
402.46.1
41