限制管理员重置为显式启动并隔离终端输入
This commit is contained in:
1 parent
0df6e0ee66
commit
f7325210ff
12 files changed
+646
-18
No files matched your search
@@ -22,6 +22,7 @@ func TestSystemdUnitIsManualStartOnly(t *testing.T) {
|
||||
"Restart=always",
|
||||
"Restart=on-failure",
|
||||
"ExecReload=",
|
||||
"ReadWritePaths=/run/systemd/ask-password",
|
||||
"PartOf=",
|
||||
"BindsTo=",
|
||||
"Wants=",
|
||||
@@ -41,6 +42,7 @@ func TestSystemdUnitIsManualStartOnly(t *testing.T) {
|
||||
"Restart=no",
|
||||
"PrivateNetwork=true",
|
||||
"RestrictAddressFamilies=AF_UNIX",
|
||||
"KillMode=mixed",
|
||||
} {
|
||||
if !strings.Contains(content, required) {
|
||||
t.Fatalf("smail-admin unit is missing %q", required)
|
||||
|
||||
Reference in new issue
Block a user