~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-08-10 18:12:34 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20110810181234-b6obckg60cp99crg
Tags: upstream-2.7.0~beta1+bzr1774
ImportĀ upstreamĀ versionĀ 2.7.0~beta1+bzr1774

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
__BEGIN_DECLS
22
22
 
 
23
/* Prototypes for apparmor state queries */
 
24
extern int aa_is_enabled(void);
 
25
extern int aa_find_mountpoint(char **mnt);
 
26
 
23
27
/* Prototypes for self directed domain transitions
24
28
 * see <http://apparmor.net>
25
29
 * Please see the change_hat(2) manpage for information.
34
38
extern int aa_change_hatv(const char *subprofiles[], unsigned long token);
35
39
extern int (aa_change_hat_vargs)(unsigned long token, int count, ...);
36
40
 
 
41
/* Protypes for introspecting task confinement
 
42
 * Please see the aa_getcon(2) manpage for information
 
43
 */
 
44
extern int aa_getprocattr_raw(pid_t tid, const char *attr, char *buf, int len,
 
45
                              char **mode);
 
46
extern int aa_getprocattr(pid_t tid, const char *attr, char **buf, char **mode);
 
47
extern int aa_gettaskcon(pid_t target, char **con, char **mode);
 
48
extern int aa_getcon(char **con, char **mode);
 
49
extern int aa_getpeercon_raw(int fd, char *buffer, int *size);
 
50
extern int aa_getpeercon(int fd, char **con);
 
51
 
37
52
#define __macroarg_counter(Y...) __macroarg_count1 ( , ##Y)
38
53
#define __macroarg_count1(Y...) __macroarg_count2 (Y, 16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0)
39
54
#define __macroarg_count2(_,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,n,Y...) n