~sbeattie/apparmor/apparmor-ubuntu-2.6.0-merge

« back to all changes in this revision

Viewing changes to libraries/libapparmor/src/apparmor.h

  • Committer: Steve Beattie
  • Date: 2011-02-24 09:40:38 UTC
  • mfrom: (1306.1.312 upstream)
  • Revision ID: sbeattie@ubuntu.com-20110224094038-hhe6xhjsnqink6ob
New upstream 2.6.0 release (LP: #724193)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
     Copyright (c) 2003-2007 Novell, Inc. (All rights reserved)
3
 
 
4
 
     The libapparmor library is licensed under the terms of the GNU
5
 
     Lesser General Public License, version 2.1. Please see the file
6
 
     COPYING.LGPL.
7
 
*/
 
2
 * Copyright (c) 2003-2008 Novell, Inc. (All rights reserved)
 
3
 * Copyright 2009-2010 Canonical Ltd.
 
4
 *
 
5
 * The libapparmor library is licensed under the terms of the GNU
 
6
 * Lesser General Public License, version 2.1. Please see the file
 
7
 * COPYING.LGPL.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public License
 
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
 */
8
17
 
9
18
#ifndef _SYS_APPARMOR_H_
10
19
#define _SYS_APPARMOR_H 1
11
20
 
12
21
__BEGIN_DECLS
13
22
 
14
 
/* Prototype for change_hat as defined by the AppArmor project
15
 
   <http://forge.novell.com/modules/xfmod/project/?apparmor>
16
 
   Please see the change_hat(2) manpage for information. */
 
23
/* Prototypes for self directed domain transitions
 
24
 * see <http://apparmor.net>
 
25
 * Please see the change_hat(2) manpage for information.
 
26
 */
17
27
 
18
28
#define change_hat(X, Y) aa_change_hat((X), (Y))
19
29
extern int (change_hat)(const char *subprofile, unsigned int magic_token);
21
31
extern int aa_change_profile(const char *profile);
22
32
extern int aa_change_onexec(const char *profile);
23
33
 
24
 
extern int aa_change_hatv(const char *subprofiles[], unsigned int token);
25
 
extern int (aa_change_hat_vargs)(unsigned int token, int count, ...);
 
34
extern int aa_change_hatv(const char *subprofiles[], unsigned long token);
 
35
extern int (aa_change_hat_vargs)(unsigned long token, int count, ...);
26
36
 
27
37
#define __macroarg_counter(Y...) __macroarg_count1 ( , ##Y)
28
38
#define __macroarg_count1(Y...) __macroarg_count2 (Y, 16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0)