]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Re-order MAC and DAC checks in shmget() in order to give precedence to
authorrwatson <rwatson@FreeBSD.org>
Tue, 4 Oct 2005 16:40:20 +0000 (16:40 +0000)
committerrwatson <rwatson@FreeBSD.org>
Tue, 4 Oct 2005 16:40:20 +0000 (16:40 +0000)
commit540563ab582bc0f804ccd1c410799c5f4882ba99
tree21edea6178f54b287506c539ced4dca55fe01b5b
parent6d1f0bd5550940a0a67a111b6ac792368c5f8552
Re-order MAC and DAC checks in shmget() in order to give precedence to
the MAC result, as well as avoid losing the DAC check result when MAC
is enabled.

MFC after: 3 days
Reported by: Patrick LeBlanc <Patrick dot LeBlanc at sparta dot com>
sys/kern/sysv_shm.c