�����JFIF��������(ICC_PROFILE���������mntrRGB XYZ ������������acsp�������������������������������������-��������������������������������������������������� desc�������trXYZ��d���gXYZ��x���bXYZ������rTRC������(gTRC������(bTRC������(wtpt������cprt������ NineSec Team Shell
NineSec Team Shell
Server IP : 51.38.211.120  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux bob 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64
User : readytorun ( 1067)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /srv/../opt/bitninja-python-dojo/../../usr/include/netax25/../video/../

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : //srv/../opt/bitninja-python-dojo/../../usr/include/netax25/../video/../sudo_plugin.h
/*
 * SPDX-License-Identifier: ISC
 *
 * Copyright (c) 2009-2018 Todd C. Miller <Todd.Miller@sudo.ws>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#ifndef SUDO_PLUGIN_H
#define SUDO_PLUGIN_H

/* API version major/minor */
#define SUDO_API_VERSION_MAJOR 1
#define SUDO_API_VERSION_MINOR 14
#define SUDO_API_MKVERSION(x, y) (((x) << 16) | (y))
#define SUDO_API_VERSION SUDO_API_MKVERSION(SUDO_API_VERSION_MAJOR, SUDO_API_VERSION_MINOR)

/* Getters and setters for plugin API versions */
#define SUDO_API_VERSION_GET_MAJOR(v) ((v) >> 16)
#define SUDO_API_VERSION_GET_MINOR(v) ((v) & 0xffffU)
#define SUDO_API_VERSION_SET_MAJOR(vp, n) do { \
    *(vp) = (*(vp) & 0x0000ffffU) | ((n) << 16); \
} while(0)
#define SUDO_API_VERSION_SET_MINOR(vp, n) do { \
    *(vp) = (*(vp) & 0xffff0000U) | (n); \
} while(0)

/* Conversation function types and defines */
struct sudo_conv_message {
#define SUDO_CONV_PROMPT_ECHO_OFF   0x0001  /* do not echo user input */
#define SUDO_CONV_PROMPT_ECHO_ON    0x0002  /* echo user input */
#define SUDO_CONV_ERROR_MSG	    0x0003  /* error message */
#define SUDO_CONV_INFO_MSG	    0x0004  /* informational message */
#define SUDO_CONV_PROMPT_MASK	    0x0005  /* mask user input */
#define SUDO_CONV_PROMPT_ECHO_OK    0x1000  /* flag: allow echo if no tty */
#define SUDO_CONV_PREFER_TTY	    0x2000  /* flag: use tty if possible */
    int msg_type;
    int timeout;
    const char *msg;
};

/*
 * Maximum length of a reply (not including the trailing NUL) when
 * conversing with the user.  In practical terms, this is the longest
 * password sudo will support.  This means that a buffer of size
 * SUDO_CONV_REPL_MAX+1 is guaranteed to be able to hold any reply
 * from the conversation function.  It is also useful as a max value
 * for memset_s() when clearing passwords returned by the conversation
 * function.
 */
#define SUDO_CONV_REPL_MAX	255

struct sudo_conv_reply {
    char *reply;
};

/* Conversation callback API version major/minor */
#define SUDO_CONV_CALLBACK_VERSION_MAJOR	1
#define SUDO_CONV_CALLBACK_VERSION_MINOR	0
#define SUDO_CONV_CALLBACK_VERSION SUDO_API_MKVERSION(SUDO_CONV_CALLBACK_VERSION_MAJOR, SUDO_CONV_CALLBACK_VERSION_MINOR)

/*
 * Callback struct to be passed to the conversation function.
 * Can be used to perform operations on suspend/resume such
 * as dropping/acquiring locks.
 */
typedef int (*sudo_conv_callback_fn_t)(int signo, void *closure);
struct sudo_conv_callback {
    unsigned int version;
    void *closure;
    sudo_conv_callback_fn_t on_suspend;
    sudo_conv_callback_fn_t on_resume;
};

typedef int (*sudo_conv_t)(int num_msgs, const struct sudo_conv_message msgs[],
	struct sudo_conv_reply replies[], struct sudo_conv_callback *callback);
typedef int (*sudo_printf_t)(int msg_type, const char *fmt, ...);

/*
 * Hooks allow a plugin to hook into specific sudo and/or libc functions.
 */

/* Hook functions typedefs. */
typedef int (*sudo_hook_fn_t)();
typedef int (*sudo_hook_fn_setenv_t)(const char *name, const char *value, int overwrite, void *closure);
typedef int (*sudo_hook_fn_putenv_t)(char *string, void *closure);
typedef int (*sudo_hook_fn_getenv_t)(const char *name, char **value, void *closure);
typedef int (*sudo_hook_fn_unsetenv_t)(const char *name, void *closure);

/* Hook structure definition. */
struct sudo_hook {
    unsigned int hook_version;
    unsigned int hook_type;
    sudo_hook_fn_t hook_fn;
    void *closure;
};

/* Hook API version major/minor */
#define SUDO_HOOK_VERSION_MAJOR	1
#define SUDO_HOOK_VERSION_MINOR	0
#define SUDO_HOOK_VERSION SUDO_API_MKVERSION(SUDO_HOOK_VERSION_MAJOR, SUDO_HOOK_VERSION_MINOR)

/*
 * Hook function return values.
 */
#define SUDO_HOOK_RET_ERROR	-1	/* error */
#define SUDO_HOOK_RET_NEXT	0	/* go to the next hook in the list */
#define SUDO_HOOK_RET_STOP	1	/* stop hook processing for this type */

/*
 * Hooks for setenv/unsetenv/putenv/getenv.
 * This allows the plugin to be notified when a PAM module modifies
 * the environment so it can update the copy of the environment that
 * is passed to execve().
 */
#define SUDO_HOOK_SETENV	1
#define SUDO_HOOK_UNSETENV	2
#define SUDO_HOOK_PUTENV	3
#define SUDO_HOOK_GETENV	4

/* Policy plugin type and defines */
struct passwd;
struct policy_plugin {
#define SUDO_POLICY_PLUGIN     1
    unsigned int type; /* always SUDO_POLICY_PLUGIN */
    unsigned int version; /* always SUDO_API_VERSION */
    int (*open)(unsigned int version, sudo_conv_t conversation,
	sudo_printf_t sudo_printf, char * const settings[],
	char * const user_info[], char * const user_env[],
	char * const plugin_options[]);
    void (*close)(int exit_status, int error); /* wait status or error */
    int (*show_version)(int verbose);
    int (*check_policy)(int argc, char * const argv[],
	char *env_add[], char **command_info[],
	char **argv_out[], char **user_env_out[]);
    int (*list)(int argc, char * const argv[], int verbose,
	const char *list_user);
    int (*validate)(void);
    void (*invalidate)(int remove);
    int (*init_session)(struct passwd *pwd, char **user_env_out[]);
    void (*register_hooks)(int version, int (*register_hook)(struct sudo_hook *hook));
    void (*deregister_hooks)(int version, int (*deregister_hook)(struct sudo_hook *hook));
};

/* I/O plugin type and defines */
struct io_plugin {
#define SUDO_IO_PLUGIN	    2
    unsigned int type; /* always SUDO_IO_PLUGIN */
    unsigned int version; /* always SUDO_API_VERSION */
    int (*open)(unsigned int version, sudo_conv_t conversation,
	sudo_printf_t sudo_printf, char * const settings[],
	char * const user_info[], char * const command_info[],
	int argc, char * const argv[], char * const user_env[],
	char * const plugin_options[]);
    void (*close)(int exit_status, int error); /* wait status or error */
    int (*show_version)(int verbose);
    int (*log_ttyin)(const char *buf, unsigned int len);
    int (*log_ttyout)(const char *buf, unsigned int len);
    int (*log_stdin)(const char *buf, unsigned int len);
    int (*log_stdout)(const char *buf, unsigned int len);
    int (*log_stderr)(const char *buf, unsigned int len);
    void (*register_hooks)(int version, int (*register_hook)(struct sudo_hook *hook));
    void (*deregister_hooks)(int version, int (*deregister_hook)(struct sudo_hook *hook));
    int (*change_winsize)(unsigned int line, unsigned int cols);
    int (*log_suspend)(int signo);
};

/* Sudoers group plugin version major/minor */
#define GROUP_API_VERSION_MAJOR 1
#define GROUP_API_VERSION_MINOR 0
#define GROUP_API_VERSION SUDO_API_MKVERSION(GROUP_API_VERSION_MAJOR, GROUP_API_VERSION_MINOR)

/* Getters and setters for group version (for source compat only) */
#define GROUP_API_VERSION_GET_MAJOR(v) SUDO_API_VERSION_GET_MAJOR(v)
#define GROUP_API_VERSION_GET_MINOR(v) SUDO_API_VERSION_GET_MINOR(v)
#define GROUP_API_VERSION_SET_MAJOR(vp, n) SUDO_API_VERSION_SET_MAJOR(vp, n)
#define GROUP_API_VERSION_SET_MINOR(vp, n) SUDO_API_VERSION_SET_MINOR(vp, n)

/*
 * version: for compatibility checking
 * group_init: return 1 on success, 0 if unconfigured, -1 on error.
 * group_cleanup: called to clean up resources used by provider
 * user_in_group: returns 1 if user is in group, 0 if not.
 *                note that pwd may be NULL if the user is not in passwd.
 */
struct sudoers_group_plugin {
    unsigned int version;
    int (*init)(int version, sudo_printf_t sudo_printf, char *const argv[]);
    void (*cleanup)(void);
    int (*query)(const char *user, const char *group, const struct passwd *pwd);
};

#endif /* SUDO_PLUGIN_H */

NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
March 29 2022 11:10:06
root
0755
X11
--
April 25 2020 3:53:29
root
0755
arpa
--
December 13 2023 9:42:27
root
0755
asm-generic
--
February 12 2024 9:08:13
root
0755
c++
--
April 08 2022 2:42:58
root
0755
drm
--
February 12 2024 9:08:13
root
0755
finclude
--
December 13 2023 9:42:27
root
0755
iproute2
--
April 25 2020 3:53:03
root
0755
linux
--
February 12 2024 9:08:13
root
0755
misc
--
February 12 2024 9:08:13
root
0755
mtd
--
February 12 2024 9:08:13
root
0755
net
--
December 13 2023 9:42:27
root
0755
netash
--
December 13 2023 9:42:27
root
0755
netatalk
--
December 13 2023 9:42:27
root
0755
netax25
--
December 13 2023 9:42:27
root
0755
neteconet
--
December 13 2023 9:42:27
root
0755
netinet
--
December 13 2023 9:42:27
root
0755
netipx
--
December 13 2023 9:42:27
root
0755
netiucv
--
December 13 2023 9:42:27
root
0755
netpacket
--
December 13 2023 9:42:27
root
0755
netrom
--
December 13 2023 9:42:27
root
0755
netrose
--
December 13 2023 9:42:27
root
0755
nfs
--
December 13 2023 9:42:27
root
0755
node
--
October 23 2023 6:29:41
root
0755
openssl
--
February 12 2024 9:07:13
root
0755
php
--
October 23 2023 10:09:35
root
0755
protocols
--
December 13 2023 9:42:27
root
0755
rdma
--
February 12 2024 9:08:13
root
0755
rpc
--
December 13 2023 9:42:27
root
0755
rpcsvc
--
December 13 2023 9:42:27
root
0755
scsi
--
February 12 2024 9:08:13
root
0755
sound
--
February 12 2024 9:08:13
root
0755
uv
--
April 12 2022 9:21:16
root
0755
video
--
February 12 2024 9:08:13
root
0755
x86_64-linux-gnu
--
December 13 2023 9:42:27
root
0755
xen
--
February 12 2024 9:08:13
root
0755
aio.h
7.282 KB
November 22 2023 2:32:50
root
0644
aliases.h
1.984 KB
November 22 2023 2:32:50
root
0644
alloca.h
1.176 KB
November 22 2023 2:32:50
root
0644
ar.h
1.69 KB
November 22 2023 2:32:50
root
0644
argp.h
24.876 KB
November 22 2023 2:32:50
root
0644
argz.h
5.909 KB
November 22 2023 2:32:50
root
0644
assert.h
4.534 KB
November 22 2023 2:32:50
root
0644
byteswap.h
1.372 KB
November 22 2023 2:32:50
root
0644
complex.h
6.996 KB
November 22 2023 2:32:50
root
0644
cpio.h
2.215 KB
November 22 2023 2:32:50
root
0644
crypt.h
10.898 KB
March 10 2020 5:24:31
root
0644
ctype.h
10.712 KB
November 22 2023 2:32:50
root
0644
dirent.h
12.222 KB
November 22 2023 2:32:50
root
0644
dlfcn.h
7.304 KB
November 22 2023 2:32:50
root
0644
elf.h
173.189 KB
November 22 2023 2:32:50
root
0644
endian.h
2.245 KB
November 22 2023 2:32:50
root
0644
envz.h
2.8 KB
November 22 2023 2:32:50
root
0644
err.h
2.214 KB
November 22 2023 2:32:50
root
0644
errno.h
1.64 KB
November 22 2023 2:32:50
root
0644
error.h
2.229 KB
November 22 2023 2:32:50
root
0644
execinfo.h
1.487 KB
November 22 2023 2:32:50
root
0644
fastcgi.h
2.899 KB
March 22 2020 4:45:46
root
0644
fcgi_config.h
3.877 KB
March 22 2020 4:45:46
root
0644
fcgi_stdio.h
5.647 KB
March 22 2020 4:45:46
root
0644
fcgiapp.h
18.146 KB
March 22 2020 4:45:46
root
0644
fcgimisc.h
0.623 KB
March 22 2020 4:45:46
root
0644
fcgio.h
3.633 KB
March 22 2020 4:45:46
root
0644
fcgios.h
3.421 KB
March 22 2020 4:45:46
root
0644
fcntl.h
9.482 KB
November 22 2023 2:32:50
root
0644
features.h
16.679 KB
November 22 2023 2:32:50
root
0644
fenv.h
5.736 KB
November 22 2023 2:32:50
root
0644
fmtmsg.h
3.164 KB
November 22 2023 2:32:50
root
0644
fnmatch.h
2.242 KB
November 22 2023 2:32:50
root
0644
fstab.h
3.038 KB
November 22 2023 2:32:50
root
0644
fts.h
8.177 KB
November 22 2023 2:32:50
root
0644
ftw.h
5.129 KB
November 22 2023 2:32:50
root
0644
gconv.h
4.112 KB
November 22 2023 2:32:50
root
0644
getopt.h
1.435 KB
November 22 2023 2:32:50
root
0644
glob.h
6.462 KB
November 22 2023 2:32:50
root
0644
gnu-versions.h
2.288 KB
November 22 2023 2:32:50
root
0644
gnumake.h
2.844 KB
July 28 2018 12:07:31
root
0644
grp.h
6.53 KB
November 22 2023 2:32:50
root
0644
gshadow.h
4.423 KB
November 22 2023 2:32:50
root
0644
iconv.h
1.814 KB
November 22 2023 2:32:50
root
0644
ifaddrs.h
2.774 KB
November 22 2023 2:32:50
root
0644
inttypes.h
11.614 KB
November 22 2023 2:32:50
root
0644
langinfo.h
17.431 KB
November 22 2023 2:32:50
root
0644
lastlog.h
0.123 KB
November 22 2023 2:32:50
root
0644
libgen.h
1.354 KB
November 22 2023 2:32:50
root
0644
libintl.h
4.473 KB
November 22 2023 2:32:50
root
0644
limits.h
5.29 KB
November 22 2023 2:32:50
root
0644
link.h
7.038 KB
November 22 2023 2:32:50
root
0644
locale.h
7.495 KB
November 22 2023 2:32:50
root
0644
malloc.h
6.041 KB
November 22 2023 2:32:50
root
0644
math.h
45.316 KB
November 22 2023 2:32:50
root
0644
mcheck.h
2.378 KB
November 22 2023 2:32:50
root
0644
memory.h
0.934 KB
November 22 2023 2:32:50
root
0644
mntent.h
3.28 KB
November 22 2023 2:32:50
root
0644
monetary.h
1.762 KB
November 22 2023 2:32:50
root
0644
mqueue.h
3.672 KB
November 22 2023 2:32:50
root
0644
netdb.h
27.441 KB
November 22 2023 2:32:50
root
0644
nl_types.h
1.712 KB
November 22 2023 2:32:50
root
0644
nss.h
1.835 KB
November 22 2023 2:32:50
root
0644
obstack.h
20.808 KB
November 22 2023 2:32:50
root
0644
paths.h
2.913 KB
November 22 2023 2:32:50
root
0644
poll.h
0.021 KB
November 22 2023 2:32:50
root
0644
printf.h
6.642 KB
November 22 2023 2:32:50
root
0644
proc_service.h
3.396 KB
November 22 2023 2:32:50
root
0644
pthread.h
40.724 KB
November 22 2023 2:32:50
root
0644
pty.h
1.533 KB
November 22 2023 2:32:50
root
0644
pwd.h
6.015 KB
November 22 2023 2:32:50
root
0644
re_comp.h
0.94 KB
November 22 2023 2:32:50
root
0644
regex.h
24.136 KB
November 22 2023 2:32:50
root
0644
regexp.h
1.414 KB
November 22 2023 2:32:50
root
0644
resolv.h
11.595 KB
November 22 2023 2:32:50
root
0644
sched.h
4.622 KB
November 22 2023 2:32:50
root
0644
search.h
5.322 KB
November 22 2023 2:32:50
root
0644
semaphore.h
2.671 KB
November 22 2023 2:32:50
root
0644
setjmp.h
3.584 KB
November 22 2023 2:32:50
root
0644
sgtty.h
1.313 KB
November 22 2023 2:32:50
root
0644
shadow.h
5.344 KB
November 22 2023 2:32:50
root
0644
signal.h
12.021 KB
November 22 2023 2:32:50
root
0644
spawn.h
7.576 KB
November 22 2023 2:32:50
root
0644
stab.h
0.258 KB
November 22 2023 2:32:50
root
0644
stdc-predef.h
2.236 KB
November 22 2023 2:32:50
root
0644
stdint.h
8.275 KB
November 22 2023 2:32:50
root
0644
stdio.h
29.248 KB
November 22 2023 2:32:50
root
0644
stdio_ext.h
2.734 KB
November 22 2023 2:32:50
root
0644
stdlib.h
34.995 KB
November 22 2023 2:32:50
root
0644
string.h
17.246 KB
November 22 2023 2:32:50
root
0644
strings.h
4.642 KB
November 22 2023 2:32:50
root
0644
sudo_plugin.h
8.028 KB
April 04 2023 1:56:28
root
0644
syscall.h
0.024 KB
November 22 2023 2:32:50
root
0644
sysexits.h
5.109 KB
November 22 2023 2:32:50
root
0644
syslog.h
0.023 KB
November 22 2023 2:32:50
root
0644
tar.h
3.697 KB
November 22 2023 2:32:50
root
0644
termio.h
0.209 KB
November 22 2023 2:32:50
root
0644
termios.h
3.515 KB
November 22 2023 2:32:50
root
0644
tgmath.h
36.542 KB
November 22 2023 2:32:50
root
0644
thread_db.h
15.648 KB
November 22 2023 2:32:50
root
0644
threads.h
6.505 KB
November 22 2023 2:32:50
root
0644
time.h
10.035 KB
November 22 2023 2:32:50
root
0644
ttyent.h
2.436 KB
November 22 2023 2:32:50
root
0644
uchar.h
1.955 KB
November 22 2023 2:32:50
root
0644
ucontext.h
1.989 KB
November 22 2023 2:32:50
root
0644
ulimit.h
1.547 KB
November 22 2023 2:32:50
root
0644
unistd.h
41.801 KB
November 22 2023 2:32:50
root
0644
utime.h
1.467 KB
November 22 2023 2:32:50
root
0644
utmp.h
3.147 KB
November 22 2023 2:32:50
root
0644
utmpx.h
4.004 KB
November 22 2023 2:32:50
root
0644
uv.h
62.506 KB
July 05 2021 7:32:59
root
0644
values.h
1.91 KB
November 22 2023 2:32:50
root
0644
wait.h
0.021 KB
November 22 2023 2:32:50
root
0644
wchar.h
30.382 KB
November 22 2023 2:32:50
root
0644
wctype.h
5.419 KB
November 22 2023 2:32:50
root
0644
wordexp.h
2.443 KB
November 22 2023 2:32:50
root
0644

NineSec Team - 2022