|
Packit |
8480eb |
/* ----------------------------------------------------------------------- *
|
|
Packit |
8480eb |
*
|
|
Packit |
8480eb |
* defaults.h - system initialization defaults.
|
|
Packit |
8480eb |
*
|
|
Packit |
8480eb |
* Copyright 2013 Red Hat, Inc.
|
|
Packit |
8480eb |
* Copyright 2006, 2013 Ian Kent <raven@themaw.net>
|
|
Packit |
8480eb |
* All rights reserved.
|
|
Packit |
8480eb |
*
|
|
Packit |
8480eb |
* This program is free software; you can redistribute it and/or modify
|
|
Packit |
8480eb |
* it under the terms of the GNU General Public License as published by
|
|
Packit |
8480eb |
* the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,
|
|
Packit |
8480eb |
* USA; either version 2 of the License, or (at your option) any later
|
|
Packit |
8480eb |
* version.
|
|
Packit |
8480eb |
*
|
|
Packit |
8480eb |
* This program is distributed in the hope that it will be useful,
|
|
Packit |
8480eb |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
8480eb |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
8480eb |
* GNU General Public License for more details.
|
|
Packit |
8480eb |
*
|
|
Packit |
8480eb |
* ----------------------------------------------------------------------- */
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
#ifndef DEFAULTS_H
|
|
Packit |
8480eb |
#define DEFAULTS_H
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
#define DEFAULT_MASTER_MAP_NAME "auto.master"
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
#define DEFAULT_TIMEOUT "600"
|
|
Packit |
8480eb |
#define DEFAULT_MASTER_WAIT "10"
|
|
Packit |
8480eb |
#define DEFAULT_NEGATIVE_TIMEOUT "60"
|
|
Packit Service |
8741f6 |
#define DEFAULT_MOUNT_VERBOSE "0"
|
|
Packit |
8480eb |
#define DEFAULT_MOUNT_WAIT "-1"
|
|
Packit |
8480eb |
#define DEFAULT_UMOUNT_WAIT "12"
|
|
Packit |
8480eb |
#define DEFAULT_BROWSE_MODE "1"
|
|
Packit |
8480eb |
#define DEFAULT_LOGGING "none"
|
|
Packit |
8480eb |
#define DEFAULT_FORCE_STD_PROG_MAP_ENV "0"
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
#define DEFAULT_LDAP_TIMEOUT "-1"
|
|
Packit |
8480eb |
#define DEFAULT_LDAP_NETWORK_TIMEOUT "8"
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
#define DEFAULT_MAP_OBJ_CLASS "nisMap"
|
|
Packit |
8480eb |
#define DEFAULT_ENTRY_OBJ_CLASS "nisObject"
|
|
Packit |
8480eb |
#define DEFAULT_MAP_ATTR "nisMapName"
|
|
Packit |
8480eb |
#define DEFAULT_ENTRY_ATTR "cn"
|
|
Packit |
8480eb |
#define DEFAULT_VALUE_ATTR "nisMapEntry"
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
#define DEFAULT_MOUNT_NFS_DEFAULT_PROTOCOL "3"
|
|
Packit |
8480eb |
#define DEFAULT_APPEND_OPTIONS "1"
|
|
Packit |
8480eb |
#define DEFAULT_AUTH_CONF_FILE AUTOFS_MAP_DIR "/autofs_ldap_auth.conf"
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
#define DEFAULT_MAP_HASH_TABLE_SIZE "1024"
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
#define DEFAULT_USE_HOSTNAME_FOR_MOUNTS "0"
|
|
Packit |
8480eb |
#define DEFAULT_DISABLE_NOT_FOUND_MESSAGE "0"
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
#define DEFAULT_SSS_MASTER_MAP_WAIT "0"
|
|
Packit |
8480eb |
#define DEFAULT_USE_MOUNT_REQUEST_LOG_ID "0"
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
/* Config entry flags */
|
|
Packit |
8480eb |
#define CONF_NONE 0x00000000
|
|
Packit |
8480eb |
#define CONF_ENV 0x00000001
|
|
Packit |
8480eb |
#define CONF_NOTUSED 0x00000002
|
|
Packit |
8480eb |
#define CONF_NOTSUP 0x00000004
|
|
Packit |
8480eb |
#define CONF_BROWSABLE_DIRS 0x00000008
|
|
Packit |
8480eb |
#define CONF_MOUNT_TYPE_AUTOFS 0x00000010
|
|
Packit |
8480eb |
#define CONF_SELECTORS_IN_DEFAULTS 0x00000020
|
|
Packit |
8480eb |
#define CONF_NORMALIZE_HOSTNAMES 0x00000040
|
|
Packit |
8480eb |
#define CONF_PROCESS_LOCK 0x00000080
|
|
Packit |
8480eb |
#define CONF_RESTART_EXISTING_MOUNTS 0x00000100
|
|
Packit |
8480eb |
#define CONF_SHOW_STATFS_ENTRIES 0x00000200
|
|
Packit |
8480eb |
#define CONF_FULLY_QUALIFIED_HOSTS 0x00000400
|
|
Packit |
8480eb |
#define CONF_UNMOUNT_ON_EXIT 0x00000800
|
|
Packit |
8480eb |
#define CONF_AUTOFS_USE_LOFS 0x00001000
|
|
Packit |
8480eb |
#define CONF_DOMAIN_STRIP 0x00002000
|
|
Packit |
8480eb |
#define CONF_NORMALIZE_SLASHES 0x00004000
|
|
Packit |
8480eb |
#define CONF_FORCED_UNMOUNTS 0x00008000
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NULL_VALUE NULL
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
#define DEFAULT_AMD_AUTO_ATTRCACHE DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_AUTO_DIR "/a"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_AUTOFS_USE_LOFS "yes"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_BROWSABLE_DIRS "no"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_CACHE_DURATION "300"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_CLUSTER DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_DEBUG_MTAB_FILE DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_DEBUG_OPTIONS DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_DISMOUNT_INTERVAL DEFAULT_TIMEOUT
|
|
Packit |
8480eb |
#define DEFAULT_AMD_DOMAIN_STRIP "yes"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_EXEC_MAP_TIMEOUT "10"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_FORCED_UMOUNTS "no"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_FULLY_QUALIFIED_HOSTS "no"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_FULL_OS DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_HESIOD_BASE "automount"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_KARCH DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_LDAP_BASE DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_LDAP_CACHE_MAXMEM "131072"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_LDAP_CACHE_SECONDS "0"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_LDAP_HOSTPORTS DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_LDAP_PROTO_VERSION "2"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_SUB_DOMAIN DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_LOCALHOST_ADDRESS "localhost"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_LOG_FILE DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_LOG_OPTIONS "defaults"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_MAP_DEFAULTS DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_MAP_OPTIONS DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_MAP_RELOAD_INTERVAL "3600"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_MAP_TYPE DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_MOUNT_TYPE "autofs"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_PID_FILE DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_PORTMAP_PROGRAM DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_PREFERRED_AMQ_PORT DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NFS_ALLOW_ANY_INTERFACE DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NFS_ALLOW_INSECURE_PORT DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NFS_PROTO DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NFS_RETRANSMIT_COUNTER DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NFS_RETRANSMIT_COUNTER_UDP DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NFS_RETRANSMIT_COUNTER_TCP DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NFS_RETRANSMIT_COUNTER_TOPLVL DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NFS_RETRY_INTERVAL DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NFS_RETRY_INTERVAL_UDP DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NFS_RETRY_INTERVAL_TCP DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NFS_RETRY_INTERVAL_TOPLVL DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NFS_VERS DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NFS_VERS_PING DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NIS_DOMAIN DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NORMALIZE_HOSTNAMES "no"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_NORMALIZE_SLASHES "yes"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_OS DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_OSVER DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_PLOCK "yes"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_PRINT_PID DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_PRINT_VERSION DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_RESTART_MOUNTS "no"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_SEARCH_PATH DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_SELECTORS_IN_DEFAULTS "no"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_SHOW_STATFS_ENTRIES DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_SUN_MAP_SYNTAX DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_TRUNCATE_LOG DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_UMOUNT_ON_EXIT "yes"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_USE_TCPWRAPPERS DEFAULT_AMD_NULL_VALUE
|
|
Packit |
8480eb |
#define DEFAULT_AMD_VENDOR "unknown"
|
|
Packit |
8480eb |
#define DEFAULT_AMD_LINUX_UFS_MOUNT_TYPE "ext3"
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
#ifdef WITH_LDAP
|
|
Packit |
8480eb |
struct ldap_schema;
|
|
Packit |
8480eb |
struct ldap_searchdn;
|
|
Packit |
8480eb |
void defaults_free_uris(struct list_head *);
|
|
Packit |
8480eb |
struct list_head *defaults_get_uris(void);
|
|
Packit |
8480eb |
struct ldap_schema *defaults_get_default_schema(void);
|
|
Packit |
8480eb |
void defaults_free_searchdns(struct ldap_searchdn *);
|
|
Packit |
8480eb |
struct ldap_searchdn *defaults_get_searchdns(void);
|
|
Packit |
8480eb |
struct ldap_schema *defaults_get_schema(void);
|
|
Packit |
8480eb |
#endif
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
unsigned int defaults_read_config(unsigned int);
|
|
Packit |
8480eb |
void defaults_conf_release(void);
|
|
Packit |
8480eb |
const char *defaults_get_master_map(void);
|
|
Packit |
8480eb |
int defaults_master_set(void);
|
|
Packit |
8480eb |
unsigned int defaults_get_timeout(void);
|
|
Packit |
8480eb |
int defaults_get_master_wait(void);
|
|
Packit |
8480eb |
unsigned int defaults_get_negative_timeout(void);
|
|
Packit |
8480eb |
unsigned int defaults_get_browse_mode(void);
|
|
Packit |
8480eb |
unsigned int defaults_get_logging(void);
|
|
Packit |
8480eb |
unsigned int defaults_force_std_prog_map_env(void);
|
|
Packit |
8480eb |
const char *defaults_get_ldap_server(void);
|
|
Packit |
8480eb |
unsigned int defaults_get_ldap_timeout(void);
|
|
Packit |
8480eb |
unsigned int defaults_get_ldap_network_timeout(void);
|
|
Packit |
8480eb |
unsigned int defaults_get_mount_nfs_default_proto(void);
|
|
Packit |
8480eb |
unsigned int defaults_get_append_options(void);
|
|
Packit Service |
8741f6 |
unsigned int defaults_get_mount_verbose(void);
|
|
Packit |
8480eb |
unsigned int defaults_get_mount_wait(void);
|
|
Packit |
8480eb |
unsigned int defaults_get_umount_wait(void);
|
|
Packit |
8480eb |
const char *defaults_get_auth_conf_file(void);
|
|
Packit |
8480eb |
unsigned int defaults_get_map_hash_table_size(void);
|
|
Packit |
8480eb |
unsigned int defaults_use_hostname_for_mounts(void);
|
|
Packit |
8480eb |
unsigned int defaults_disable_not_found_message(void);
|
|
Packit |
8480eb |
unsigned int defaults_get_sss_master_map_wait(void);
|
|
Packit |
8480eb |
unsigned int defaults_get_use_mount_request_log_id(void);
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
unsigned int conf_amd_mount_section_exists(const char *);
|
|
Packit |
8480eb |
char **conf_amd_get_mount_paths(void);
|
|
Packit |
8480eb |
char *conf_amd_get_arch(void);
|
|
Packit |
8480eb |
char *conf_amd_get_karch(void);
|
|
Packit |
8480eb |
char *conf_amd_get_os(void);
|
|
Packit |
8480eb |
char *conf_amd_get_os_ver(void);
|
|
Packit |
8480eb |
char *conf_amd_get_vendor(void);
|
|
Packit |
8480eb |
char *conf_amd_get_full_os(void);
|
|
Packit |
8480eb |
char *conf_amd_get_auto_dir(void);
|
|
Packit |
8480eb |
char *conf_amd_get_cluster(void);
|
|
Packit |
8480eb |
unsigned int conf_amd_get_exec_map_timeout(void);
|
|
Packit |
8480eb |
char *conf_amd_get_hesiod_base(void);
|
|
Packit |
8480eb |
char *conf_amd_get_karch(void);
|
|
Packit |
8480eb |
char *conf_amd_get_ldap_base(void);
|
|
Packit |
8480eb |
char *conf_amd_get_ldap_hostports(void);
|
|
Packit |
8480eb |
char *conf_amd_get_sub_domain(void);
|
|
Packit |
8480eb |
char *conf_amd_get_localhost_address(void);
|
|
Packit |
8480eb |
unsigned int conf_amd_get_log_options(void);
|
|
Packit |
8480eb |
char *conf_amd_get_nfs_proto(void);
|
|
Packit |
8480eb |
char *conf_amd_get_nis_domain(void);
|
|
Packit |
8480eb |
unsigned int conf_amd_set_nis_domain(const char *);
|
|
Packit |
8480eb |
char *conf_amd_get_map_defaults(const char *);
|
|
Packit |
8480eb |
char *conf_amd_get_map_name(const char *);
|
|
Packit |
8480eb |
char *conf_amd_get_map_options(const char *);
|
|
Packit |
8480eb |
char *conf_amd_get_map_type(const char *);
|
|
Packit |
8480eb |
char *conf_amd_get_search_path(const char *);
|
|
Packit |
8480eb |
unsigned int conf_amd_get_dismount_interval(const char *);
|
|
Packit |
8480eb |
char *conf_amd_get_linux_ufs_mount_type(void);
|
|
Packit |
8480eb |
unsigned long conf_amd_get_flags(const char *);
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
#endif
|
|
Packit |
8480eb |
|