Skip to content

Commit

Permalink
Merge pull request #120 from flatcar-linux/kai/login-shell-accept-sym…
Browse files Browse the repository at this point in the history
…link

kola/test/misc/users: Cover case of dereferenced login shell symlink
  • Loading branch information
pothos authored Jul 30, 2020
2 parents 99014d5 + 925d77a commit 88df9ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kola/tests/misc/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ func CheckUserShells(c cluster.TestCluster) {

username := userdata[0]
shell := userdata[6]
if shell == "/bin/sh" {
// gentent returns one entry for root with /bin/sh instead of /bin/bash
// but /bin/sh is anyway a symlink to /bin/bash
shell = "/bin/bash"
}
if shell != ValidUsers[username] && shell != "/sbin/nologin" {
badusers = append(badusers, user)
}
Expand Down

0 comments on commit 88df9ed

Please sign in to comment.