- (dtucker) [platform.c session.c] Move the BSDI setpgrp into platform.c.
This commit is contained in:
parent
4db380701d
commit
44a97be0cc
|
@ -28,6 +28,7 @@
|
||||||
after the user's groups are established and move the selinux calls into it.
|
after the user's groups are established and move the selinux calls into it.
|
||||||
- (dtucker) [platform.c session.c] Move the AIX setpcred+chroot hack into
|
- (dtucker) [platform.c session.c] Move the AIX setpcred+chroot hack into
|
||||||
platform.c
|
platform.c
|
||||||
|
- (dtucker) [platform.c session.c] Move the BSDI setpgrp into platform.c.
|
||||||
|
|
||||||
20101025
|
20101025
|
||||||
- (tim) [openbsd-compat/glob.h] Remove sys/cdefs.h include that came with
|
- (tim) [openbsd-compat/glob.h] Remove sys/cdefs.h include that came with
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: platform.c,v 1.6 2010/11/05 01:41:13 dtucker Exp $ */
|
/* $Id: platform.c,v 1.7 2010/11/05 01:45:18 dtucker Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006 Darren Tucker. All rights reserved.
|
* Copyright (c) 2006 Darren Tucker. All rights reserved.
|
||||||
|
@ -74,6 +74,10 @@ platform_setusercontext(struct passwd *pw)
|
||||||
if (getuid() == 0 || geteuid() == 0)
|
if (getuid() == 0 || geteuid() == 0)
|
||||||
solaris_set_default_project(pw);
|
solaris_set_default_project(pw);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_LOGIN_CAP) && defined (__bsdi__)
|
||||||
|
setpgid(0, 0);
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1476,9 +1476,6 @@ do_setusercontext(struct passwd *pw)
|
||||||
#endif /* HAVE_CYGWIN */
|
#endif /* HAVE_CYGWIN */
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LOGIN_CAP
|
#ifdef HAVE_LOGIN_CAP
|
||||||
# ifdef __bsdi__
|
|
||||||
setpgid(0, 0);
|
|
||||||
# endif
|
|
||||||
# ifdef USE_PAM
|
# ifdef USE_PAM
|
||||||
if (options.use_pam) {
|
if (options.use_pam) {
|
||||||
do_pam_setcred(use_privsep);
|
do_pam_setcred(use_privsep);
|
||||||
|
|
Loading…
Reference in New Issue