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

klishd: drop privileges in client connection #71

Closed
wants to merge 1 commit into from

Commits on Jul 2, 2023

  1. klishd: drop privileges in client connection

    When a client connects over the AF_UNIX socket we should drop privileges
    to match the uid and gid of that user.  The '%u' translation done by the
    klish_prompt() function needs the USER env. variable to be set, so we do
    that too here.
    
    Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
    troglobit committed Jul 2, 2023
    Configuration menu
    Copy the full SHA
    121ab5c View commit details
    Browse the repository at this point in the history