Comment 10 for bug 1565567

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

This patch was exposed by:

"also_check_sudo_group.diff"

(since user was in "sudo" group and should have stopped user_in_group before)

Right after being caused by:

commit a1663632dc5ab7e7c01e17206854b6f0ba0347dd
Author: Todd C. Miller <email address hidden>
Date: Fri Jan 22 17:04:59 2016 -0700

    Additional debugging for pwutil functions.

When debug messages accessed non-referenced pointer (struct passwd) inside the node.

---

Note:

Users that can't have "struct passwd" solved should explore something like:

---

commit d0c0662fda02260f8ffa4f59133bfe19ccd075a2
Author: Todd C. Miller <email address hidden>
Date: Sun Sep 25 06:35:40 2011 -0400

    If the invoking user cannot be resolved by uid fake the struct
    passwd and store it in the cache so we can delref it on exit.

---

Faking it, so any other function relying on accessing the node's structure will succeed.