diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2007-09-17 05:31:39 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2007-09-17 05:31:39 +0000 |
commit | b61ce5b0e6aad0a00038c9c40f29a7de3646e3fe (patch) | |
tree | e572a7b77f24339d2dc6ebf6b83c1e2c1ce0f6a5 /sys/security | |
parent | 0e8c5adf211ae3a5e3ab19d96ca3a01d03210125 (diff) | |
download | src-b61ce5b0e6aad0a00038c9c40f29a7de3646e3fe.tar.gz src-b61ce5b0e6aad0a00038c9c40f29a7de3646e3fe.zip |
- Move all of the PS_ flags into either p_flag or td_flags.
- p_sflag was mostly protected by PROC_LOCK rather than the PROC_SLOCK or
previously the sched_lock. These bugs have existed for some time.
- Allow swapout to try each thread in a process individually and then
swapin the whole process if any of these fail. This allows us to move
most scheduler related swap flags into td_flags.
- Keep ki_sflag for backwards compat but change all in source tools to
use the new and more correct location of P_INMEM.
Reported by: pho
Reviewed by: attilio, kib
Approved by: re (kensmith)
Notes
Notes:
svn path=/head/; revision=172207
Diffstat (limited to 'sys/security')
-rw-r--r-- | sys/security/mac_lomac/mac_lomac.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/security/mac_lomac/mac_lomac.c b/sys/security/mac_lomac/mac_lomac.c index 008a761e261a..2186b97bbffd 100644 --- a/sys/security/mac_lomac/mac_lomac.c +++ b/sys/security/mac_lomac/mac_lomac.c @@ -537,8 +537,7 @@ maybe_demote(struct mac_lomac *subjlabel, struct mac_lomac *objlabel, subj->mac_lomac.ml_rangehigh = objlabel->ml_single; subj->mac_lomac.ml_flags |= MAC_LOMAC_FLAG_UPDATE; thread_lock(curthread); - curthread->td_flags |= TDF_ASTPENDING; - curthread->td_proc->p_sflag |= PS_MACPEND; + curthread->td_flags |= TDF_ASTPENDING | TDF_MACPEND; thread_unlock(curthread); /* |