Date: Tue, 24 Jan 2017 21:48:58 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r312723 - head/sys/kern Message-ID: <201701242148.v0OLmwNt037501@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Tue Jan 24 21:48:57 2017 New Revision: 312723 URL: https://svnweb.freebsd.org/changeset/base/312723 Log: proc: perform a lockless check in sys_issetugid Discussed with: kib MFC after: 1 week Modified: head/sys/kern/kern_prot.c Modified: head/sys/kern/kern_prot.c ============================================================================== --- head/sys/kern/kern_prot.c Tue Jan 24 21:30:31 2017 (r312722) +++ head/sys/kern/kern_prot.c Tue Jan 24 21:48:57 2017 (r312723) @@ -1225,9 +1225,7 @@ sys_issetugid(register struct thread *td * a user without an exec - programs cannot know *everything* * that libc *might* have put in their data segment. */ - PROC_LOCK(p); td->td_retval[0] = (p->p_flag & P_SUGID) ? 1 : 0; - PROC_UNLOCK(p); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701242148.v0OLmwNt037501>