Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:eapi-7 commit in: /
Date: Sat, 24 Feb 2018 12:59:07
Message-Id: 1519476924.34a7b3903ba14f05b7702784d83e3ef7ae1dc5f1.ulm@gentoo
1 commit: 34a7b3903ba14f05b7702784d83e3ef7ae1dc5f1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 4 17:44:06 2017 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 24 12:55:24 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=34a7b390
7
8 EAPI 7 has sandbox directory removal functions.
9
10 Bug: https://bugs.gentoo.org/630422
11
12 eapi-differences.tex | 4 ++++
13 pkg-mgr-commands.tex | 29 +++++++++++++++++++++++++++++
14 2 files changed, 33 insertions(+)
15
16 diff --git a/eapi-differences.tex b/eapi-differences.tex
17 index 7bddf41..96e0c0c 100644
18 --- a/eapi-differences.tex
19 +++ b/eapi-differences.tex
20 @@ -230,6 +230,9 @@ Most utilities die & \compactfeatureref{die-on-failure} &
21 \t{libopts} & \compactfeatureref{banned-commands} &
22 Yes & Yes & Yes & Yes & Banned \\
23
24 +Sandbox \t{rm*} commands & \compactfeatureref{sandbox-rm} &
25 + No & No & No & No & Yes \\
26 +
27 Query command options & \compactfeatureref{pm-query-options} &
28 None & None & \t{-{}-host-root} & \t{-{}-host-root} & \t{-b}, \t{-d}, \t{-r} \\
29
30 @@ -457,6 +460,7 @@ EAPI 7 is EAPI 6 with the following changes:
31 \item \t{nonfatal} is both a shell function and an external command, \featureref{nonfatal}.
32 \item \t{dohtml} banned, \featureref{banned-commands}.
33 \item \t{dolib} and \t{libopts} banned, \featureref{banned-commands}.
34 +\item Sandbox path removal commands, \featureref{sandbox-rm}.
35 \end{compactitem}
36
37 \ChangeWhenAddingAnEAPI{7}
38
39 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
40 index 7b01ab8..db871c3 100644
41 --- a/pkg-mgr-commands.tex
42 +++ b/pkg-mgr-commands.tex
43 @@ -87,6 +87,35 @@ argument. Ebuilds must not run any of these commands once the current phase func
44 \item[adddeny] Add a directory to the deny list.
45 \end{description}
46
47 +\featurelabel{sandbox-rm} Additionally, in EAPIs listed in table~\ref{tab:sandbox-command-table}
48 +as supporting the respective commands, the following commands are available:
49 +\begin{description}
50 +\item[rmread] Remove a directory from the permitted read list.
51 +\item[rmwrite] Remove a directory from the permitted write list.
52 +\item[rmpredict] Remove a directory from the predict list.
53 +\item[rmdeny] Remove a directory from the deny list.
54 +\end{description}
55 +
56 +All of these commands match paths exactly. Removing a directory that is not present on the list
57 +is silently ignored.
58 +
59 +\ChangeWhenAddingAnEAPI{7}
60 +\begin{centertable}{Additional sandbox commands in EAPIs}
61 + \label{tab:sandbox-command-table}
62 + \begin{tabular}{lllll}
63 + \toprule
64 + \multicolumn{1}{c}{\textbf{EAPI}} &
65 + \multicolumn{1}{c}{\textbf{\t{rmread}?}} &
66 + \multicolumn{1}{c}{\textbf{\t{rmwrite}?}} &
67 + \multicolumn{1}{c}{\textbf{\t{rmpredict}?}} &
68 + \multicolumn{1}{c}{\textbf{\t{rmdeny}?}} \\
69 + \midrule
70 + 0, 1, 2, 3, 4, 5, 6 & No & No & No & No \\
71 + 7 & Yes & Yes & Yes & Yes \\
72 + \bottomrule
73 + \end{tabular}
74 +\end{centertable}
75 +
76 \subsection{Package manager query commands}
77 These commands are used to extract information about the system. Ebuilds must not run any of
78 these commands in parallel with any other package manager command. Ebuilds must not run any of