[Devel] [PATCH RHEL8 COMMIT] Revert "sysctl: make "tcp_syncookies" sysctl available inside a CT"

Konstantin Khorenko khorenko at virtuozzo.com
Tue Sep 28 19:23:58 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-305.3.1.vz8.7.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-305.3.1.vz8.7.14
------>
commit d6e9d7a101b894b5448c658c7303cc115df8181f
Author: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Date:   Tue Sep 28 19:23:57 2021 +0300

    Revert "sysctl: make "tcp_syncookies" sysctl available inside a CT"
    
    This reverts commit b108b8e6f129d97d720d8c4143805c6587b156a6.
    
    Found that this patch is useless while porting to vz9. On vz7 this
    sysctl file exists only in init netns, on vz8 it is visible in CT anyway
    as it is virtualized in mainstream.
    
    https://jira.sw.ru/browse/PSBM-133988
    Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 net/ipv4/sysctl_net_ipv4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c
index 094f7d4b7757..0582cbd9dda8 100644
--- a/net/ipv4/sysctl_net_ipv4.c
+++ b/net/ipv4/sysctl_net_ipv4.c
@@ -847,7 +847,7 @@ static struct ctl_table ipv4_net_table[] = {
 		.procname	= "tcp_syncookies",
 		.data		= &init_net.ipv4.sysctl_tcp_syncookies,
 		.maxlen		= sizeof(int),
-		.mode		= 0644 | S_ISVTX,
+		.mode		= 0644,
 		.proc_handler	= proc_dointvec_immutable,
 	},
 #endif


More information about the Devel mailing list