diff options
-rw-r--r-- | sys/security/mac_biba/mac_biba.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/security/mac_biba/mac_biba.c b/sys/security/mac_biba/mac_biba.c index f10fd53..2ab8b18 100644 --- a/sys/security/mac_biba/mac_biba.c +++ b/sys/security/mac_biba/mac_biba.c @@ -1785,6 +1785,9 @@ mac_biba_check_socket_visible(struct ucred *cred, struct socket *socket, { struct mac_biba *subj, *obj; + if (!mac_biba_enabled) + return (0); + subj = SLOT(&cred->cr_label); obj = SLOT(socketlabel); |