summaryrefslogtreecommitdiffstats
path: root/sys-kernel/boest-v4.4.196/0010-4.4-1510_fs-enable-link-security-restrictions-by-def.patch
blob: d5b80fa2252a87b5e0da5cbc0e1aa800af1fe72c (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 734814fe19687c1cfaac8f488ee9f0bc1af17a10 Mon Sep 17 00:00:00 2001
From: Mike Pagano <mpagano@gentoo.org>
Date: Sat, 1 Dec 2018 13:33:33 -0500
Subject: [PATCH 10/20] 
 4.4: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 40049d61ef37..c246ab75e9bb 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -867,8 +867,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;