summaryrefslogtreecommitdiffhomepage
path: root/svr-chansession.c
AgeCommit message (Collapse)Author
2016-05-04Convert #ifdef to #if, other build changesMatt Johnston
2016-04-12Add -c <command> option to force a specific commandJeremy Kerr
This change adds a -c option to dropbear, to force the session to use a specific command, in a similar fashion to OpenSSH's ForceCommand configuration option. This is useful to provide a simple fixed service over ssh, without requiring an authorized key file for the per-key forced_command option. This setting takes precedence over the channel session's provided command, and the per-key forced_command setting. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-21Don't display the MOTD when an explicit command is run.Guilhem Moulin
(possibly via authorized_keys(5) restrictions), even when a pseudo-terminal has been allocated for the session. In other words, only display the MOTD when the server starts the user's default shell.
2015-06-04buf_getstring and buf_putstring now use non-unsigned char*Matt Johnston
2015-05-05Turn signame local variable into char *Gaël PORTAY
2015-05-05Turn ChanSess's cmd attribute into char *Gaël PORTAY
2015-05-05Turn type local variable into char *Gaël PORTAY
2015-05-05Turn ChanSess's tty and term attributes into char *Gaël PORTAY
2015-05-05Fix pointer differ in signess warnings [-Werror=pointer-sign]Gaël PORTAY
2015-05-05Fix unused make_connection_string() warning [-Werror=unused-function]Gaël PORTAY
This function is used when USE_VFORK is unset.
2015-02-24Revert accidental commented out signal handlersMatt Johnston
2015-02-24Free memory before exiting. Based on patch from Thorsten Horstmann.Matt Johnston
Client side is not complete.
2015-02-24Fix for old compilers, variable declarations at beginning of functionsThorsten Horstmann
and /**/ comments
2014-10-21Combine code for SSH_CONNECTION and SSH_CLIENTMatt Johnston
2014-10-20Add SSH_CLIENT environment variableRyan Cleere
2014-08-19Make keepalive handling more robust, this should now match what OpenSSH doesMatt Johnston
2014-07-28Make sure the check_close() handler runs when a server child process exitsMatt Johnston
2014-07-16Set tcp priority as follows:Matt Johnston
if (connecting || ptys || x11) tos = LOWDELAY; else if (tcp_forwards) tos = 0; else tos = BULK; TCP forwards could be either lowdelay or bulk, hence the default priority.
2014-02-15- Save errno in signal handlersMatt Johnston
- Use _exit() in segv handler
2013-12-03- Sockets are set to lowdelay priority initially to improve conneciton setupMatt Johnston
time - Set non-pty connections to bulk for client and server
2013-12-02Set IPTOS_LOWDELAY on PTY sessions onlyCatalin Patulea
2013-11-14rename random.h to dbrandom.h since some OSes have a system random.hMatt Johnston
--HG-- rename : random.c => dbrandom.c rename : random.h => dbrandom.h
2013-08-12Remove accidental one second sleep leftover from debuggingMatt Johnston
2012-06-29Improve RNG seeding.Matt Johnston
Try to read from /dev/urandom multiple times, take input from extra sources, and use /dev/random when generating private keys
2012-03-26Fixed compilation with unset ENABLE_{SVR,CLI}_AGENTFWD.Andrey Mazo
Got rid of ENABLE_AGENTFWD macro.
2012-04-09Rename HAVE_FORK to USE_VFORKMatt Johnston
It makes it a bit more obvious why there's a test there since HAVE_FORK is the normal case.
2012-04-08check for fork() and not __uClinux__Mike Frysinger
2011-12-04- Initialise sa_mask properlyMatt Johnston
2012-02-21- MergeMatt Johnston
2012-02-21- Make sure sa_mask is setMatt Johnston
2011-12-04- Fix use-after-free if multiple command requests were sent. MoveMatt Johnston
the original_command into chansess struct since that makes more sense
2011-03-31Avoid segfault when handling childpid raceMatt Johnston
--HG-- extra : convert_revision : 8845727a7e2b096015dbb76d8f3df13c9acee7da
2011-02-28Compile fix for when both client and server agent forwarding is disabledMatt Johnston
--HG-- extra : convert_revision : 8a608f0ed5e4b491dba4bf330e560636ec7376fd
2011-02-23Improve capitalisation for all logged stringsMatt Johnston
--HG-- extra : convert_revision : 997e53cec7a9efb7413ac6e17b6be60a5597bd2e
2010-03-04don't #include "utmp.h"Matt Johnston
--HG-- extra : convert_revision : a014a978f213e6ff424e7d10794ae426375f3191
2009-09-05Move remotehost into svr_ses structure since we can't look it upMatt Johnston
once we've forked (the connection socket has been closed). Fixes inetd mode. --HG-- extra : convert_revision : 7d5d152ec84fb11a188966c1400d213c908cc511
2009-09-02- Set $SSH_CONNECTIONMatt Johnston
- Document environment variables in the manpage --HG-- extra : convert_revision : 1a93c6112f00730f5cd21a853d3bd5ca8079f725
2009-09-01Rearrange getaddrstring() etcMatt Johnston
--HG-- extra : convert_revision : 8a18c4a60aeaec085923d13d98fa0f93c506ceba
2009-08-31- set $SSH_TTY environment variableMatt Johnston
- remove extraneous (crash causing) printf() --HG-- extra : convert_revision : cf4b256bf6785be384eca32f7b229b89e58539eb
2009-08-26- set $SSH_ORIGINAL_COMMAND if a command is forced, and log itMatt Johnston
if LOG_COMMANDS is set --HG-- extra : convert_revision : d9e8aa0ecbe7607285fa4f96f0d6f9b1523719d8
2009-07-30Agent forwarding worksMatt Johnston
--HG-- branch : agent-client extra : convert_revision : eb0dae4b62e243ba37a897beb7ba81a4f637d8b3
2008-11-05- Set a default path, since bash won't export one otherwise (though it will setMatt Johnston
one, leading to mysterious problems) - Rearrange some options --HG-- extra : convert_revision : 6e81becf6e96479e10d9244186a900fab7079bf8
2008-09-29- Add Counter Mode supportMatt Johnston
--HG-- extra : convert_revision : 5225162bdf32d70b58b6d3ae375a290326c59f3a
2008-09-23propagate from branch 'au.asn.ucc.matt.dropbear.pubkey-options' (head ↵Matt Johnston
537a6ebebb46424b967ffe787f0f8560e5f447e8) to branch 'au.asn.ucc.matt.dropbear' (head 10b2f286b9886364db39dfbb4f8f46e49e345d87) --HG-- extra : convert_revision : 6fd2597077a4e2421bf45388e058d15606f6dd74
2008-09-15- Add run_shell_command() function to run a "sh -c" command, handlingMatt Johnston
lots of the work that exechild did (and can be shared by client -J option) --HG-- extra : convert_revision : a15dfd8017af8212b3b227f18ce2539dd471f7f6
2008-09-15- Generalise spawn_command functionMatt Johnston
--HG-- extra : convert_revision : 9927a5fe084c8053c747a40515f0213141ef8139
2008-09-15- Get rid of some ugly #definesMatt Johnston
--HG-- extra : convert_revision : 4cfa02494ded17cdb068ec66581b720a5a0fd70b
2008-09-08* Patch from Frédéric Moulins adding options to authorized_keys.Matt Johnston
Needs review. --HG-- branch : pubkey-options extra : convert_revision : 26872f944d79ddacff1070aab32115a6d726392c
2008-01-13fix up after mergeMatt Johnston
--HG-- extra : convert_revision : 6107b89c1188975d0c60f50621afe593cb6e554f
2008-01-13merge of '295b11312e327fe6c4f33512674ea4a1a9790344'Matt Johnston
and '426d7aeea950d007ed7ef9f03f9f40b138a769cb' --HG-- extra : convert_revision : d9cc9067a1a17f312a7349781f2dbbaf2890d5a6