Blame src/direct_api.h

Packit 366192
/* Authors: Jason Tang <jtang@tresys.com>
Packit 366192
 *
Packit 366192
 * Copyright (C) 2004-2005 Tresys Technology, LLC
Packit 366192
 *
Packit 366192
 *  This library is free software; you can redistribute it and/or
Packit 366192
 *  modify it under the terms of the GNU Lesser General Public
Packit 366192
 *  License as published by the Free Software Foundation; either
Packit 366192
 *  version 2.1 of the License, or (at your option) any later version.
Packit 366192
 *
Packit 366192
 *  This library is distributed in the hope that it will be useful,
Packit 366192
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 366192
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 366192
 *  Lesser General Public License for more details.
Packit 366192
 *
Packit 366192
 *  You should have received a copy of the GNU Lesser General Public
Packit 366192
 *  License along with this library; if not, write to the Free Software
Packit 366192
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
Packit 366192
 */
Packit 366192
Packit 366192
#ifndef _SEMANAGE_DIRECT_API_H_
Packit 366192
#define _SEMANAGE_DIRECT_API_H_
Packit 366192
Packit 366192
/* Circular dependency */
Packit 366192
struct semanage_handle;
Packit 366192
Packit 366192
/* Direct component of handle */
Packit 366192
struct semanage_direct_handle {
Packit 366192
Packit 366192
	/* Locking */
Packit 366192
	int activelock_file_fd;
Packit 366192
	int translock_file_fd;
Packit 366192
};
Packit 366192
Packit 366192
int semanage_direct_connect(struct semanage_handle *sh);
Packit 366192
Packit 366192
int semanage_direct_is_managed(struct semanage_handle *sh);
Packit 366192
Packit 366192
int semanage_direct_access_check(struct semanage_handle *sh);
Packit 366192
Packit 366192
int semanage_direct_mls_enabled(struct semanage_handle *sh);
Packit 366192
Packit 366192
#include <stdio.h>
Packit 366192
#include <unistd.h>
Packit 366192
ssize_t bunzip(struct semanage_handle *sh, FILE *f, char **data);
Packit 366192
Packit 366192
#endif