Go to file
Tobias Kortkamp dbfba4e976 Workaround for issue #3: hide stdin from openpam_ttyconv
openpam_ttyconv checks if stdin is a terminal and if it is then does
not bother to open /dev/tty.  The result is that PAM writes the
password prompt directly to stdout.  In scenarios where stdin is a
terminal, but stdout is redirected to a file e.g. by running doas ls
&> ls.out interactively, the password prompt gets written to ls.out as
well.  By closing stdin first we forces PAM to read/write to/from the
terminal directly.  We restore stdin after authenticating.

Also see https://github.com/freebsd/freebsd/blob/master/contrib/openpam/lib/libpam/openpam_ttyconv.c#L293
2016-11-03 12:04:18 +01:00
doas.1 Initial upload from OpenBSD 2016-06-22 12:17:53 -03:00
doas.c Workaround for issue #3: hide stdin from openpam_ttyconv 2016-11-03 12:04:18 +01:00
doas.conf.5 This is the initial port of doas to FreeBSD. It compiles, installs and works. 2016-06-22 12:21:34 -03:00
doas.h Made sure when running as the effective user root (euid is zero) we actually become 2016-06-26 16:24:42 -03:00
env.c This commit allows doas to compile on Linux. Does not authenticate yet. 2016-06-26 11:41:31 -03:00
execvpe.c This is the initial port of doas to FreeBSD. It compiles, installs and works. 2016-06-22 12:21:34 -03:00
LICENSE Initial commit 2016-06-22 12:16:18 -03:00
Makefile Use setusercontext on FreeBSD and get rid of the geteuid/setuid workaround 2016-09-17 02:15:40 +02:00
parse.y This commit allows doas to compile on Linux. Does not authenticate yet. 2016-06-26 11:41:31 -03:00
reallocarray.c Fix reallocarray.c compilation on FreeBSD 2016-06-24 13:25:03 +02:00
tree.h This commit allows doas to compile on Linux. Does not authenticate yet. 2016-06-26 11:41:31 -03:00