Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix utmp accounting on system with bad glibc default #10460

Merged
merged 11 commits into from
Feb 25, 2022
Merged

Conversation

xacrimon
Copy link
Contributor

@xacrimon xacrimon commented Feb 18, 2022

On some systems, mainly RHEL, the _*_PATH macros used to resolve the utmp UNIX user accounting database are sometimes wrong. Did some digging, still not sure why, added further details as a comment. This seems to work everywhere and I've had users test this on affected systems.

This PR also adds additional diagnostics if realpath decides to fail in such a way that glibc exposes extra debugging info as a non-posix extension.

Needs backport to v8.

Fixes #8360

lib/srv/uacc/uacc_linux.go Outdated Show resolved Hide resolved
lib/srv/uacc/uacc.h Show resolved Hide resolved
@xacrimon xacrimon requested a review from smallinsky February 23, 2022 14:43
@xacrimon xacrimon enabled auto-merge (squash) February 24, 2022 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

re-exec (teleport exec) "Failed to launch: unknown error with code 7."
3 participants