/usr/include/zorp/zorp.h is in libzorp-dev 3.9.5-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | /***************************************************************************
*
* Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
* 2010, 2011 BalaBit IT Ltd, Budapest, Hungary
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
* Note that this permission is granted for only version 2 of the GPL.
*
* As an additional exemption you are allowed to compile & link against the
* OpenSSL libraries as published by the OpenSSL project. See the file
* COPYING for details.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
***************************************************************************/
#ifndef ZORP_H_INCLUDED
#define ZORP_H_INCLUDED
#ifdef _XOPEN_SOURCE
#undef _XOPEN_SOURCE
#endif
#ifdef _POSIX_C_SOURCE
#undef _POSIX_C_SOURCE
#endif
#include <Python.h>
#include <zorp/zorplibconfig.h>
#include <glib.h>
#include <zorp/misc.h>
#include <zorp/memtrace.h>
#include "zorpconfig.h"
#define ZORP_POLICY_FILE ZORP_SYSCONFDIR "/policy.py"
#define ZORP_POLICY_BOOT_FILE ZORP_DATADIR "/policy.boot"
#define ZORP_AUTH_CERT_FILE ZORP_SYSCONFDIR "/zorp.crt"
#define ZORP_AUTH_KEY_FILE ZORP_SYSCONFDIR "/zorp.key"
#define ZORP_STATE_DIR ZORP_STATEDIR
#define ZORP_PID_FILE_DIR ZORP_PIDFILEDIR
#define ZORP_SZIG_SOCKET_NAME ZORP_PID_FILE_DIR "zorpctl"
#define ZORP_WORKING_DIR ZORP_STATEDIR "/cores"
#define MAX_SESSION_ID 128
#define DEADLOCK_CHECKER_DEFAULT_TIMEOUT 60
#define CORE_POLICY "core.policy"
#define CORE_AUDIT "core.audit"
#define CORE_VIOLATION "core.violation"
#if SIZEOF_VOID_P == 4
# define G_GPOINTER_FORMAT "08" G_GSIZE_MODIFIER "x"
#elif SIZEOF_VOID_P == 8
# define G_GPOINTER_FORMAT "016" G_GSIZE_MODIFIER "x"
#else
# error "Can't find suitable printf format for pointers"
#endif
extern GMainLoop *main_loop;
extern gint exit_code;
extern gboolean usr1_received;
extern gboolean usr2_received;
extern guint32 startup_id;
extern const gchar *instance_name;
extern const gchar *virtual_instance_name;
extern gboolean zorp_process_master_mode;
void z_main_loop_initiate_reload(gboolean called_from_sighandler);
gboolean z_main_loop_get_last_reload_result(void);
void z_main_loop_initiate_termination(gboolean called_from_sighandler);
void z_main_loop(const gchar *policy_file,
const gchar *instance_name,
gchar const **instance_policy_list,
gchar const *virtual_instance_name,
gboolean is_master);
void z_main_loop_quit(int exit_code);
void z_main_loop_init(void);
void z_main_loop_destroy(void);
void z_log_set_fake_session_id(const gchar *instance_name G_GNUC_UNUSED);
#if GLIB_MINOR_VERSION < 8
# define G_GNUC_NULL_TERMINATED
#endif
#if GLIB_MINOR_VERSION < 10
# define G_GNUC_WARN_UNUSED_RESULT
#endif
#endif
|