~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to module-deprecated/module_interface.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

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 SD_CODE_BYTE (sizeof(u8))
6
 
#define INTERFACE_ID "INTERFACE"
7
 
 
8
 
#define SUBDOMAIN_INTERFACE_VERSION 2
9
 
 
10
 
enum sd_code {
11
 
        SD_U8,
12
 
        SD_U16,
13
 
        SD_U32,
14
 
        SD_U64,
15
 
        SD_NAME,        /* same as string except it is items name */
16
 
        SD_DYN_STRING,
17
 
        SD_STATIC_BLOB,
18
 
        SD_STRUCT,
19
 
        SD_STRUCTEND,
20
 
        SD_LIST,
21
 
        SD_LISTEND,
22
 
        SD_OFFSET,
23
 
        SD_BAD
24
 
};
25
 
 
26
 
/* sd_ext tracks the kernel buffer and read position in it.  The interface
27
 
 * data is copied into a kernel buffer in subdomainfs and then handed off to
28
 
 * the activate routines.
29
 
 */
30
 
struct sd_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 */