|
Lines 115-120
initialize_server_options(ServerOptions
Link Here
|
| 115 |
options->permit_tun = -1; |
115 |
options->permit_tun = -1; |
| 116 |
options->num_permitted_opens = -1; |
116 |
options->num_permitted_opens = -1; |
| 117 |
options->adm_forced_command = NULL; |
117 |
options->adm_forced_command = NULL; |
|
|
118 |
options->chroot_directory = NULL; |
| 118 |
} |
119 |
} |
| 119 |
|
120 |
|
| 120 |
void |
121 |
void |
|
Lines 266-272
typedef enum {
Link Here
|
| 266 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
267 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
| 267 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
268 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
| 268 |
sGssAuthentication, sGssCleanupCreds, sAcceptEnv, sPermitTunnel, |
269 |
sGssAuthentication, sGssCleanupCreds, sAcceptEnv, sPermitTunnel, |
| 269 |
sMatch, sPermitOpen, sForceCommand, |
270 |
sMatch, sPermitOpen, sForceCommand, sChrootDirectory, |
| 270 |
sUsePrivilegeSeparation, |
271 |
sUsePrivilegeSeparation, |
| 271 |
sDeprecated, sUnsupported |
272 |
sDeprecated, sUnsupported |
| 272 |
} ServerOpCodes; |
273 |
} ServerOpCodes; |
|
Lines 366-371
static struct {
Link Here
|
| 366 |
{ "match", sMatch, SSHCFG_ALL }, |
367 |
{ "match", sMatch, SSHCFG_ALL }, |
| 367 |
{ "permitopen", sPermitOpen, SSHCFG_ALL }, |
368 |
{ "permitopen", sPermitOpen, SSHCFG_ALL }, |
| 368 |
{ "forcecommand", sForceCommand, SSHCFG_ALL }, |
369 |
{ "forcecommand", sForceCommand, SSHCFG_ALL }, |
|
|
370 |
{ "chrootdirectory", sChrootDirectory, SSHCFG_ALL }, |
| 369 |
{ NULL, sBadOption, 0 } |
371 |
{ NULL, sBadOption, 0 } |
| 370 |
}; |
372 |
}; |
| 371 |
|
373 |
|
|
Lines 1210-1215
parse_flag:
Link Here
|
| 1210 |
options->adm_forced_command = xstrdup(cp + len); |
1212 |
options->adm_forced_command = xstrdup(cp + len); |
| 1211 |
return 0; |
1213 |
return 0; |
| 1212 |
|
1214 |
|
|
|
1215 |
case sChrootDirectory: |
| 1216 |
charptr = &options->chroot_directory; |
| 1217 |
goto parse_filename; |
| 1218 |
|
| 1213 |
case sDeprecated: |
1219 |
case sDeprecated: |
| 1214 |
logit("%s line %d: Deprecated option %s", |
1220 |
logit("%s line %d: Deprecated option %s", |
| 1215 |
filename, linenum, arg); |
1221 |
filename, linenum, arg); |
|
Lines 1317-1322
copy_set_server_options(ServerOptions *d
Link Here
|
| 1317 |
if (preauth) |
1323 |
if (preauth) |
| 1318 |
return; |
1324 |
return; |
| 1319 |
M_CP_STROPT(adm_forced_command); |
1325 |
M_CP_STROPT(adm_forced_command); |
|
|
1326 |
M_CP_STROPT(chroot_directory); |
| 1320 |
} |
1327 |
} |
| 1321 |
|
1328 |
|
| 1322 |
#undef M_CP_INTOPT |
1329 |
#undef M_CP_INTOPT |