According to PMS [1] and the Devmanual [2], only a single item is allowed as argument for addread, addwrite, adddeny and addpredict. However, the "die" message of these functions says (e.g. for addpredict): addpredict <colon-delimited list of paths> and indeed they accept such a colon-separated list of paths. [1] https://projects.gentoo.org/pms/8/pms.html#x1-12300012.3.3 [2] https://devmanual.gentoo.org/function-reference/sandbox-functions/
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=cb788dd9acf9f48a9c4934920ebadaa942fe0682 commit cb788dd9acf9f48a9c4934920ebadaa942fe0682 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2023-12-24 10:54:27 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2023-12-27 15:09:32 +0000 ebuild.sh: Warn about colon-separated argument in sandbox functions According to PMS and the Devmanual, only a single item is allowed as argument for addread, addwrite, adddeny and addpredict: https://projects.gentoo.org/pms/8/pms.html#x1-12300012.3.3 https://devmanual.gentoo.org/function-reference/sandbox-functions/ The previous usage message (contrary to Devmanual policy) had been added in commit 0c6454261c514f021a4ddce2415a68773027ed6a. Bug: https://bugs.gentoo.org/920654 Signed-off-by: Ulrich Müller <ulm@gentoo.org> NEWS | 4 ++++ bin/ebuild.sh | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a1f19cdd7a598070b7eb08b3954e677aa4868ad commit 0a1f19cdd7a598070b7eb08b3954e677aa4868ad Author: Sam James <sam@gentoo.org> AuthorDate: 2023-12-27 21:27:55 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-12-27 21:28:01 +0000 sys-apps/portage: add 3.0.59 Closes: https://bugs.gentoo.org/587088 Closes: https://bugs.gentoo.org/822033 Closes: https://bugs.gentoo.org/915494 Closes: https://bugs.gentoo.org/916135 Closes: https://bugs.gentoo.org/917120 Closes: https://bugs.gentoo.org/919862 Closes: https://bugs.gentoo.org/920095 Closes: https://bugs.gentoo.org/920258 Closes: https://bugs.gentoo.org/920537 Closes: https://bugs.gentoo.org/920654 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-3.0.59.ebuild | 246 +++++++++++++++++++++++++++++++++ 2 files changed, 247 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=5322648477d6ec82ac3df70de925902acbd1cc3f commit 5322648477d6ec82ac3df70de925902acbd1cc3f Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2024-12-31 08:43:41 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2024-12-31 08:43:41 +0000 ebuild.sh: A colon in sandbox function args is an error Bug: https://bugs.gentoo.org/920654 Signed-off-by: Ulrich Müller <ulm@gentoo.org> bin/ebuild.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)