aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2017-05-30 10:47:23 -0400
committerMoyster <oysterized@gmail.com>2018-05-16 13:30:29 +0200
commit6d12937cc7ce15b6f8aa58e17d753395fb71c1ea (patch)
tree519eaffa60070ea730e5f688a94e8f80a3f93da6
parent8e0884d3c03fa3b61e1948c851fe434c6d4d3f39 (diff)
enable protected_{symlinks,hardlinks} by default
-rw-r--r--fs/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index bbd730b2e..53776cead 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -735,8 +735,8 @@ static inline void put_link(struct nameidata *nd, struct path *link, void *cooki
path_put(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;
/**
* may_follow_link - Check symlink following for unsafe situations