[Bug 2644] New: [PATCH] set uid for functions that use it to seek in lastlog and wtmp files

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Sun Nov 27 07:09:17 AEDT 2016


https://bugzilla.mindrot.org/show_bug.cgi?id=2644

            Bug ID: 2644
           Summary: [PATCH] set uid for functions that use it to seek in
                    lastlog and wtmp files
           Product: Portable OpenSSH
           Version: 7.2p2
          Hardware: amd64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: sshd
          Assignee: unassigned-bugs at mindrot.org
          Reporter: posix.ru at gmail.com

Set uid for functions that use it to seek in lastlog and wtmp files:


diff --git a/sshlogin.c b/sshlogin.c
index cea3e76..0fcae4c 100644
--- a/sshlogin.c
+++ b/sshlogin.c
@@ -134,6 +134,7 @@ record_login(pid_t pid, const char *tty, const char
*user, uid_t uid,

        li = login_alloc_entry(pid, user, host, tty);
        login_set_addr(li, addr, addrlen);
+       li->uid = uid;
        login_login(li);
        login_free_entry(li);
 }

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list