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

« back to all changes in this revision

Viewing changes to changehat/pam_apparmor/pam_apparmor.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
/* pam_apparmor module */
 
2
 
 
3
/*
 
4
 * $Id: pam_apparmor.h 179 2006-10-31 16:33:02Z steve-beattie $
 
5
 *
 
6
 * Written by Jesse Michael <jmichael@suse.de> 2006/08/24
 
7
 *        and Steve Beattie <sbeattie@suse.de> 2006/10/25
 
8
 *
 
9
 * Redistribution and use in source and binary forms, with or without
 
10
 * modification, are permitted provided that the following conditions
 
11
 * are met:
 
12
 * 1. Redistributions of source code must retain the above copyright
 
13
 *    notice, and the entire permission notice in its entirety,
 
14
 *    including the disclaimer of warranties.
 
15
 * 2. Redistributions in binary form must reproduce the above copyright
 
16
 *    notice, this list of conditions and the following disclaimer in the
 
17
 *    documentation and/or other materials provided with the distribution.
 
18
 * 3. The name of the author may not be used to endorse or promote
 
19
 *    products derived from this software without specific prior
 
20
 *    written permission.
 
21
 *
 
22
 * ALTERNATIVELY, this product may be distributed under the terms of
 
23
 * the GNU Public License, in which case the provisions of the GPL are
 
24
 * required INSTEAD OF the above restrictions.  (This clause is
 
25
 * necessary due to a potential bad interaction between the GPL and
 
26
 * the restrictions contained in a BSD-style copyright.)
 
27
 *
 
28
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
 
29
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 
30
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 
31
 * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
 
32
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 
33
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 
34
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 
35
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 
36
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 
37
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 
38
 * OF THE POSSIBILITY OF SUCH DAMAGE.
 
39
 */
 
40
 
 
41
 
 
42
enum hat_t {
 
43
        eNoEntry,
 
44
        eUsername,
 
45
        eGroupname,
 
46
        eDefault,
 
47
};
 
48
typedef enum hat_t hat_t;
 
49
 
 
50
#define MAX_HAT_TYPES 3
 
51
struct config {
 
52
        hat_t hat_type[MAX_HAT_TYPES];
 
53
};
 
54
 
 
55
extern int debug_flag;
 
56
 
 
57
extern int get_options(pam_handle_t *pamh, struct config **config,
 
58
                int argc, const char **argv);