~ubuntu-branches/ubuntu/raring/apparmor/raring

« back to all changes in this revision

Viewing changes to module/apparmor/module_interface.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-03-23 16:42:01 UTC
  • Revision ID: james.westby@ubuntu.com-20070323164201-jkax6f0oku087b7l
Tags: upstream-2.0.1+510.dfsg
ImportĀ upstreamĀ versionĀ 2.0.1+510.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __MODULEINTERFACE_H
 
2
#define __MODULEINTERFACE_H
 
3
 
 
4
/* Codes of the types of basic structures that are understood */
 
5
#define AA_CODE_BYTE (sizeof(u8))
 
6
#define INTERFACE_ID "INTERFACE"
 
7
 
 
8
#define APPARMOR_INTERFACE_VERSION 2
 
9
 
 
10
enum aa_code {
 
11
        AA_U8,
 
12
        AA_U16,
 
13
        AA_U32,
 
14
        AA_U64,
 
15
        AA_NAME,        /* same as string except it is items name */
 
16
        AA_DYN_STRING,
 
17
        AA_STATIC_BLOB,
 
18
        AA_STRUCT,
 
19
        AA_STRUCTEND,
 
20
        AA_LIST,
 
21
        AA_LISTEND,
 
22
        AA_OFFSET,
 
23
        AA_BAD
 
24
};
 
25
 
 
26
/* aa_ext tracks the kernel buffer and read position in it.  The interface
 
27
 * data is copied into a kernel buffer in apparmorfs and then handed off to
 
28
 * the activate routines.
 
29
 */
 
30
struct aa_ext {
 
31
        void *start;
 
32
        void *end;
 
33
        void *pos;      /* pointer to current position in the buffer */
 
34
        u32 version;
 
35
};
 
36
 
 
37
#endif /* __MODULEINTERFACE_H */