File: apparmor.h

package info (click to toggle)
criu 4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,500 kB
  • sloc: ansic: 139,280; python: 7,484; sh: 3,824; java: 2,799; makefile: 2,659; asm: 1,137; perl: 206; xml: 117; exp: 45
file content (21 lines) | stat: -rw-r--r-- 551 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __CR_APPARMOR_H__
#define __CR_APPARMOR_H__

int collect_aa_namespace(char *profile);
int dump_aa_namespaces(void);

/*
 * This is an operation similar to PTRACE_O_SUSPEND_SECCOMP but for apparmor,
 * done entirely from userspace. All the namespaces to be dumped should be
 * collected via collect_aa_namespaces() before calling this.
 */
int suspend_aa(void);
int unsuspend_aa(void);

bool check_aa_ns_dumping(void);

int prepare_apparmor_namespaces(void);

int render_aa_profile(char **out, const char *cur);

#endif /* __CR_APPARMOR_H__ */