Skip to content

pam_access: clean up the remote host matching code#345

Merged
t8m merged 1 commit intolinux-pam:masterfrom
t8m:pam_access-local
Apr 12, 2021
Merged

pam_access: clean up the remote host matching code#345
t8m merged 1 commit intolinux-pam:masterfrom
t8m:pam_access-local

Conversation

@t8m
Copy link
Copy Markdown
Member

@t8m t8m commented Apr 6, 2021

  • modules/pam_access/pam_access.c (from_match): Split out remote_match()
    function and avoid calling it when matching against LOCAL keyword.

@t8m t8m force-pushed the pam_access-local branch from 6d696d0 to c4dbba4 Compare April 6, 2021 12:55
@t8m
Copy link
Copy Markdown
Member Author

t8m commented Apr 6, 2021

I did one more change - moved the domain match to remote match as it makes no sense to do it against TTY or SERVICE.

@t8m
Copy link
Copy Markdown
Member Author

t8m commented Apr 6, 2021

@ldv-alt Please review

@jo-he
Copy link
Copy Markdown

jo-he commented Apr 6, 2021

closes #343

* modules/pam_access/pam_access.c (from_match): Split out remote_match()
  function and avoid calling it when matching against LOCAL keyword.
  There is also no point in doing domain match against TTY or SERVICE.
@t8m t8m force-pushed the pam_access-local branch from c4dbba4 to 0899203 Compare April 12, 2021 13:16
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.

3 participants