drop_privileges.h
Go to the documentation of this file.
/* SPDX-FileCopyrightText: 2010-2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _GVM_DROP_PRIVILEGES_H
#define _GVM_DROP_PRIVILEGES_H
#include <glib.h>
#define GVM_DROP_PRIVILEGES \
g_quark_from_static_string ("gvm-drop-privileges-error-quark")
#define GVM_DROP_PRIVILEGES_ERROR_ALREADY_SET -1
#define GVM_DROP_PRIVILEGES_OK 0
#define GVM_DROP_PRIVILEGES_FAIL_NOT_ROOT 1
#define GVM_DROP_PRIVILEGES_FAIL_UNKNOWN_USER 2
#define GVM_DROP_PRIVILEGES_FAIL_DROP_GID 3
#define GVM_DROP_PRIVILEGES_FAIL_DROP_UID 4
#define GVM_DROP_PRIVILEGES_FAIL_SUPPLEMENTARY 5
int
drop_privileges (gchar *username, GError **error);
#endif
drop_privileges
int drop_privileges(gchar *username, GError **error)
Drop privileges.
Definition drop_privileges.c:58