mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 22:02:43 +00:00
Remove the static from int hardlink_check_uid.
There is an external use in the opensolaris code. I am not sure how this ever worked but I have seen two reports of: link_elf: symbol hardlink_check_uid undefined lately. Reported by: Scott Ullrich (sullrich gmail.com), pfsense Reported by: Mister Olli (mister.olli googlemail.com)
This commit is contained in:
parent
8eeaaffaac
commit
aed2a06174
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194106
@ -1507,7 +1507,7 @@ linkat(struct thread *td, struct linkat_args *uap)
|
||||
UIO_USERSPACE, (flag & AT_SYMLINK_FOLLOW) ? FOLLOW : NOFOLLOW));
|
||||
}
|
||||
|
||||
static int hardlink_check_uid = 0;
|
||||
int hardlink_check_uid = 0;
|
||||
SYSCTL_INT(_security_bsd, OID_AUTO, hardlink_check_uid, CTLFLAG_RW,
|
||||
&hardlink_check_uid, 0,
|
||||
"Unprivileged processes cannot create hard links to files owned by other "
|
||||
|
Loading…
Reference in New Issue
Block a user