summaryrefslogtreecommitdiffstats
path: root/sys-kernel/boest-v4.9.151/0009-4.9-1510_fs-enable-link-security-restrictions-by-def.patch
blob: a29679b0db7baa06dd2a73025bd088097cf7b8e3 (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 3b28040b85a39d6a4b33f6fa3c206c92fbf0165f Mon Sep 17 00:00:00 2001
From: Mike Pagano <mpagano@gentoo.org>
Date: Sat, 1 Dec 2018 12:58:57 -0500
Subject: [PATCH 09/21] 
 4.9: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 eb4626bad88a..bfc9abe32565 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -890,8 +890,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;