summaryrefslogtreecommitdiffstats
path: root/platform.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 07:43:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 07:43:00 +0000
commitf74e883352a52dd3ed454627dc159aa65f98d7f3 (patch)
treeef77b7637e7135f0f61cad9ae9923215ed60066b /platform.c
parentAdding debian version 1:9.7p1-7. (diff)
downloadopenssh-f74e883352a52dd3ed454627dc159aa65f98d7f3.tar.xz
openssh-f74e883352a52dd3ed454627dc159aa65f98d7f3.zip
Merging upstream version 1:9.8p1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'platform.c')
-rw-r--r--platform.c49
1 files changed, 2 insertions, 47 deletions
diff --git a/platform.c b/platform.c
index 4fe8744..4c4fe57 100644
--- a/platform.c
+++ b/platform.c
@@ -32,53 +32,8 @@
#include "openbsd-compat/openbsd-compat.h"
-extern int use_privsep;
extern ServerOptions options;
-void
-platform_pre_listen(void)
-{
-#ifdef LINUX_OOM_ADJUST
- /* Adjust out-of-memory killer so listening process is not killed */
- oom_adjust_setup();
-#endif
-}
-
-void
-platform_pre_fork(void)
-{
-#ifdef USE_SOLARIS_PROCESS_CONTRACTS
- solaris_contract_pre_fork();
-#endif
-}
-
-void
-platform_pre_restart(void)
-{
-#ifdef LINUX_OOM_ADJUST
- oom_adjust_restore();
-#endif
-}
-
-void
-platform_post_fork_parent(pid_t child_pid)
-{
-#ifdef USE_SOLARIS_PROCESS_CONTRACTS
- solaris_contract_post_fork_parent(child_pid);
-#endif
-}
-
-void
-platform_post_fork_child(void)
-{
-#ifdef USE_SOLARIS_PROCESS_CONTRACTS
- solaris_contract_post_fork_child();
-#endif
-#ifdef LINUX_OOM_ADJUST
- oom_adjust_restore();
-#endif
-}
-
/* return 1 if we are running with privilege to swap UIDs, 0 otherwise */
int
platform_privileged_uidswap(void)
@@ -125,7 +80,7 @@ platform_setusercontext(struct passwd *pw)
*/
if (getuid() == 0 || geteuid() == 0) {
if (options.use_pam) {
- do_pam_setcred(use_privsep);
+ do_pam_setcred();
}
}
# endif /* USE_PAM */
@@ -153,7 +108,7 @@ platform_setusercontext_post_groups(struct passwd *pw)
* Reestablish them here.
*/
if (options.use_pam) {
- do_pam_setcred(use_privsep);
+ do_pam_setcred();
}
#endif /* USE_PAM */