svn commit: r194106 - head/sys/kern

Bjoern A. Zeeb bz at FreeBSD.org
Sat Jun 13 13:09:22 UTC 2009


Author: bz
Date: Sat Jun 13 13:09:20 2009
New Revision: 194106
URL: http://svn.freebsd.org/changeset/base/194106

Log:
  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)

Modified:
  head/sys/kern/vfs_syscalls.c

Modified: head/sys/kern/vfs_syscalls.c
==============================================================================
--- head/sys/kern/vfs_syscalls.c	Sat Jun 13 13:09:19 2009	(r194105)
+++ head/sys/kern/vfs_syscalls.c	Sat Jun 13 13:09:20 2009	(r194106)
@@ -1507,7 +1507,7 @@ linkat(struct thread *td, struct linkat_
 	    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 "


More information about the svn-src-all mailing list