mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 10:07:12 +00:00
41 lines
790 B
C
41 lines
790 B
C
|
#ifndef __FLEX_TABLES_H
|
||
|
#define __FLEX_TABLES_H
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#define YYTH_MAGIC 0xF13C57B1
|
||
|
|
||
|
struct table_set_header {
|
||
|
uint32_t th_magic; /* TH_MAGIC */
|
||
|
uint32_t th_hsize;
|
||
|
uint32_t th_ssize;
|
||
|
uint16_t th_flags;
|
||
|
char th_version[];
|
||
|
/* char th_name[];
|
||
|
char th_pad64[];*/
|
||
|
} __attribute__ ((packed));
|
||
|
|
||
|
#define YYTD_ID_ACCEPT 1 /* 1 */
|
||
|
#define YYTD_ID_BASE 2 /* 2 */
|
||
|
#define YYTD_ID_CHK 3 /* 3 */
|
||
|
#define YYTD_ID_DEF 4 /* 4 */
|
||
|
#define YYTD_ID_EC 5 /* 5 */
|
||
|
#define YYTD_ID_NXT 6 /* 8 */
|
||
|
#define YYTD_ID_META 7 /* 6 */
|
||
|
|
||
|
#define YYTD_DATA8 1
|
||
|
#define YYTD_DATA16 2
|
||
|
#define YYTD_DATA32 4
|
||
|
|
||
|
struct table_header {
|
||
|
uint16_t td_id;
|
||
|
uint16_t td_flags;
|
||
|
uint32_t td_hilen;
|
||
|
uint32_t td_lolen;
|
||
|
char td_data[];
|
||
|
/* char td_pad64[];*/
|
||
|
} __attribute__ ((packed));
|
||
|
|
||
|
#endif
|