Skip to content

Commit

Permalink
AppArmor: policy routines for loading and unpacking policy
Browse files Browse the repository at this point in the history
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 <john.johansen@canonical.com>
Signed-off-by: James Morris <jmorris@namei.org>
  • Loading branch information
John Johansen authored and James Morris committed Aug 2, 2010
1 parent 0ed3b28 commit 736ec75
Show file tree
Hide file tree
Showing 2 changed files with 723 additions and 0 deletions.
20 changes: 20 additions & 0 deletions security/apparmor/include/policy_unpack.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* AppArmor security module
*
* This file contains AppArmor policy loading interface function definitions.
*
* Copyright (C) 1998-2008 Novell/SUSE
* Copyright 2009-2010 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, version 2 of the
* License.
*/

#ifndef __POLICY_INTERFACE_H
#define __POLICY_INTERFACE_H

struct aa_profile *aa_unpack(void *udata, size_t size, const char **ns);

#endif /* __POLICY_INTERFACE_H */
Loading

0 comments on commit 736ec75

Please sign in to comment.