mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
linux: mute "unsupported socket(AF_NETLINK, 3, NETLINK_AUDIT)" warnings
They are way too noisy with Focal. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
420d4be3e4
commit
feb96ee9c8
1 changed files with 4 additions and 1 deletions
|
|
@ -846,7 +846,10 @@ linux_socket(struct thread *td, struct linux_socket_args *args)
|
|||
if (domain == -1) {
|
||||
/* Mask off SOCK_NONBLOCK / CLOEXEC for error messages. */
|
||||
type = args->type & LINUX_SOCK_TYPE_MASK;
|
||||
if (args->domain == LINUX_AF_NETLINK) {
|
||||
if (args->domain == LINUX_AF_NETLINK &&
|
||||
args->protocol == LINUX_NETLINK_AUDIT) {
|
||||
; /* Do nothing, quietly. */
|
||||
} else if (args->domain == LINUX_AF_NETLINK) {
|
||||
const char *nl_name;
|
||||
|
||||
if (args->protocol >= 0 &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue