summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused utility functionsNathan Straz2013-09-172-104/+0
|
* Increase buffer and packet sizesNathan Straz2013-09-164-7/+7
| | | | | | | | | This coordinates the buffer sizes with the max packet size. qarshd and qarsh will probably break if this value does not match between client and server builds. Also increase the value to reduce overhead. A max packet size of 16k only yields 40MB/s. Increase that to 128k and we can do 500MB/s.
* Only check if stdin is a tty onceNathan Straz2013-09-161-1/+2
|
* Split btime into two partsNathan Straz2013-09-113-98/+74
| | | | | | | We don't need to lookup the addresses every time we get btime. Do it once during hbeat_init and reuse the socket in hbeat. This cleans up the qarsh strace so the hbeat is only a send and recv.
* Don't need to copy this stringNathan Straz2013-09-111-1/+1
|
* Fix up stdin handlingNathan Straz2013-09-112-24/+45
|
* Close both ends of the pipes so we don't leak file descriptorsNathan Straz2013-09-111-0/+3
|
* Don't bother freeing remuser before we exitNathan Straz2013-09-111-1/+0
| | | | | | | If the user is specified as part of the host, we don't need to free it and if it was a separate option, it will get freed when the process ends
* We shouldn't need to round the boot time anymoreNathan Straz2013-09-111-1/+0
|
* Remove unused defineNathan Straz2013-09-111-1/+0
|
* Clean up memory leaks and uninitialized variables in qarshdNathan Straz2013-09-111-0/+5
|
* More memory allocation cleanup in qacpNathan Straz2013-09-111-65/+62
| | | | | | Net removal of 12 strdup calls rstat is properly freed Don't need to strdup for basename, the original is not modified
* Only log debug entries if the debug flag is set.Nathan Straz2013-09-111-2/+2
|
* Clean up memory leaks on sendNathan Straz2013-09-111-9/+5
|
* Remove complicated remote file descriptor codeNathan Straz2013-09-115-47/+37
| | | | | | | | Only handle one file transfer at a time so we don't need an array to track multiple transfers or know the remote's fd number. Loop in recv_packet until we read a whole packet.
* Get commands running over one socketNathan Straz2013-09-114-196/+355
| | | | Added a new packet to limit data sent from the other side.
* Clean up unused variable warningNathan Straz2013-09-111-3/+0
|
* Add option to pause at startupNathan Straz2013-09-111-5/+10
| | | | | | This allows us to attach gdb before anything interesting happens. Use the command 'signal 14' to get the process running again.
* Get qacp remote to local workingNathan Straz2013-09-112-53/+54
|
* Get qacp local to remote working on main socketNathan Straz2013-09-115-205/+170
| | | | | | | | | | I removed the buffering layer from recv_packet because it made the logic too complex around the pselect in qarshd. Now only read as much as needed to get each packet. qarshd adds an array for remote file descriptors which is only a stub for now. This needs to be expanded to allow multiple file transfers at the same time for runcmd.
* Move packet sequence numbering to send_packetNathan Straz2013-09-113-9/+4
|
* Add new data packet typeNathan Straz2013-09-112-1/+98
|
* Send all server side error messages to stderrNathan Straz2013-09-113-28/+28
| | | | This should get sent to the journal or syslog
* Remove last bits of XML dependenciesNathan Straz2013-09-113-21/+10
|
* Convert packet parsingNathan Straz2013-09-113-198/+120
|
* Rewrite qptostr to store binary bits into an existing bufferNathan Straz2013-09-113-137/+122
|
* Start by adding a packet size to the existing protocolNathan Straz2013-09-112-10/+64
|
* Move to a new port for the new protocolNathan Straz2013-09-117-7/+7
| | | | I don't see any way to coexist with the old "protocol"
* Catch errors in both make commandsNathan Straz2013-08-271-17/+63
| | | | | Fix more errors as they are found. Takes longer to rebuild the policy, but we can start with no bad interfaces.
* Rebuild policy in a temp directoryNathan Straz2013-08-271-4/+16
| | | | | Avoid hitting an AVC from rebuilding in the doc directory. The logs are saved if we find more bad interfaces.
* Allow us to transition from init_t to qarshd_tNathan Straz2013-05-211-0/+1
|
* Keep SIGPIPE working as expectedNathan Straz2013-05-211-0/+1
| | | | | It turns out the systemd maintainers thought it would be good to ignore SIGPIPE by default. I don't agree.
* Convert to systemd socket activated servicesNathan Straz2013-05-148-41/+54
| | | | | qarshd and btimed will now start directly from systemd xinetd is no longer needed
* Fill in sequence numbers with a real sequenceNathan Straz2012-12-182-5/+9
|
* Bump version for sigprocmask fixv1.28-1Nathan Straz2012-07-191-1/+5
|
* Restore original sigmask before exec'ing childNathan Straz2012-07-191-1/+3
|
* The selinux Makefile is needed to build the policyNathan Straz2012-07-181-0/+1
|
* Bump selinux policy versionv1.27-1Nathan Straz2012-06-271-1/+1
|
* Bump version for next release and update changelogNathan Straz2012-06-271-2/+10
|
* Depend on policy.xml directlyNathan Straz2012-06-271-1/+1
|
* Update selinux policy for Fedora 17Nathan Straz2012-06-271-9/+21
|
* Add script to detect and work around some selinux policy issuesNathan Straz2012-06-272-1/+36
|
* Spotted a missing freeNathan Straz2012-04-191-0/+1
|
* Pass hints into getaddrinfoNathan Straz2012-04-191-1/+1
| | | | | Without the hints we could end up creating a non-stream socket which would cause qarsh to hang reading the packet in set_remote_user().
* Move error message and exit from signal handler.Nathan Straz2012-02-201-2/+6
|
* Check return of send_package and exit on errorNathan Straz2012-02-201-1/+6
|
* Fix exit code for connection failures.Nathan Straz2012-01-261-1/+1
|
* Don't limit instances of qarshd in xinetdNathan Straz2011-08-191-0/+1
|
* Merge branch 'ipv6' of ssh://sts-a//home/msp/djansa/src/git/qarsh into ipv6Nathan Straz2010-09-309-97/+207
|\ | | | | | | | | | | Conflicts: qarsh.c sockutil.c
| * First crack at ipv6/ipv4 agnostic qarsh/qacp.Dean Jansa2010-09-285-47/+125
| |