~mathiaz/apparmor/ubuntu-mathiaz

« back to all changes in this revision

Viewing changes to module/apparmor/match/match_default.c

  • Committer: Mathias Gug
  • Date: 2008-02-04 18:57:00 UTC
  • mfrom: (885.1.5 apparmor)
  • Revision ID: mathiaz@ubuntu.com-20080204185700-wwlyq0ksssxclv8w
Merge  ubuntu branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *      Copyright (C) 2002-2005 Novell/SUSE
3
 
 *
4
 
 *      This program is free software; you can redistribute it and/or
5
 
 *      modify it under the terms of the GNU General Public License as
6
 
 *      published by the Free Software Foundation, version 2 of the
7
 
 *      License.
8
 
 *
9
 
 *      http://forge.novell.com/modules/xfmod/project/?apparmor
10
 
 *
11
 
 *      AppArmor default match submodule (literal and tailglob)
12
 
 */
13
 
 
14
 
#include <linux/module.h>
15
 
#include "match.h"
16
 
 
17
 
static const char *features="literal tailglob";
18
 
 
19
 
void* aamatch_alloc(enum entry_match_type type)
20
 
{
21
 
        return NULL;
22
 
}
23
 
 
24
 
void aamatch_free(void *ptr)
25
 
{
26
 
}
27
 
 
28
 
const char *aamatch_features(void)
29
 
{
30
 
        return features;
31
 
}
32
 
 
33
 
int aamatch_serialize(void *entry_extradata, struct aa_ext *e,
34
 
                      aamatch_serializecb cb)
35
 
{
36
 
        return 0;
37
 
}
38
 
 
39
 
unsigned int aamatch_match(const char *pathname, const char *entry_name,
40
 
                           enum entry_match_type type, void *entry_extradata)
41
 
{
42
 
        int ret;
43
 
 
44
 
        ret = aamatch_match_common(pathname, entry_name, type);
45
 
 
46
 
        return ret;
47
 
}
48
 
 
49
 
EXPORT_SYMBOL_GPL(aamatch_alloc);
50
 
EXPORT_SYMBOL_GPL(aamatch_free);
51
 
EXPORT_SYMBOL_GPL(aamatch_features);
52
 
EXPORT_SYMBOL_GPL(aamatch_serialize);
53
 
EXPORT_SYMBOL_GPL(aamatch_match);
54
 
 
55
 
MODULE_DESCRIPTION("AppArmor match module (aamatch) [default]");
56
 
MODULE_AUTHOR("Tony Jones <tonyj@suse.de>");
57
 
MODULE_LICENSE("GPL");