Skip to content

Commit 80d2476

Browse files
committed
don't use -k (hardlinks) with jailkit tools
1 parent 535bbac commit 80d2476

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

server/lib/classes/system.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2227,7 +2227,7 @@ public function create_jailkit_programs($home_dir, $programs = array()) {
22272227
$program_args .= ' ' . escapeshellarg($prog);
22282228
}
22292229

2230-
$cmd = 'jk_cp -k ?' . $program_args;
2230+
$cmd = 'jk_cp -j ?' . $program_args;
22312231
$this->exec_safe($cmd, $home_dir);
22322232

22332233
return true;
@@ -2250,7 +2250,7 @@ public function create_jailkit_chroot($home_dir, $app_sections = array()) {
22502250
}
22512251

22522252
// Initialize the chroot into the specified directory with the specified applications
2253-
$cmd = 'jk_init -f -k -c /etc/jailkit/jk_init.ini -j ?' . $app_args;
2253+
$cmd = 'jk_init -f -c /etc/jailkit/jk_init.ini -j ?' . $app_args;
22542254
$this->exec_safe($cmd, $home_dir);
22552255

22562256
// Create the temp directory

server/scripts/create_jailkit_chroot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ CHROOT_APP_SECTIONS=$2
2121
chown root:root $CHROOT_HOMEDIR
2222

2323
## Initialize the chroot into the specified directory with the specified applications
24-
jk_init -f -k -c /etc/jailkit/jk_init.ini -j $CHROOT_HOMEDIR $CHROOT_APP_SECTIONS
24+
jk_init -f -c /etc/jailkit/jk_init.ini -j $CHROOT_HOMEDIR $CHROOT_APP_SECTIONS
2525

2626
## Create the temp directory
2727
if [ ! -d "$CHROOT_HOMEDIR/tmp" ]

server/scripts/create_jailkit_programs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ fi
1717
CHROOT_HOMEDIR=$1
1818
CHROOT_APP_PROGRAMS=$2
1919

20-
jk_cp -k $CHROOT_HOMEDIR $CHROOT_APP_PROGRAMS
20+
jk_cp -j $CHROOT_HOMEDIR $CHROOT_APP_PROGRAMS

0 commit comments

Comments
 (0)