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

« back to all changes in this revision

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

  • 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
/*
 
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");