namespace: move protect_{home|system} into NamespaceInfo

it's not entirely clear what shall be passed via parameter and what via
struct, but these two definitely fit well with the other protect_xyz
fields, hence let's move them over.

We probably should move a lot more more fields into the structure
actuall (most? all even?).
This commit is contained in:
Lennart Poettering
2020-08-24 20:10:30 +02:00
parent 68dd195c1b
commit 52b3d6523f
5 changed files with 16 additions and 25 deletions
-2
View File
@@ -163,8 +163,6 @@ static void test_protect_kernel_logs(void) {
NULL,
NULL,
NULL,
PROTECT_HOME_NO,
PROTECT_SYSTEM_NO,
0,
NULL,
0,
-2
View File
@@ -76,8 +76,6 @@ int main(int argc, char *argv[]) {
tmp_dir,
var_tmp_dir,
NULL,
PROTECT_HOME_NO,
PROTECT_SYSTEM_NO,
0,
NULL,
0,