#include "sysdeputil.h"
#include "str.h"
#include "sysutil.h"
#include "utility.h"
#include "secbuf.h"
#include "defs.h"
#include "tunables.h"
#include "builddefs.h"
#include <netdb.h>
#include "port/porting_junk.h"
#include <limits.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/param.h>
#include <sys/uio.h>
#include <utmpx.h>
#include <unistd.h>
#include <sys/mman.h>
#include <security/pam_appl.h>
#include <sys/capability.h>
#include <sys/stat.h>
#include <fcntl.h>
マクロ定義 | |
#define | VSF_SYSDEP_HAVE_PAM |
#define | VSF_SYSDEP_HAVE_SHADOW |
#define | VSF_SYSDEP_HAVE_USERSHELL |
#define | VSF_SYSDEP_HAVE_LIBCAP |
#define | VSF_SYSDEP_HAVE_UTMPX |
#define | __USE_GNU |
関数 | |
static int | do_sendfile (const int out_fd, const int in_fd, unsigned int num_send, filesize_t start_pos) |
static void | vsf_sysutil_setproctitle_internal (const char *p_text) |
void | vsf_insert_uwtmp (const struct mystr *p_user_str, const struct mystr *p_host_str) |
void | vsf_remove_uwtmp (void) |
static int | pam_conv_func (int nmsg, const struct pam_message **p_msg, struct pam_response **p_reply, void *p_addata) |
static void | vsf_auth_shutdown (void) |
int | vsf_sysdep_check_auth (const struct mystr *p_user_str, const struct mystr *p_pass_str, const struct mystr *p_remote_host) |
void | vsf_sysdep_keep_capabilities (void) |
static int | do_checkcap (void) |
int | vsf_sysdep_has_capabilities_as_non_root (void) |
int | vsf_sysdep_has_capabilities (void) |
void | vsf_sysdep_adopt_capabilities (unsigned int caps) |
int | vsf_sysutil_sendfile (const int out_fd, const int in_fd, filesize_t *p_offset, filesize_t num_send, unsigned int max_chunk) |
void | vsf_sysutil_set_proctitle_prefix (const struct mystr *p_str) |
void | vsf_sysutil_setproctitle_str (const struct mystr *p_str) |
void | vsf_sysutil_setproctitle (const char *p_text) |
void | vsf_sysutil_setproctitle_init (int argc, const char *argv[]) |
void | vsf_sysutil_map_anon_pages_init (void) |
void * | vsf_sysutil_map_anon_pages (unsigned int length) |
void | vsf_sysutil_send_fd (int sock_fd, int send_fd) |
int | vsf_sysutil_recv_fd (const int sock_fd) |
変数 | |
static int | s_zero_fd = -1 |
static struct mystr | s_proctitle_prefix_str |
static pam_handle_t * | s_pamh |
static struct mystr | s_pword_str |
static int | s_uwtmp_inserted |
static struct utmpx | s_utent |