xrdp is originally made for Linux, handling setlogin/getlogin is not enough for *BSD. Some programs like mysql fail to get actual username. Also, this may cause a security issue like FreeBSD-SA-02:07.k5su due to setlogin system call. http://security.freebsd.org/advisories/FreeBSD-SA-02:07.k5su.asc Added file: - files/patch-sesman__session.c Fix: See attached patch. How-To-Repeat: Login to the host via xrdp, run `id -p` on xterm, the login name will be wrong. The result will be: $ id -p login root uid meta groups meta ex) mysql gets username as 'root' even if the actual user is not root: $ whoami meta $ mysql Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Login shuld be as same as uid: $ id -p uid meta groups meta
Class Changed From-To: sw-bug->maintainer-update Fix category (submitter is maintainer) (via the GNATS Auto Assign Tool)
some bugs are found in my patch. wait until sending new one.
State Changed From-To: open->suspended awaiting patch from submitter
Responsible Changed From-To: freebsd-ports-bugs->eadler awaiting patch from submitter
new patch is ready. see attached. the patch is also available here. http://www.club.kyutech.ac.jp/~meta/patches/patch-sesman__session_1.patch
State Changed From-To: suspended->open Submitter has fixed.
State Changed From-To: open->feedback Any chance of getting this commited upstream?
State Changed From-To: feedback->open per private reply, apperently not
Responsible Changed From-To: eadler->freebsd-x11 ENOTIME
Responsible Changed From-To: freebsd-x11->swills I'll take it.
State Changed From-To: open->closed Committed. Thanks!