]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: don't install /etc/securetty
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 31 Jan 2020 10:51:05 +0000 (11:51 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 1 Feb 2020 10:55:17 +0000 (11:55 +0100)
Having /etc/securetty in test containers prevents root from logging into
them:

```
Jan 31 10:15:11 systemd-testsuite login[69]: pam_securetty(login:auth): access denied: tty 'pts/0' is not secure !
Jan 31 10:15:11 systemd-testsuite login[69]: FAILED LOGIN 1 FROM pts/0 FOR root, Authentication failure
```

test/test-functions

index 372b03940884c999d45d07e75b9a97373057376d..1bba8e429bfc5b9b7452485d2863b0d6c0ff0d55 100644 (file)
@@ -737,7 +737,6 @@ install_config_files() {
     inst /etc/shells
     inst /etc/nsswitch.conf
     inst /etc/pam.conf || :
-    inst /etc/securetty || :
     inst /etc/os-release
     inst /etc/localtime
     # we want an empty environment