/
githubmirror
/
audit-userspace
Обзор
Документация
Войти
/
githubmirror
/
audit-userspace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
auparse/auparse-idata.h
53 строки
2 KB
Steve Grubb
Consolidate constant definition
21 июн 2025, 19:52
21 июн 2025, 19:52
a3a4294
Код
Авторство
О чём код?
/* * idata.h - Header file for ausearch-lookup.c * Copyright (c) 2013,2016-17,2021 Red Hat Inc. * All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Authors: * Steve Grubb <sgrubb@redhat.com> */ #ifndef IDATA_HEADER #define IDATA_HEADER #include "config.h" #include "dso.h" #include "auparse.h" #include "auparse-defs.h" typedef struct _idata { unsigned int machine; // The machine type for the event int syscall; // The syscall for the event unsigned long long a0; // arg 0 to the syscall unsigned long long a1; // arg 1 to the syscall const char *cwd; // The current working directory const char *name; // name of field being interpreted const char *val; // value of field being interpreted } idata; #define NEVER_LOADED 0xFFFF int auparse_interp_adjust_type(int rtype, const char *name, const char *val); char *auparse_do_interpretation(auparse_state_t *au, int type, const idata *id, auparse_esc_t escape_mode); void _auparse_load_interpretations(auparse_state_t *au, const char *buf); void _auparse_free_interpretations(auparse_state_t *au); const char *_auparse_lookup_interpretation(auparse_state_t *au, const char *name) __attribute_malloc__ __attr_dealloc_free; void _auparse_flush_caches(auparse_state_t *au); #endif