2012/8/19 Landry Breuil <lan...@openbsd.org> > > Can you elaborate a bit more on what's mandatory, optional, and why you > choose to add those two calls ?
The original code did setuid(LOGIN_SETUSER) already, and the openbsd ports already had the patch do setlogin(LOGIN_SETLOGIN), LOGIN_SETPATH, LOGIN_SETUMASK, LOGIN_SETENV can set by user itself, after login to X (.profile/.xinitrc), but LOGIN_SETPRIORITY, LOGIN_SETRESOURCES can not be set by user itself, after login to X, so I want to add those two call, and I think use different login class is wrong. (is it wrong?) Thank you.