]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When performing label assertions on an mbuf header label in mac_test,
authorrwatson <rwatson@FreeBSD.org>
Mon, 3 May 2004 21:38:23 +0000 (21:38 +0000)
committerrwatson <rwatson@FreeBSD.org>
Mon, 3 May 2004 21:38:23 +0000 (21:38 +0000)
commit02791e2fb128bd61ef8152c23299d7603690fb12
tree0423a5519b97f74144fc7eb6e1d0f58ab876fd49
parent8e85a8db2610b028c5d21ae1bd674c3bda2da05c
When performing label assertions on an mbuf header label in mac_test,
test the label pointer for NULL before testing the label slot for
permitted values.  When loading mac_test dynamically with conditional
mbuf labels, the label pointer may be NULL if the mbuf was
instantiated while labels were not required on mbufs by any policy.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, McAfee Research
sys/security/mac_test/mac_test.c