Hackfut Security File Manager
Current Path:
/mnt/ceph/services/apache2225/include
mnt
/
ceph
/
services
/
apache2225
/
include
/
📁
..
📄
ap_compat.h
(1.05 KB)
📄
ap_config.h
(9.5 KB)
📄
ap_config_auto.h
(7.17 KB)
📄
ap_config_layout.h
(2.7 KB)
📄
ap_listen.h
(4.07 KB)
📄
ap_mmn.h
(9.57 KB)
📄
ap_mpm.h
(8.09 KB)
📄
ap_provider.h
(3.01 KB)
📄
ap_regex.h
(5.22 KB)
📄
ap_regkey.h
(8.91 KB)
📄
ap_release.h
(2.8 KB)
📄
apr.h
(16.43 KB)
📄
apr_allocator.h
(5.66 KB)
📄
apr_anylock.h
(4.93 KB)
📄
apr_atomic.h
(4.03 KB)
📄
apr_base64.h
(3.75 KB)
📄
apr_buckets.h
(61.99 KB)
📄
apr_crypto.h
(16.51 KB)
📄
apr_date.h
(3.47 KB)
📄
apr_dbd.h
(23.53 KB)
📄
apr_dbm.h
(8.4 KB)
📄
apr_dso.h
(2.64 KB)
📄
apr_env.h
(2.06 KB)
📄
apr_errno.h
(52.78 KB)
📄
apr_file_info.h
(17.23 KB)
📄
apr_file_io.h
(39.12 KB)
📄
apr_fnmatch.h
(5.88 KB)
📄
apr_general.h
(7.07 KB)
📄
apr_getopt.h
(5.84 KB)
📄
apr_global_mutex.h
(6.15 KB)
📄
apr_hash.h
(9.4 KB)
📄
apr_hooks.h
(12.36 KB)
📄
apr_inherit.h
(2.09 KB)
📄
apr_ldap.h
(5.54 KB)
📄
apr_ldap_init.h
(5.64 KB)
📄
apr_ldap_option.h
(8.4 KB)
📄
apr_ldap_rebind.h
(3.09 KB)
📄
apr_ldap_url.h
(3.71 KB)
📄
apr_lib.h
(8.23 KB)
📄
apr_md4.h
(4.42 KB)
📄
apr_md5.h
(6.2 KB)
📄
apr_memcache.h
(16.82 KB)
📄
apr_mmap.h
(5.01 KB)
📄
apr_network_io.h
(32.49 KB)
📄
apr_optional.h
(2.71 KB)
📄
apr_optional_hooks.h
(3.78 KB)
📄
apr_poll.h
(19.41 KB)
📄
apr_pools.h
(30.62 KB)
📄
apr_portable.h
(18.14 KB)
📄
apr_proc_mutex.h
(5.86 KB)
📄
apr_queue.h
(3.99 KB)
📄
apr_random.h
(4.92 KB)
📄
apr_reslist.h
(6.7 KB)
📄
apr_ring.h
(18.57 KB)
📄
apr_rmm.h
(4.67 KB)
📄
apr_sdbm.h
(5.97 KB)
📄
apr_sha1.h
(3.79 KB)
📄
apr_shm.h
(5.32 KB)
📄
apr_signal.h
(2.7 KB)
📄
apr_strings.h
(14.1 KB)
📄
apr_strmatch.h
(2.61 KB)
📄
apr_support.h
(1.6 KB)
📄
apr_tables.h
(17.95 KB)
📄
apr_thread_cond.h
(5.4 KB)
📄
apr_thread_mutex.h
(3.75 KB)
📄
apr_thread_pool.h
(10.84 KB)
📄
apr_thread_proc.h
(34.09 KB)
📄
apr_thread_rwlock.h
(4.65 KB)
📄
apr_time.h
(7.32 KB)
📄
apr_uri.h
(6.43 KB)
📄
apr_user.h
(5.18 KB)
📄
apr_uuid.h
(2.05 KB)
📄
apr_version.h
(5.28 KB)
📄
apr_want.h
(2.89 KB)
📄
apr_xlate.h
(6.26 KB)
📄
apr_xml.h
(12.08 KB)
📄
apu.h
(4.22 KB)
📄
apu_errno.h
(5.32 KB)
📄
apu_version.h
(4.03 KB)
📄
apu_want.h
(1.45 KB)
📄
http_config.h
(39.99 KB)
📄
http_connection.h
(5.43 KB)
📄
http_core.h
(22.76 KB)
📄
http_log.h
(13.53 KB)
📄
http_main.h
(2.52 KB)
📄
http_protocol.h
(23.49 KB)
📄
http_request.h
(13.72 KB)
📄
http_vhost.h
(3.83 KB)
📄
httpd.h
(67.37 KB)
📄
mod_auth.h
(2.42 KB)
📄
mod_cgi.h
(2.61 KB)
📄
mod_core.h
(3.05 KB)
📄
mod_dav.h
(87.75 KB)
📄
mod_dbd.h
(3.63 KB)
📄
mod_include.h
(3.84 KB)
📄
mod_log_config.h
(2.43 KB)
📄
mod_proxy.h
(33.14 KB)
📄
mod_rewrite.h
(1.31 KB)
📄
mod_ssl.h
(2.35 KB)
📄
mod_status.h
(2.38 KB)
📄
mpm.h
(1.99 KB)
📄
mpm_common.h
(12.82 KB)
📄
mpm_default.h
(2.13 KB)
📄
os.h
(1.5 KB)
📄
scoreboard.h
(8.17 KB)
📄
unixd.h
(4.05 KB)
📄
util_cfgtree.h
(2.95 KB)
📄
util_charset.h
(1.65 KB)
📄
util_ebcdic.h
(2.26 KB)
📄
util_filter.h
(23.85 KB)
📄
util_ldap.h
(14.9 KB)
📄
util_md5.h
(2.35 KB)
📄
util_script.h
(5.9 KB)
📄
util_time.h
(3.06 KB)
📄
util_xml.h
(1.37 KB)
Editing: unixd.h
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @file unixd.h * @brief common stuff that unix MPMs will want * * @addtogroup APACHE_OS_UNIX * @{ */ #ifndef UNIXD_H #define UNIXD_H #include "httpd.h" #include "http_config.h" #include "ap_listen.h" #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif #ifdef HAVE_SYS_RESOURCE_H #include <sys/resource.h> #endif #include "apr_hooks.h" #include "apr_thread_proc.h" #include "apr_proc_mutex.h" #include "apr_global_mutex.h" #include <pwd.h> #include <grp.h> #ifdef APR_HAVE_SYS_TYPES_H #include <sys/types.h> #endif #ifdef HAVE_SYS_IPC_H #include <sys/ipc.h> #endif typedef struct { uid_t uid; gid_t gid; int userdir; } ap_unix_identity_t; AP_DECLARE_HOOK(ap_unix_identity_t *, get_suexec_identity,(const request_rec *r)) /* Default user name and group name. These may be specified as numbers by * placing a # before a number */ #ifndef DEFAULT_USER #define DEFAULT_USER "#-1" #endif #ifndef DEFAULT_GROUP #define DEFAULT_GROUP "#-1" #endif typedef struct { const char *user_name; uid_t user_id; gid_t group_id; int suexec_enabled; const char *chroot_dir; } unixd_config_rec; AP_DECLARE_DATA extern unixd_config_rec unixd_config; AP_DECLARE(int) unixd_setup_child(void); AP_DECLARE(void) unixd_pre_config(apr_pool_t *ptemp); AP_DECLARE(const char *) unixd_set_user(cmd_parms *cmd, void *dummy, const char *arg); AP_DECLARE(const char *) unixd_set_group(cmd_parms *cmd, void *dummy, const char *arg); AP_DECLARE(const char *) unixd_set_chroot_dir(cmd_parms *cmd, void *dummy, const char *arg); #if defined(RLIMIT_CPU) || defined(RLIMIT_DATA) || defined(RLIMIT_VMEM) || defined(RLIMIT_NPROC) || defined(RLIMIT_AS) AP_DECLARE(void) unixd_set_rlimit(cmd_parms *cmd, struct rlimit **plimit, const char *arg, const char * arg2, int type); #endif AP_DECLARE(const char *) unixd_set_suexec(cmd_parms *cmd, void *dummy, int arg); /** * One of the functions to set mutex permissions should be called in * the parent process on platforms that switch identity when the * server is started as root. * If the child init logic is performed before switching identity * (e.g., MPM setup for an accept mutex), it should only be called * for SysV semaphores. Otherwise, it is safe to call it for all * mutex types. */ AP_DECLARE(apr_status_t) unixd_set_proc_mutex_perms(apr_proc_mutex_t *pmutex); AP_DECLARE(apr_status_t) unixd_set_global_mutex_perms(apr_global_mutex_t *gmutex); AP_DECLARE(apr_status_t) unixd_accept(void **accepted, ap_listen_rec *lr, apr_pool_t *ptrans); #ifdef HAVE_KILLPG #define unixd_killpg(x, y) (killpg ((x), (y))) #define ap_os_killpg(x, y) (killpg ((x), (y))) #else /* HAVE_KILLPG */ #define unixd_killpg(x, y) (kill (-(x), (y))) #define ap_os_killpg(x, y) (kill (-(x), (y))) #endif /* HAVE_KILLPG */ #define UNIX_DAEMON_COMMANDS \ AP_INIT_TAKE1("User", unixd_set_user, NULL, RSRC_CONF, \ "Effective user id for this server"), \ AP_INIT_TAKE1("Group", unixd_set_group, NULL, RSRC_CONF, \ "Effective group id for this server"), \ AP_INIT_TAKE1("ChrootDir", unixd_set_chroot_dir, NULL, RSRC_CONF, \ "The directory to chroot(2) into") #endif /** @} */
Upload File
Create Folder