Date: Thu, 16 Mar 2017 08:40:47 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r315399 - stable/11/sys/kern Message-ID: <201703160840.v2G8elFD033518@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Thu Mar 16 08:40:47 2017 New Revision: 315399 URL: https://svnweb.freebsd.org/changeset/base/315399 Log: MFC r312723: proc: perform a lockless check in sys_issetugid Modified: stable/11/sys/kern/kern_prot.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/kern/kern_prot.c ============================================================================== --- stable/11/sys/kern/kern_prot.c Thu Mar 16 08:39:36 2017 (r315398) +++ stable/11/sys/kern/kern_prot.c Thu Mar 16 08:40:47 2017 (r315399) @@ -1230,9 +1230,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?201703160840.v2G8elFD033518>