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
This commit is contained in:
parent
a18adda779
commit
02297e8cb3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user