Blame include/defaults.h

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