Mercurial > illumos > fmac
changeset 7853:e16abe3a4ce4
[PATCH] Make getpidcon handle pid ==curproc->p_pid in the same manner as P_MYID
author | John Weeks <john.weeks@sun.com> |
---|---|
date | Mon, 25 Aug 2008 14:28:49 -0700 |
parents | 26b07a3b4435 |
children | acf11724ff3a |
files | usr/src/uts/common/syscall/fmacsys.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/syscall/fmacsys.c Mon Aug 25 08:35:21 2008 -0700 +++ b/usr/src/uts/common/syscall/fmacsys.c Mon Aug 25 14:28:49 2008 -0700 @@ -209,7 +209,7 @@ proc_t *p; int err = 0; - if (pid == P_MYID) { + if (pid == P_MYID || pid == curproc->p_pid) { sid = crgetsecid(CRED()); } else { mutex_enter(&pidlock);