Bug 243584 - OpenPAM openpam_ttyconv() fails to handle suspend/resume properly.
Summary: OpenPAM openpam_ttyconv() fails to handle suspend/resume properly.
Status: Closed Not Enough Information
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.3-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-25 11:34 UTC by Jonathan de Boyne Pollard
Modified: 2020-01-27 20:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan de Boyne Pollard 2020-01-25 11:34:53 UTC
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).
Comment 1 Conrad Meyer freebsd_committer 2020-01-26 01:10:49 UTC
Can you be more specific about what you think is a bug?  I.e., what is the expected behavior and how does it differ from what you've demonstrated?  Why do you expect that?