Skip to content

Commit 736ec75

Browse files
jrjohansenJames Morris
authored andcommitted
AppArmor: policy routines for loading and unpacking policy
AppArmor policy is loaded in a platform independent flattened binary stream. Verify and unpack the data converting it to the internal format needed for enforcement. Signed-off-by: John Johansen <[email protected]> Signed-off-by: James Morris <[email protected]>
1 parent 0ed3b28 commit 736ec75

File tree

2 files changed

+723
-0
lines changed

2 files changed

+723
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* AppArmor security module
3+
*
4+
* This file contains AppArmor policy loading interface function definitions.
5+
*
6+
* Copyright (C) 1998-2008 Novell/SUSE
7+
* Copyright 2009-2010 Canonical Ltd.
8+
*
9+
* This program is free software; you can redistribute it and/or
10+
* modify it under the terms of the GNU General Public License as
11+
* published by the Free Software Foundation, version 2 of the
12+
* License.
13+
*/
14+
15+
#ifndef __POLICY_INTERFACE_H
16+
#define __POLICY_INTERFACE_H
17+
18+
struct aa_profile *aa_unpack(void *udata, size_t size, const char **ns);
19+
20+
#endif /* __POLICY_INTERFACE_H */

0 commit comments

Comments
 (0)