diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-12-10 18:48:05 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-12-10 18:48:05 +0000 |
commit | 02297e8cb30233b906e7d43bfb75a79492207ab3 (patch) | |
tree | 77c0706161b8078f41917f40845436e2200dd7b0 /sys/security/mac_test/mac_test.c | |
parent | a18adda7793ad55a3bbb47cbd9886b0702ebf88d (diff) | |
download | FreeBSD-src-02297e8cb30233b906e7d43bfb75a79492207ab3.zip FreeBSD-src-02297e8cb30233b906e7d43bfb75a79492207ab3.tar.gz |
interpvnodelabel can be NULL in mac_test_execve_transition(). This
only turned up when running mac_test side by side with a transitioning
policy such as SEBSD. Make the NULL testing match
mac_test_execve_will_transition(), which already tested the vnode
label pointer for NULL.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/security/mac_test/mac_test.c')
-rw-r--r-- | sys/security/mac_test/mac_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/security/mac_test/mac_test.c b/sys/security/mac_test/mac_test.c index ef8c5b3..05f0e8c 100644 --- a/sys/security/mac_test/mac_test.c +++ b/sys/security/mac_test/mac_test.c @@ -1038,7 +1038,9 @@ mac_test_execve_transition(struct ucred *old, struct ucred *new, ASSERT_CRED_LABEL(old->cr_label); ASSERT_CRED_LABEL(new->cr_label); ASSERT_VNODE_LABEL(filelabel); - ASSERT_VNODE_LABEL(interpvnodelabel); + if (interpvnodelabel != NULL) { + ASSERT_VNODE_LABEL(interpvnodelabel); + } if (execlabel != NULL) { ASSERT_CRED_LABEL(execlabel); } |