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
|
/*
SSSD
sss_sudo_cli.h
Authors:
Arun Scaria <arunscaria91@gmail.com>
Copyright (C) 2011 Arun Scaria <arunscaria91@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
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, see <http://www.gnu.org/licenses/>
*/
#ifndef _SSS_SUDO_CLI_H_
#define _SSS_SUDO_CLI_H_
#undef SSS_END_OF_SUDO_REQUEST
#define SSS_END_OF_SUDO_REQUEST 0x405645
#undef SSS_START_OF_SUDO_REQUEST
#define SSS_START_OF_SUDO_REQUEST 0x436789
#ifndef _SSSCLI_H
/* If sss_cli.h is not imported */
struct sss_cli_req_data {
size_t len;
const void *data;
};
enum sss_status {
SSS_STATUS_TRYAGAIN,
SSS_STATUS_UNAVAIL,
SSS_STATUS_SUCCESS
};
#endif
enum error_types_sudo{
SSS_SUDO_SUCCESS = 0x01,
SSS_SUDO_BUF_ERR,
SSS_SUDO_SYSTEM_ERR,
SSS_SUDO_LOG_ERR,
SSS_SUDO_LOG_NOTICE,
};
enum sudo_item_type{
SSS_SUDO_ITEM_UID = 0x0000,
SSS_SUDO_ITEM_CWD,
SSS_SUDO_ITEM_TTY,
SSS_SUDO_ITEM_RUSER,
SSS_SUDO_ITEM_RGROUP,
SSS_SUDO_ITEM_PROMPT,
SSS_SUDO_ITEM_NETADDR,
SSS_SUDO_ITEM_USE_SUDOEDIT,
SSS_SUDO_ITEM_USE_SETHOME,
SSS_SUDO_ITEM_USE_PRESERV_ENV,
SSS_SUDO_ITEM_USE_IMPLIED_SHELL,
SSS_SUDO_ITEM_USE_LOGIN_SHELL,
SSS_SUDO_ITEM_USE_RUN_SHELL,
SSS_SUDO_ITEM_USE_PRE_GROUPS,
SSS_SUDO_ITEM_USE_IGNORE_TICKET,
SSS_SUDO_ITEM_USE_NON_INTERACTIVE,
SSS_SUDO_ITEM_DEBUG_LEVEL,
SSS_SUDO_ITEM_COMMAND,
SSS_SUDO_ITEM_USER_ENV,
SSS_SUDO_ITEM_CLI_PID
};
#endif /* _SSS_SUDO_CLI_H_ */
|