Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947307 - net-misc/gnome-remote-desktop requires a user named gnome-remote-desktop
Summary: net-misc/gnome-remote-desktop requires a user named gnome-remote-desktop
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-01 14:43 UTC by Benedikt Reinartz
Modified: 2025-01-03 23:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benedikt Reinartz 2025-01-01 14:43:30 UTC
The grdctl application requires a user named "gnome-remote-destkop" if it is not run in "system" mode:

https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/blob/master/src/grd-ctl.c?ref_type=heads#L1015:

  pw = getpwnam (GRD_USERNAME);
  if (geteuid () == pw->pw_uid)
    runtime_mode = GRD_RUNTIME_MODE_SYSTEM;

Since it unconditionally dereferences pw (boo!), a missing GRD_USERNAME user (hardcoded to gnome-remote-desktop) leads to segfaults.

Reproducible: Always

Steps to Reproduce:
1. Ensure the user gnome-remote-desktop does not exist
2. Install net-misc/gnome-remote-desktop
3. Run "grdctl status"
Actual Results:  
Segmentation fault

Expected Results:  
Shows status of the user's setup