/* 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.
*/
/* * Create a configuration specific to this module for a server or directory * location, and fill it with the default settings.
*/ staticvoid *mkconfig(apr_pool_t *p)
{
suexec_config_t *cfg = apr_palloc(p, sizeof(suexec_config_t));
cfg->active = 0; return cfg;
}
/* * Respond to a callback to create configuration record for a server or * vhost environment.
*/ staticvoid *create_mconfig_for_server(apr_pool_t *p, server_rec *s)
{ return mkconfig(p);
}
/* * Respond to a callback to create a config record for a specific directory.
*/ staticvoid *create_mconfig_for_directory(apr_pool_t *p, char *dir)
{ return mkconfig(p);
}
/* * Define the directives specific to this module. This structure is referenced * later by the 'module' structure.
*/ staticconst command_rec suexec_cmds[] =
{ /* XXX - Another important reason not to allow this in .htaccess is that
* the ap_[ug]name2id() is not thread-safe */
AP_INIT_TAKE2("SuexecUserGroup", set_suexec_ugid, NULL, RSRC_CONF, "User and group for spawned processes"),
{ NULL }
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.