2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Don't expose the implementation of the pivot_root state.

This commit is contained in:
Todd C. Miller
2023-09-11 16:15:41 -06:00
parent 4117ad1462
commit 0b52ffd1a2
7 changed files with 91 additions and 45 deletions

View File

@@ -49,6 +49,7 @@
#include "defaults.h"
#include "logging.h"
#include "parse.h"
#include "pivot.h"
/*
* Info passed in from the sudo front-end.
@@ -494,10 +495,6 @@ void unescape_string(char *str);
/* serialize_list.c */
char *serialize_list(const char *varname, struct list_members *members);
/* pivot_root.c */
bool pivot_root(const char *new_root, int fds[2]);
bool unpivot_root(int fds[2]);
/* sethost.c */
bool sudoers_sethost(struct sudoers_context *ctx, const char *host, const char *remhost);