proc: perform a lockless check in sys_issetugid
Discussed with: kib MFC after: 1 week
This commit is contained in:
parent
bd60638c98
commit
543b2f425d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312723
@ -1225,9 +1225,7 @@ sys_issetugid(register struct thread *td, struct issetugid_args *uap)
|
||||
* 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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user