summaryrefslogtreecommitdiff
path: root/openbsd-compat/port-aix.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2009-08-20 16:20:50 +1000
committerDarren Tucker <dtucker@zip.com.au>2009-08-20 16:20:50 +1000
commit82edf23fffc4accf7686da08367e9fd5b5baa487 (patch)
tree34ffab829333d3e6c583edb7e49956773fe9540b /openbsd-compat/port-aix.h
parent2a5588daeb27c118a3a55a203a7be14978d96bf7 (diff)
- (dtucker) [session.c openbsd-compat/port-aix.h] Bugs #1249 and #1567: move
the setpcred call on AIX to immediately before the permanently_set_uid(). Ensures that we still have privileges when we call chroot and pam_open_sesson. Based on a patch from David Leonard.
Diffstat (limited to 'openbsd-compat/port-aix.h')
-rw-r--r--openbsd-compat/port-aix.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbsd-compat/port-aix.h b/openbsd-compat/port-aix.h
index 967bc723..3ac76ae1 100644
--- a/openbsd-compat/port-aix.h
+++ b/openbsd-compat/port-aix.h
@@ -1,4 +1,4 @@
-/* $Id: port-aix.h,v 1.30 2009/08/16 23:40:00 dtucker Exp $ */
+/* $Id: port-aix.h,v 1.31 2009/08/20 06:20:50 dtucker Exp $ */
/*
*
@@ -71,6 +71,11 @@ int passwdexpired(char *, char **);
# include <sys/timers.h>
#endif
+/* for setpcred and friends */
+#ifdef HAVE_USERSEC_H
+# include <usersec.h>
+#endif
+
/*
* According to the setauthdb man page, AIX password registries must be 15
* chars or less plus terminating NUL.