Airframe Application Utilities
libairframe 0.7.2 API documentation

Main Page | Data Structures | File List | Data Fields | Globals

privconfig.h

Go to the documentation of this file.
00001 /*
00002  ** privconfig.c
00003  ** Generic privilege configuration support.
00004  **
00005  ** ------------------------------------------------------------------------
00006  ** Copyright (C) 2006-2007 Carnegie Mellon University. All Rights Reserved.
00007  ** ------------------------------------------------------------------------
00008  ** Authors: Brian Trammell <bht@cert.org>
00009  **          Tony Cebzanov <tonyc@cert.org>
00010  ** ------------------------------------------------------------------------
00011  ** GNU Lesser GPL Rights pursuant to Version 2.1, February 1999 
00012  ** Government Purpose License Rights (GPLR) pursuant to DFARS 252.225-7013
00013  ** ------------------------------------------------------------------------
00014  */
00015 
00026 /* idem hack */
00027 #ifndef _AIR_PRIVCONFIG_H_
00028 #define _AIR_PRIVCONFIG_H_
00029 
00030 #include <airframe/autoinc.h>
00031 #include <airframe/airopt.h>
00032 
00034 #define PRIVC_ERROR_DOMAIN g_quark_from_string("airframePrivilegeError")
00035 
00039 #define PRIVC_ERROR_SETUP  1
00040 
00043 #define PRIVC_ERROR_FAILED 2
00044 
00047 #define PRIVC_ERROR_ALREADY 3
00048 
00051 #define PRIVC_ERROR_NODROP  4
00052 
00062 gboolean privc_add_option_group(AirOptionCtx *aoctx);
00063 
00073 gboolean privc_setup(
00074     GError          **err);
00075 
00083 gboolean privc_configured();
00084 
00095 gboolean privc_become(
00096     GError          **err);
00097 
00098 /* end idem */
00099 #endif