Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143986499
D16950.id47480.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16950.id47480.diff
View Options
Index: lib/libpam/modules/pam_exec/pam_exec.8
===================================================================
--- lib/libpam/modules/pam_exec/pam_exec.8
+++ lib/libpam/modules/pam_exec/pam_exec.8
@@ -74,7 +74,8 @@
Use the program exit status as the return code of the pam_sm_* function.
It must be a valid return value for this function.
.It Cm expose_authtok
-Write the authentication token to the program's standard input stream.
+Write the authentication token to the program's standard input stream,
+followed by a NUL character.
.It Cm --
Stop options parsing;
program and its arguments follow.
Index: lib/libpam/modules/pam_exec/pam_exec.c
===================================================================
--- lib/libpam/modules/pam_exec/pam_exec.c
+++ lib/libpam/modules/pam_exec/pam_exec.c
@@ -254,7 +254,8 @@
}
rc = pam_get_authtok(pamh, PAM_AUTHTOK, &authtok, NULL);
if (rc == PAM_SUCCESS) {
- authtok_size = strlen(authtok);
+ /* We include the trailing NUL-terminator. */
+ authtok_size = strlen(authtok) + 1;
} else {
openpam_log(PAM_LOG_ERROR, "%s: pam_get_authtok(): %s", func,
pam_strerror(pamh, rc));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 4, 12:01 AM (5 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28428110
Default Alt Text
D16950.id47480.diff (1 KB)
Attached To
Mode
D16950: pam_exec(8) expose_authtok should send a trailing NUL
Attached
Detach File
Event Timeline
Log In to Comment