Skip to content
This repository was archived by the owner on Nov 5, 2019. It is now read-only.

Commit 5ba7ee8

Browse files
thestingerSkewedZeppelin
authored andcommitted
enable protected_{symlinks,hardlinks} by default
1 parent b3a3169 commit 5ba7ee8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/namei.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,8 @@ static inline void put_link(struct nameidata *nd, struct path *link, void *cooki
736736
path_put(link);
737737
}
738738

739-
int sysctl_protected_symlinks __read_mostly = 0;
740-
int sysctl_protected_hardlinks __read_mostly = 0;
739+
int sysctl_protected_symlinks __read_mostly = 1;
740+
int sysctl_protected_hardlinks __read_mostly = 1;
741741

742742
/**
743743
* may_follow_link - Check symlink following for unsafe situations

0 commit comments

Comments
 (0)