summaryrefslogtreecommitdiffstats
path: root/sys-kernel/boest-v4.14.119/0009-4.14-1510_fs-enable-link-security-restrictions-by-de.patch
blob: ccfb3ccb87c7833f5f0216935f88f1a5934f47ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 0b8040b9f613e2efa0fb2b0a91de8785a85749c5 Mon Sep 17 00:00:00 2001
From: Mike Pagano <mpagano@gentoo.org>
Date: Sat, 1 Dec 2018 12:25:28 -0500
Subject: [PATCH 09/18] 
 4.14:1510_fs-enable-link-security-restrictions-by-default.patch

---
 fs/namei.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/namei.c b/fs/namei.c
index d1e467b7b9de..ffa7475e8fcf 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -902,8 +902,8 @@ static inline void put_link(struct nameidata *nd)
 		path_put(&last->link);
 }
 
-int sysctl_protected_symlinks __read_mostly = 0;
-int sysctl_protected_hardlinks __read_mostly = 0;
+int sysctl_protected_symlinks __read_mostly = 1;
+int sysctl_protected_hardlinks __read_mostly = 1;
 int sysctl_protected_fifos __read_mostly;
 int sysctl_protected_regular __read_mostly;