]> granicus.if.org Git - sudo/blob - plugins/sudoers/sudoers_debug.h
Add SPDX-License-Identifier to files.
[sudo] / plugins / sudoers / sudoers_debug.h
1 /*
2  * SPDX-License-Identifier: ISC
3  *
4  * Copyright (c) 2014 Todd C. Miller <Todd.Miller@sudo.ws>
5  *
6  * Permission to use, copy, modify, and distribute this software for any
7  * purpose with or without fee is hereby granted, provided that the above
8  * copyright notice and this permission notice appear in all copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17  */
18
19 #ifndef SUDOERS_DEBUG_H
20 #define SUDOERS_DEBUG_H
21
22 #include "sudo_debug.h"
23
24 /*
25  * Sudoers debug subsystems.
26  * Note that sudoers_subsystem_ids[] is filled in at debug registration time.
27  */
28 extern unsigned int sudoers_subsystem_ids[];
29 #define SUDOERS_DEBUG_ALIAS     (sudoers_subsystem_ids[ 0]) /* sudoers alias functions */
30 #define SUDOERS_DEBUG_AUDIT     (sudoers_subsystem_ids[ 1]) /* audit */
31 #define SUDOERS_DEBUG_AUTH      (sudoers_subsystem_ids[ 2]) /* authentication functions */
32 #define SUDOERS_DEBUG_DEFAULTS  (sudoers_subsystem_ids[ 3]) /* sudoers defaults settings */
33 #define SUDOERS_DEBUG_ENV       (sudoers_subsystem_ids[ 4]) /* environment handling */
34 #define SUDOERS_DEBUG_EVENT     (sudoers_subsystem_ids[ 5]) /* event handling */
35 #define SUDOERS_DEBUG_LDAP      (sudoers_subsystem_ids[ 6]) /* sudoers LDAP */
36 #define SUDOERS_DEBUG_LOGGING   (sudoers_subsystem_ids[ 7]) /* logging functions */
37 #define SUDOERS_DEBUG_MAIN      (sudoers_subsystem_ids[ 8]) /* main() */
38 #define SUDOERS_DEBUG_MATCH     (sudoers_subsystem_ids[ 9]) /* sudoers matching */
39 #define SUDOERS_DEBUG_NETIF     (sudoers_subsystem_ids[10]) /* network interface functions */
40 #define SUDOERS_DEBUG_NSS       (sudoers_subsystem_ids[11]) /* network service switch */
41 #define SUDOERS_DEBUG_PARSER    (sudoers_subsystem_ids[12]) /* sudoers parser */
42 #define SUDOERS_DEBUG_PERMS     (sudoers_subsystem_ids[13]) /* uid/gid swapping functions */
43 #define SUDOERS_DEBUG_PLUGIN    (sudoers_subsystem_ids[14]) /* main plugin functions */
44 #define SUDOERS_DEBUG_RBTREE    (sudoers_subsystem_ids[15]) /* red-black tree functions */
45 #define SUDOERS_DEBUG_SSSD      (sudoers_subsystem_ids[16]) /* sudoers SSSD */
46 #define SUDOERS_DEBUG_UTIL      (sudoers_subsystem_ids[17]) /* utility functions */
47
48 #endif /* SUDOERS_DEBUG_H */