commit: c646e2faa6e53df2001549c1c9e57eb10f3745f8
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 25 12:46:54 2025 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Jul 25 12:46:54 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c646e2fa
cuda.eclass: add sandbox exclusion for /proc/self/task
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
eclass/cuda.eclass | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass
index e54560197a8f..ca8e3aea381d 100644
--- a/eclass/cuda.eclass
+++ b/eclass/cuda.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: cuda.eclass
@@ -154,6 +154,11 @@ cuda_add_sandbox() {
addpredict $i
fi
done
+ if [[ $1 == '-w' ]]; then
+ addwrite /proc/self/task
+ else
+ addpredict /proc/self/task
+ fi
}
# @FUNCTION: cuda_toolkit_version