diff options
author | bz <bz@FreeBSD.org> | 2009-06-13 13:09:20 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-06-13 13:09:20 +0000 |
commit | 3bf4a233cfd50f2358bcdc3f31da319f553690ae (patch) | |
tree | c1522e61311da43962eae8db9760258b89ce92ae /sys/kern/vfs_syscalls.c | |
parent | feee7c0482f0d8cc0f167db30f14db19552cfb66 (diff) | |
download | FreeBSD-src-3bf4a233cfd50f2358bcdc3f31da319f553690ae.zip FreeBSD-src-3bf4a233cfd50f2358bcdc3f31da319f553690ae.tar.gz |
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)
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 1cc6d2d..9fa2a4c 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -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 " |