Skip to content

Commit 4b322f7

Browse files
committed
fix sshd pam for resolute
Ubuntu Resolute moved session handling to sshd-session; remove /usr/sbin/sshd from the regex once Noble is no longer supported.
1 parent bcbbad9 commit 4b322f7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

acceptance-tests/ipv4director/auditd/smoke_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ var _ = Describe("Auditd", func() {
6060
Expect(err).ToNot(HaveOccurred())
6161
Expect(exitStatus).To(Equal(0))
6262

63-
auditLoginRegexp := `.*type=USER_LOGIN.*exe="/usr/sbin/sshd".*res=success`
63+
// Ubuntu Resolute moved session handling to sshd-session;
64+
// remove /usr/sbin/sshd from the regex once Noble is no longer supported.
65+
auditLoginRegexp := `.*type=USER_LOGIN.*exe="(/usr/sbin/sshd|/usr/lib/openssh/sshd-session)".*res=success`
6466
Expect(output).To(MatchRegexp(auditLoginRegexp))
6567
})
6668
})

0 commit comments

Comments
 (0)