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

rewrite user home dir hardening #584

Merged
merged 6 commits into from Jan 28, 2023

Conversation

DonEstefan
Copy link
Contributor

  • enforces home dir ownership (in addition to folder permissions)
  • home dir locations are read from PAM instead of expecting them to be in "/home/*". This is more reliable and obsoletes a workaround for the "/home/lost+found" home dir of the non-existing "lost+found" user.

Before merging you might want to spend some extra thoughts on testing (I tested RHEL8 only).

@rndmh3ro
Copy link
Member

rndmh3ro commented Oct 20, 2022

Hey @DonEstefan,

I finally found some time to look at your PR.

The tests fail - it seems the variable regular_users is undefined. I just noticed that this PR builds upon the others.

rndmh3ro and others added 4 commits January 27, 2023 11:38
Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>
Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>
Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>
@rndmh3ro rndmh3ro requested a review from schurzi January 27, 2023 12:28
Co-authored-by: schurzi <github@drachen-server.de>
@rndmh3ro rndmh3ro merged commit 16e00b0 into dev-sec:master Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants