blob: 22e66f6f7ab20514448db28b7f6bc2da3c5a2f51 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- src/fsio.c.orig 2010-04-12 12:00:00.000000000 -0700
+++ src/fsio.c 2011-12-16 15:12:07.799166185 -0800
@@ -50,6 +50,8 @@
# include <acl/libacl.h>
#endif
+#include <unistd.h>
+
typedef struct fsopendir fsopendir_t;
struct fsopendir {
@@ -287,6 +289,7 @@
static int sys_chroot(pr_fs_t *fs, const char *path) {
if (chroot(path) < 0)
return -1;
+ __FreeBSD_libc_enter_restricted_mode();
session.chroot_path = (char *) path;
return 0;
|