2009-11-11 10:44:26 -08:00
|
|
|
/* $Id$
|
2007-07-28 15:41:04 +00:00
|
|
|
|
2007-09-15 05:41:44 +00:00
|
|
|
Copyright (c) 2003-2007 Novell, Inc. (All rights reserved)
|
2007-07-28 15:41:04 +00:00
|
|
|
|
|
|
|
The libapparmor library is licensed under the terms of the GNU
|
|
|
|
Lesser General Public License, version 2.1. Please see the file
|
|
|
|
COPYING.LGPL.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SYS_APPARMOR_H_
|
|
|
|
#define _SYS_APPARMOR_H 1
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
/* Prototype for change_hat as defined by the AppArmor project
|
|
|
|
<http://forge.novell.com/modules/xfmod/project/?apparmor>
|
|
|
|
Please see the change_hat(2) manpage for information. */
|
|
|
|
|
2007-08-16 04:26:19 +00:00
|
|
|
extern int (change_hat)(const char *subprofile, unsigned int magic_token);
|
|
|
|
extern int aa_change_hat(const char *subprofile, unsigned long magic_token);
|
2007-09-15 05:41:44 +00:00
|
|
|
extern int aa_change_profile(const char *profile);
|
2010-02-11 15:37:25 -08:00
|
|
|
extern int aa_change_onexec(const char *profile);
|
2007-08-16 04:26:19 +00:00
|
|
|
|
|
|
|
#define change_hat(X, Y) aa_change_hat((X), (Y))
|
2007-07-28 15:41:04 +00:00
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
#endif /* sys/apparmor.h */
|