audit_close(3)

audit_close3

Close the audit netlink socket connection

Usage

#include <libaudit.h>

void audit_close(int fd);

Overview

audit_close() closes the NETLINK_AUDIT socket that communicates with the kernel part of the Linux Audit Subsystem. fd must have been returned by audit_open(3).

Return value

None.

Releases

Unchanged in 3 releases since Debian 12 (Bookworm).

  1. 12–Arch

Author

Steve Grubb

From audit 4.2.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.