~jamesodhunt/ubuntu/saucy/upstart/1.9.1

« back to all changes in this revision

Viewing changes to init/apparmor.h

  • Committer: James Hunt
  • Date: 2013-06-28 15:57:37 UTC
  • mfrom: (1436.2.1)
  • Revision ID: james.hunt@ubuntu.com-20130628155737-8bskclzrhmjvpm6e
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* upstart
 
2
 *
 
3
 * Copyright © 2013 Canonical Ltd.
 
4
 * Author: Marc Deslauriers <marc.deslauriers@canonical.com>.
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License version 2, as
 
8
 * published by the Free Software Foundation.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License along
 
16
 * with this program; if not, write to the Free Software Foundation, Inc.,
 
17
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
18
 */
 
19
 
 
20
#ifndef INIT_APPARMOR_H
 
21
#define INIT_APPARMOR_H
 
22
 
 
23
#include "job.h"
 
24
 
 
25
/**
 
26
 * APPARMOR_PARSER:
 
27
 *
 
28
 * Location of apparmor_parser binary
 
29
 *
 
30
 **/
 
31
#define APPARMOR_PARSER "/sbin/apparmor_parser"
 
32
 
 
33
/**
 
34
 * APPARMOR_PARSER_OPTS:
 
35
 *
 
36
 * apparmor_parser options
 
37
 *
 
38
 **/
 
39
#define APPARMOR_PARSER_OPTS "-r -W"
 
40
 
 
41
 
 
42
NIH_BEGIN_EXTERN
 
43
 
 
44
int    apparmor_switch (char *profile)
 
45
        __attribute__ ((warn_unused_result));
 
46
 
 
47
int    apparmor_available (void)
 
48
        __attribute__ ((warn_unused_result));
 
49
 
 
50
NIH_END_EXTERN
 
51
 
 
52
#endif /* INIT_APPARMOR_H */