[Bug 243584] OpenPAM openpam_ttyconv() fails to handle suspend/resume properly.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jan 25 11:34:53 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243584

            Bug ID: 243584
           Summary: OpenPAM openpam_ttyconv() fails to handle
                    suspend/resume properly.
           Product: Base System
           Version: 11.3-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: J.deBoynePollard-newsgroups at NTLWorld.COM

Per https://unix.stackexchange.com/a/563986/5132 :

1. Run "su ; cat"
2. Press Control+Z (or whatever your susp character is) at the "Password:"
prompt.
3. Notice that there is no terminal echo as `cat` is reading.

Also:

1. Run "su ; stty echo ; fg"
2. Press Control+Z (or whatever your susp character is) at the "Password:"
prompt.
3. Notice that your password is now echoed as it is entered into `su`.

Use sh or compatible to replicate this, not the C shell, which does not execute
the commands after su.

Contrast getpass(3), which at least handles SIGTSTP (even though it does not do
so by also handling SIGCONT).

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


More information about the freebsd-bugs mailing list