|
Lines 122-127
initialize_server_options(ServerOptions
Link Here
|
| 122 |
options->permit_tun = -1; |
122 |
options->permit_tun = -1; |
| 123 |
options->num_permitted_opens = -1; |
123 |
options->num_permitted_opens = -1; |
| 124 |
options->adm_forced_command = NULL; |
124 |
options->adm_forced_command = NULL; |
|
|
125 |
options->chroot_directory = NULL; |
| 125 |
} |
126 |
} |
| 126 |
|
127 |
|
| 127 |
void |
128 |
void |
|
Lines 291-297
typedef enum {
Link Here
|
| 291 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
292 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
| 292 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
293 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
| 293 |
sGssAuthentication, sGssCleanupCreds, sAcceptEnv, sPermitTunnel, |
294 |
sGssAuthentication, sGssCleanupCreds, sAcceptEnv, sPermitTunnel, |
| 294 |
sMatch, sPermitOpen, sForceCommand, |
295 |
sMatch, sPermitOpen, sForceCommand, sChrootDirectory, |
| 295 |
sUsePrivilegeSeparation, |
296 |
sUsePrivilegeSeparation, |
| 296 |
sDeprecated, sUnsupported |
297 |
sDeprecated, sUnsupported |
| 297 |
} ServerOpCodes; |
298 |
} ServerOpCodes; |
|
Lines 403-408
static struct {
Link Here
|
| 403 |
{ "match", sMatch, SSHCFG_ALL }, |
404 |
{ "match", sMatch, SSHCFG_ALL }, |
| 404 |
{ "permitopen", sPermitOpen, SSHCFG_ALL }, |
405 |
{ "permitopen", sPermitOpen, SSHCFG_ALL }, |
| 405 |
{ "forcecommand", sForceCommand, SSHCFG_ALL }, |
406 |
{ "forcecommand", sForceCommand, SSHCFG_ALL }, |
|
|
407 |
{ "chrootdirectory", sChrootDirectory, SSHCFG_ALL }, |
| 406 |
{ NULL, sBadOption, 0 } |
408 |
{ NULL, sBadOption, 0 } |
| 407 |
}; |
409 |
}; |
| 408 |
|
410 |
|
|
Lines 1253-1258
parse_flag:
Link Here
|
| 1253 |
options->adm_forced_command = xstrdup(cp + len); |
1255 |
options->adm_forced_command = xstrdup(cp + len); |
| 1254 |
return 0; |
1256 |
return 0; |
| 1255 |
|
1257 |
|
|
|
1258 |
case sChrootDirectory: |
| 1259 |
charptr = &options->chroot_directory; |
| 1260 |
goto parse_filename; |
| 1261 |
|
| 1256 |
case sDeprecated: |
1262 |
case sDeprecated: |
| 1257 |
logit("%s line %d: Deprecated option %s", |
1263 |
logit("%s line %d: Deprecated option %s", |
| 1258 |
filename, linenum, arg); |
1264 |
filename, linenum, arg); |
|
Lines 1360-1365
copy_set_server_options(ServerOptions *d
Link Here
|
| 1360 |
if (preauth) |
1366 |
if (preauth) |
| 1361 |
return; |
1367 |
return; |
| 1362 |
M_CP_STROPT(adm_forced_command); |
1368 |
M_CP_STROPT(adm_forced_command); |
|
|
1369 |
M_CP_STROPT(chroot_directory); |
| 1363 |
} |
1370 |
} |
| 1364 |
|
1371 |
|
| 1365 |
#undef M_CP_INTOPT |
1372 |
#undef M_CP_INTOPT |