linux-pam/examples
PavlNekrasov 63ba6e4aa1 examples/tty_conv: fix potential out of bound write in readline()
At the end of the loop the iterator `i` can be equal to
`PAM_MAX_RESP_SIZE`, which will cause an index call outside the array
in the `input[i] = '\0';`

Signed-off-by: Dmitry V. Levin <ldv@strace.io>
2024-09-13 08:00:00 +00:00
..
.gitignore examples: ignore generated tty_conv 2023-01-25 18:19:10 +01:00
blank.c Fix whitespace issues 2011-10-26 23:56:54 +00:00
check_user.c Fix whitespace issues 2011-10-26 23:56:54 +00:00
Makefile.am Add a conversation function example 2022-01-14 17:23:33 +01:00
meson.build meson: build Linux-PAM using meson 2024-09-10 08:00:00 +00:00
README Fix whitespace issues 2011-10-26 23:56:54 +00:00
tty_conv.c examples/tty_conv: fix potential out of bound write in readline() 2024-09-13 08:00:00 +00:00
vpass.c Fix whitespace issues 2011-10-26 23:56:54 +00:00
xsh.c Update xsh.c 2022-01-18 11:17:55 +01:00

(now we are getting networked apps, be careful to try and test on a
securely isolated system!)

These programs grant no privileges, but they give an idea of how well
the modules are working.

blank is new as of Linux-PAM-0.21. If you are writing/modifying an
application it might be a place to start...

xsh is new as of Linux-PAM-0.31, it is identical to blank, but invokes
/bin/sh if the user is authenticated.