cuda.eclass: add sandbox exclusion for /proc/self/task

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone 2025-07-25 14:46:54 +02:00
parent 0e080b51a1
commit c646e2faa6
No known key found for this signature in database
GPG Key ID: FBE5925C5B02CE58

View File

@ -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 # Distributed under the terms of the GNU General Public License v2
# @ECLASS: cuda.eclass # @ECLASS: cuda.eclass
@ -154,6 +154,11 @@ cuda_add_sandbox() {
addpredict $i addpredict $i
fi fi
done done
if [[ $1 == '-w' ]]; then
addwrite /proc/self/task
else
addpredict /proc/self/task
fi
} }
# @FUNCTION: cuda_toolkit_version # @FUNCTION: cuda_toolkit_version