[Bug 12544] New: Confusing return codes on unauthorized connections

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 12544] New: Confusing return codes on unauthorized connections

samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=12544

            Bug ID: 12544
           Summary: Confusing return codes on unauthorized connections
           Product: rsync
           Version: 3.1.3
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

I have seen a couple of discussions here about whether certain bugs are related
to rsync or rather systemd. Right now I am dealing with a problem regarding
running rsync as a systemd socket activated daemon. Basically systemd runs a
daemon only after it is contacted through socket, daemon performs a task and
then finishes. systemd only collects return value.

If I use "allow hosts" option in rsyncd.conf file and then I receive a
connection through the socket from host which is not on the list, the
connection is rejected. This is completely fine but rsync ends with -1 in such
a case. From my point of view it should end with other value because rsync
ended correctly as instructed through the conf file.

If I receive lots of unauthorized connections, rsync leaves behind a failed
unit. After some time these failed units seem to influence performance of the
system until at some point the system literally crawls to a halt.

My suggestion would be to perhaps try to return something else than -1. Maybe
not 0 because in that case every unauthorized connection would be simply
ignored but at least some return value which would distinguish this use-case
from all the other general -1 errors.

--
You are receiving this mail because:
You are the QA Contact for the bug.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html