gnome-control-center/panels/user-accounts
Pablo Correa Gómez bb4acf75ef user-accounts: run-passwd: Redirect stderr to stdout in the child
The previous code was prone to race conditions if the child already
started writing to stdout before the dup2 call happened. This has
been detected in postmarketOS[1] and I also reproduced it in Alpine
Linux. Since passwd writes to stderr and linux-pam to stdout, the
redirection was needed. However, linux-pam was failing with
"Conversation error" since an fprintf(stdout, ...) call wasn't
able to write to an already-closed stdout.

This problem is fixed by setting the redirection in the child setup
function and ignoring the stderr pipe. It also fixes a leak, where
the stderr fd was simply ignored and never closed.

[1] https://gitlab.com/postmarketOS/pmaports/-/issues/1449
2022-06-20 01:33:36 +00:00
..
data user-accounts: Add cutout to avatar edit button 2022-03-07 15:59:46 +00:00
icons Add individual app icons 2022-01-31 14:08:22 +00:00
cc-add-user-dialog.c user-accounts: Try non TRANSLIT conversion if TRANSLIT conversion fails 2022-02-15 14:08:04 +00:00
cc-add-user-dialog.h user-accounts: Use gtk_dialog_run for CcAddUserDialog 2018-11-10 09:24:34 +13:00
cc-add-user-dialog.ui Add a few missing a11y labels to the users panel 2022-06-19 21:41:09 +00:00
cc-avatar-chooser.c users: Make FileChooser inside AvatarChooser transient to main window 2022-03-03 17:22:38 +01:00
cc-avatar-chooser.h users: Make FileChooser inside AvatarChooser transient to main window 2022-03-03 17:22:38 +01:00
cc-avatar-chooser.ui user-accounts: Port to gtk4/libadwaita implementing the new design 2022-02-08 13:29:56 +00:00
cc-crop-area.c user-accounts: Port to gtk4/libadwaita implementing the new design 2022-02-08 13:29:56 +00:00
cc-crop-area.h user-accounts: Port to gtk4/libadwaita implementing the new design 2022-02-08 13:29:56 +00:00
cc-fingerprint-dialog.c user-accounts: Reinstate fingerprint dialog 2022-02-28 15:47:42 +00:00
cc-fingerprint-dialog.h user-accounts: Implement new designed fingerprint dialog 2020-06-26 01:54:04 +00:00
cc-fingerprint-dialog.ui Add a few missing a11y labels to the users panel 2022-06-19 21:41:09 +00:00
cc-fingerprint-manager.c fingerprint-manager: Add state for state updating 2020-06-26 01:54:04 +00:00
cc-fingerprint-manager.h fingerprint-manager: Add state for state updating 2020-06-26 01:54:04 +00:00
cc-login-history-dialog.c user-accounts: Port to gtk4/libadwaita implementing the new design 2022-02-08 13:29:56 +00:00
cc-login-history-dialog.h user-accounts: Rename UmHistoryDialog to CcLoginHistoryDialog 2018-11-08 13:17:13 +00:00
cc-login-history-dialog.ui Add a few missing a11y labels to the users panel 2022-06-19 21:41:09 +00:00
cc-password-dialog.c user-accounts: Close password change dialog 2022-04-19 15:08:49 +00:00
cc-password-dialog.h user-accounts: Port to gtk4/libadwaita implementing the new design 2022-02-08 13:29:56 +00:00
cc-password-dialog.ui Add a few missing a11y labels to the users panel 2022-06-19 21:41:09 +00:00
cc-realm-manager.c user-accounts: Use g_autoptr/g_autofree 2021-01-08 15:25:07 +13:00
cc-realm-manager.h user-accounts: Rename UmRealmManager to CcRealmManager 2018-11-14 10:10:14 +13:00
cc-user-panel.c users: Make FileChooser inside AvatarChooser transient to main window 2022-03-03 17:22:38 +01:00
cc-user-panel.h user-accounts: Fix namespace of CcUserPanel 2018-11-06 16:00:36 +13:00
cc-user-panel.ui Add a few missing a11y labels to the users panel 2022-06-19 21:41:09 +00:00
fingerprint-strings.h user-accounts: Consistently return translated strings for fprint helper 2020-10-13 09:31:00 +00:00
meson.build sharing/remote-desktop: Initialize username/password if not set 2022-02-26 18:19:14 +00:00
org.gnome.controlcenter.user-accounts.policy.in user-accounts: Imply parental controls permissions when unlocking 2021-02-01 03:46:14 +00:00
pw-utils.c user-accounts: Fix libpwquality error handling 2018-09-10 22:04:23 +00:00
pw-utils.h user-accounts: Replace ifdefs with #pragma once 2018-06-01 11:04:18 +00:00
run-passwd.c user-accounts: run-passwd: Redirect stderr to stdout in the child 2022-06-20 01:33:36 +00:00
run-passwd.h user-accounts: Replace ifdefs with #pragma once 2018-06-01 11:04:18 +00:00
user-accounts.gresource.xml user-accounts: Port to gtk4/libadwaita implementing the new design 2022-02-08 13:29:56 +00:00
user-utils.c user-accounts: Replace deprecated g_spawn_check_exit_status 2022-05-31 15:21:37 +12:00
user-utils.h user-accounts: Port to gtk4/libadwaita implementing the new design 2022-02-08 13:29:56 +00:00