Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Dec 2008 17:32:52 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/security/mac mac_process.c
Message-ID:  <200812221732.mBMHWxMK002459@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
alc         2008-12-22 17:32:52 UTC

  FreeBSD src repository

  Modified files:
    sys/security/mac     mac_process.c 
  Log:
  SVN rev 186397 on 2008-12-22 17:32:52Z by alc
  
  Make preparations for resurrecting shared/read locks on vm maps:
  
  mac_proc_vm_revoke_recurse() requests a read lock on the vm map at the start
  but does not handle failure by vm_map_lock_upgrade() when it seeks to modify
  the vm map.  At present, this works because all lock request on a vm map are
  implemented as exclusive locks.  Thus, vm_map_lock_upgrade() is a no-op that
  always reports success.  However, that is about to change, and
  proc_vm_revoke_recurse() will require substantial modifications to handle
  vm_map_lock_upgrade() failures.  For the time being, I am changing
  mac_proc_vm_revoke_recurse() to request a write lock on the vm map at the
  start.
  
  Approved by:    rwatson
  MFC after:      3 months
  
  Revision  Changes    Path
  1.127     +2 -4      src/sys/security/mac/mac_process.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812221732.mBMHWxMK002459>