Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 2021 09:47:48 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: feb96ee9c804 - main - linux: mute "unsupported socket(AF_NETLINK, 3, NETLINK_AUDIT)" warnings
Message-ID:  <202101140947.10E9lmYJ079457@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by trasz:

URL: https://cgit.FreeBSD.org/src/commit/?id=feb96ee9c804c3b3af363dadac2d4def3fe4ee2d

commit feb96ee9c804c3b3af363dadac2d4def3fe4ee2d
Author:     Edward Tomasz Napierala <trasz@FreeBSD.org>
AuthorDate: 2021-01-12 18:00:18 +0000
Commit:     Edward Tomasz Napierala <trasz@FreeBSD.org>
CommitDate: 2021-01-14 09:16:28 +0000

    linux: mute "unsupported socket(AF_NETLINK, 3, NETLINK_AUDIT)" warnings
    
    They are way too noisy with Focal.
    
    Sponsored by:   The FreeBSD Foundation
---
 sys/compat/linux/linux_socket.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index c68a033d3bd1..5bfcdbb8fd21 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -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 &&



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101140947.10E9lmYJ079457>