summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKyle Laker <kyle@laker.email>2021-09-06 11:33:16 -0400
committerGitHub <noreply@github.com>2021-09-06 17:33:16 +0200
commitc1e6f2155668f9246a23951fde3e1ef5c3ef900c (patch)
tree25f93e9517dc3fa12f3b964780ff75966919732b /test
parentf77e015a88d219d09775c9e6a32ae49f5e40acb9 (diff)
downloadsystemd-c1e6f2155668f9246a23951fde3e1ef5c3ef900c.tar.gz
systemd-analyze: use config value in RestrictNamespaces id (#20645)
For most fields, the text shown by `.id` is the value that should be set in the unit file; however, for RestrictNamespaces, it is not. Changing this to show the actual text makes it more clear to a user what the actual change that needs to be made to the unit file is.
Diffstat (limited to 'test')
-rwxr-xr-xtest/units/testsuite-63.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/units/testsuite-63.sh b/test/units/testsuite-63.sh
index 4474cc3a2a..6899c66ae6 100755
--- a/test/units/testsuite-63.sh
+++ b/test/units/testsuite-63.sh
@@ -412,43 +412,43 @@ cat <<EOF >/tmp/testfile.json
"weight": 1000,
"range": 1
},
-"RestrictNamespaces_CLONE_NEWUSER":
+"RestrictNamespaces_user":
{"description_good": "Servicecannotcreateusernamespaces",
"description_bad": "Servicemaycreateusernamespaces",
"weight": 1500,
"range": 1
},
-"RestrictNamespaces_CLONE_NEWNS":
+"RestrictNamespaces_mnt":
{"description_good": "Service cannot create file system namespaces",
"description_bad": "Service may create file system namespaces",
"weight": 500,
"range": 1
},
-"RestrictNamespaces_CLONE_NEWIPC":
+"RestrictNamespaces_ipc":
{"description_good": "Service cannot create IPC namespaces",
"description_bad": "Service may create IPC namespaces",
"weight": 500,
"range": 1
},
-"RestrictNamespaces_CLONE_NEWPID":
+"RestrictNamespaces_pid":
{"description_good": "Service cannot create process namespaces",
"description_bad": "Service may create process namespaces",
"weight": 500,
"range": 1
},
-"RestrictNamespaces_CLONE_NEWCGROUP":
+"RestrictNamespaces_cgroup":
{"description_good": "Service cannot create cgroup namespaces",
"description_bad": "Service may create cgroup namespaces",
"weight": 500,
"range": 1
},
-"RestrictNamespaces_CLONE_NEWNET":
+"RestrictNamespaces_net":
{"description_good": "Service cannot create network namespaces",
"description_bad": "Service may create network namespaces",
"weight": 500,
"range": 1
},
-"RestrictNamespaces_CLONE_NEWUTS":
+"RestrictNamespaces_uts":
{"description_good": "Service cannot create hostname namespaces",
"description_bad": "Service may create hostname namespaces",
"weight": 100,