AUPARSE_GET_NODE(3)
π AUPARSE_GET_NODE π
ok so bestie, welcome to AUPARSE_GET_NODE(3) β yes that's the man page name, that's the section number (3, we're in library land), and it lives under the Linux Audit API umbrella. she's a little function, she's a specific girl, and she does exactly one thing. let's get into it π«Ά
β¨ NAME β¨
auparse_get_node β grab the event's machine node name π·οΈ
πΈ SYNOPSIS πΈ
#include <auparse.h>
const char * auparse_get_node(const auparse_state_t *au);
ok yes there's a stray " at the end of that signature in the original and I am not touching it, that's canon, that's the lore π
π¦ DESCRIPTION π¦
so like. auparse_get_node gets the machine's node name β but only if it exists in the audit event, and it pulls it straight out of the current event's timestamp data structure. β¨
here's the tea tho: not all records have node names, because it's an admin-configurable option. so if your admin didn't set it, it's just not there. no node name, no vibes, nothing. don't come for the function, it's literally not her fault π
π RETURN VALUE π
she returns a copy of the node name π
β or NULL if it doesn't exist, or if there was an error.
β οΈ bestie listen CLOSELY: the caller must free the string. that's on you. that copy is yours now, you own it, you clean it up. no leaks in this group chat π«π§
π₯ SEE ALSO π₯
the whole timestamp bestie squad fr fr π
π AUTHOR π
Steve Grubb β the icon, the moment, the main character π«Ά
and that's the whole page!! brought to you by Red Hat, dated Sept 2007 β yes she's been iconic since 2007, longevity queen β mwah, go free your strings π
π¦ where this page comes from
- alpine 3.23: audit-doc 4.1.2-r2 Β· LGPL-2.1-or-later
- alpine 3.24: audit-doc 4.1.2-r6 Β· LGPL-2.1-or-later
- arch rolling: audit 4.2.1-1 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 10: audit-libs-devel 4.2.1-3.el10 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- nixpkgs unstable: audit 4.2.1
- ubuntu resolute: libauparse-dev 1:4.1.2-1build1 Β· GPL-2.0-only
- ubuntu resolute: libauparse-dev 1:4.1.2-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libauparse-dev 1:4.1.2-1ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms