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

Correct the UACC wtmp path #17416

Merged
merged 5 commits into from
Oct 21, 2022
Merged

Correct the UACC wtmp path #17416

merged 5 commits into from
Oct 21, 2022

Conversation

jakule
Copy link
Contributor

@jakule jakule commented Oct 14, 2022

Currently, Teleport assumes that wtmp files are always stored in /var/run/wtmp which is not true for all distributions. This patch checks for the old path and /var/run/wtmp where Ubuntu, Centos, etc store the file. I also moved some code from the C to Go, as it's easier for us to maintain.

@jakule jakule mentioned this pull request Oct 14, 2022
@jakule jakule marked this pull request as ready for review October 17, 2022 16:34
@jakule jakule requested a review from xacrimon October 17, 2022 16:34
lib/srv/uacc/uacc_linux.go Outdated Show resolved Hide resolved
@jakule jakule enabled auto-merge (squash) October 21, 2022 15:04
Copy link
Collaborator

@r0mant r0mant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bot.

@jakule jakule merged commit 57b1c9f into master Oct 21, 2022
@github-actions
Copy link

@jakule See the table below for backport results.

Branch Result
branch/v10 Failed
branch/v11 Create PR

jakule added a commit that referenced this pull request Dec 14, 2022
jakule added a commit that referenced this pull request Dec 14, 2022
fheinecke pushed a commit that referenced this pull request Dec 16, 2022
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.

None yet

4 participants