Skip to content

Commit c28774e

Browse files
ms217Till Brehm
authored andcommitted
Add an option to disable the symlink restriction "SymLinksIfOwnerMatch" for...
1 parent 2c9226e commit c28774e

34 files changed

+100
-2
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
INSERT IGNORE INTO `dns_ssl_ca` (`id`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `active`, `ca_name`, `ca_issue`, `ca_wildcard`, `ca_iodef`, `ca_critical`) VALUES
2-
(NULL, 1, 1, 'riud', 'riud', '', 'Y', 'Amazon Trust Services', 'amazontrust.com', 'Y', '', 0);
2+
(NULL, 1, 1, 'riud', 'riud', '', 'Y', 'Amazon Trust Services', 'amazontrust.com', 'Y', '', 0);
3+
ALTER TABLE `web_domain` ADD `disable_symlinknotowner` enum('n','y') NOT NULL default 'n' AFTER `last_jailkit_hash`;

install/sql/ispconfig3.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,6 +2047,7 @@ CREATE TABLE `web_domain` (
20472047
`delete_unused_jailkit` enum('n','y') NOT NULL default 'n',
20482048
`last_jailkit_update` date NULL DEFAULT NULL,
20492049
`last_jailkit_hash` varchar(255) DEFAULT NULL,
2050+
`disable_symlinknotowner` enum('n','y') NOT NULL default 'n',
20502051
PRIMARY KEY (`domain_id`),
20512052
UNIQUE KEY `serverdomain` ( `server_id` , `ip_address`, `domain` )
20522053
) ENGINE=InnoDB ROW_FORMAT=DYNAMIC DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

interface/web/sites/form/web_vhost_domain.tform.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,12 @@
957957
'width' => '3',
958958
'maxlength' => '6'
959959
),
960+
'disable_symlinknotowner' => array (
961+
'datatype' => 'VARCHAR',
962+
'formtype' => 'CHECKBOX',
963+
'default' => 'n',
964+
'value' => array(0 => 'n', 1 => 'y')
965+
),
960966
'php_open_basedir' => array (
961967
'datatype' => 'VARCHAR',
962968
'formtype' => 'TEXT',

interface/web/sites/lib/lang/ar_web_vhost_domain.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,6 @@ $wb['tooltip_jailkit_chroot_app_programs_txt'] = 'When empty, uses Jailkit chroo
202202
$wb['delete_unused_jailkit_txt'] = 'Delete unused jailkit chroot';
203203
$wb['tooltip_delete_unused_jailkit_txt'] = 'Delete the jailkit chroot environment when there are no shell users or cron jobs which require it.';
204204
$wb['ssl_options_not_for_le_txt'] = 'You have Let\'s Encrypt certificates enabled for this website. Please be aware that all options on this page apply to non-Let\'s Encrypt certificates only. Remember to uncheck Let\'s Encrypt on the main tab if you want to switch to a different certificate.';
205+
$wb['disable_symlinknotowner_txt'] = 'Deactivate symlinks restriction of the web space';
206+
$wb['tooltip_disable_symlinknotowner_txt'] = 'WARNING: This function deactivates the restriction SymLinksIfOwnerMatch (Apache) and disable_symlinks if_not_owner (Nginx).';
207+

interface/web/sites/lib/lang/bg_web_vhost_domain.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,6 @@ $wb['tooltip_jailkit_chroot_app_programs_txt'] = 'When empty, uses Jailkit chroo
202202
$wb['delete_unused_jailkit_txt'] = 'Delete unused jailkit chroot';
203203
$wb['tooltip_delete_unused_jailkit_txt'] = 'Delete the jailkit chroot environment when there are no shell users or cron jobs which require it.';
204204
$wb['ssl_options_not_for_le_txt'] = 'You have Let\'s Encrypt certificates enabled for this website. Please be aware that all options on this page apply to non-Let\'s Encrypt certificates only. Remember to uncheck Let\'s Encrypt on the main tab if you want to switch to a different certificate.';
205+
$wb['disable_symlinknotowner_txt'] = 'Deactivate symlinks restriction of the web space';
206+
$wb['tooltip_disable_symlinknotowner_txt'] = 'WARNING: This function deactivates the restriction SymLinksIfOwnerMatch (Apache) and disable_symlinks if_not_owner (Nginx).';
207+

interface/web/sites/lib/lang/br_web_vhost_domain.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,5 @@ $wb['tooltip_jailkit_chroot_app_programs_txt'] = 'Quando vazio, usa aplicativos
202202
$wb['delete_unused_jailkit_txt'] = 'Remover chroot Jailkit sem uso';
203203
$wb['tooltip_delete_unused_jailkit_txt'] = 'Remover o ambiente chroot Jailkit quando não há usuários Shell ou tarefas do cron que o requeiram.';
204204
$wb['ssl_options_not_for_le_txt'] = 'You have Let\'s Encrypt certificates enabled for this website. Please be aware that all options on this page apply to non-Let\'s Encrypt certificates only. Remember to uncheck Let\'s Encrypt on the main tab if you want to switch to a different certificate.';
205+
$wb['disable_symlinknotowner_txt'] = 'Deactivate symlinks restriction of the web space';
206+
$wb['tooltip_disable_symlinknotowner_txt'] = 'WARNING: This function deactivates the restriction SymLinksIfOwnerMatch (Apache) and disable_symlinks if_not_owner (Nginx).';

interface/web/sites/lib/lang/ca_web_vhost_domain.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,6 @@ $wb['tooltip_jailkit_chroot_app_programs_txt'] = 'When empty, uses Jailkit chroo
202202
$wb['delete_unused_jailkit_txt'] = 'Delete unused jailkit chroot';
203203
$wb['tooltip_delete_unused_jailkit_txt'] = 'Delete the jailkit chroot environment when there are no shell users or cron jobs which require it.';
204204
$wb['ssl_options_not_for_le_txt'] = 'You have Let\'s Encrypt certificates enabled for this website. Please be aware that all options on this page apply to non-Let\'s Encrypt certificates only. Remember to uncheck Let\'s Encrypt on the main tab if you want to switch to a different certificate.';
205+
$wb['disable_symlinknotowner_txt'] = 'Deactivate symlinks restriction of the web space';
206+
$wb['tooltip_disable_symlinknotowner_txt'] = 'WARNING: This function deactivates the restriction SymLinksIfOwnerMatch (Apache) and disable_symlinks if_not_owner (Nginx).';
207+

interface/web/sites/lib/lang/cn_web_vhost_domain.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,6 @@ $wb['tooltip_jailkit_chroot_app_programs_txt'] = '如果为空,则使用来自
207207
$wb['delete_unused_jailkit_txt'] = '删除未使用的jailkit chroot';
208208
$wb['tooltip_delete_unused_jailkit_txt'] = '删除没有需要它的shell用户或cron作业的jailkit chroot环境。';
209209
$wb['ssl_options_not_for_le_txt'] = '您已为此网站启用Let\'s Encrypt证书。请注意,此页面上的所有选项仅适用于非Let\'s Encrypt证书。如果要切换到不同的证书,请记得在主选项卡上取消选中Let\'s Encrypt。';
210+
$wb['disable_symlinknotowner_txt'] = 'Deactivate symlinks restriction of the web space';
211+
$wb['tooltip_disable_symlinknotowner_txt'] = 'WARNING: This function deactivates the restriction SymLinksIfOwnerMatch (Apache) and disable_symlinks if_not_owner (Nginx).';
212+

interface/web/sites/lib/lang/cz_web_vhost_domain.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,5 @@ $wb['tooltip_jailkit_chroot_app_programs_txt'] = 'When empty, uses Jailkit chroo
202202
$wb['delete_unused_jailkit_txt'] = 'Delete unused jailkit chroot';
203203
$wb['tooltip_delete_unused_jailkit_txt'] = 'Delete the jailkit chroot environment when there are no shell users or cron jobs which require it.';
204204
$wb['ssl_options_not_for_le_txt'] = 'You have Let\'s Encrypt certificates enabled for this website. Please be aware that all options on this page apply to non-Let\'s Encrypt certificates only. Remember to uncheck Let\'s Encrypt on the main tab if you want to switch to a different certificate.';
205+
$wb['disable_symlinknotowner_txt'] = 'Deactivate symlinks restriction of the web space';
206+
$wb['tooltip_disable_symlinknotowner_txt'] = 'WARNING: This function deactivates the restriction SymLinksIfOwnerMatch (Apache) and disable_symlinks if_not_owner (Nginx).';

interface/web/sites/lib/lang/de_web_vhost_domain.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,5 @@ $wb['tooltip_jailkit_chroot_app_programs_txt'] = 'Wenn leer, verwende Jailkit Ch
202202
$wb['delete_unused_jailkit_txt'] = 'Lösche unbenutzten Jailkit Chroot';
203203
$wb['tooltip_delete_unused_jailkit_txt'] = 'Lösche die Jailkit-Chroot-Umgebung, wenn es keine Shell-Benutzer oder Cronjobs gibt, die sie benötigen.';
204204
$wb['ssl_options_not_for_le_txt'] = 'Sie haben Let\'s Encrypt-Zertifikate für diese Website aktiviert. Bitte beachten Sie, dass alle Optionen auf dieser Seite nur für Nicht-Let\'s Encrypt-Zertifikate gelten. Denken Sie daran, Let\'s Encrypt auf der Hauptregisterkarte zu deaktivieren, wenn Sie zu einem anderen Zertifikat wechseln möchten.';
205+
$wb['disable_symlinknotowner_txt'] = 'Deaktiviere Symlinks-Restriktion des Webspace';
206+
$wb['tooltip_disable_symlinknotowner_txt'] = 'WARNUNG: Diese Funktion deaktiviert die Restriktion SymLinksIfOwnerMatch (Apache) und disable_symlinks if_not_owner (Nginx).';

0 commit comments

Comments
 (0)