<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - systemd socket activation confuses saned"
href="https://bugs.freedesktop.org/show_bug.cgi?id=86497">86497</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>systemd socket activation confuses saned
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Felix.Braun@mail.McGill.ca
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=109776" name="attach_109776" title="socket unit file">attachment 109776</a> <a href="attachment.cgi?id=109776&action=edit" title="socket unit file">[details]</a></span>
socket unit file
I'm trying to run saned via systemd socket activation on Debian jessie.
When I contact the scanner server from a remote system, systemd starts saned
correctly. However, saned thinks it is being started for localhost
systemd[1]: Starting Scanner Service (192.168.220.17:57533)
systemd[1]: Started Scanner Service (192.168.220.17:57533)
saned[607]: saned (AF-indep+IPv6) from sane-backends 1.0.24
saned[607]: check_host: access by remote host: localhost
saned[607]: init: access by host localhost denied
saned[607]: saned exiting
If I add localhost to the allowed hosts (saned.conf) I get the following error
systemd[1]: Starting Scanner Service (192.168.220.17:57533)...
systemd[1]: Started Scanner Service (192.168.220.17:57533).
saned[788]: saned (AF-indep+IPv6) from sane-backends 1.0.24 starting up
saned[788]: check_host: access by remote host: localhost
saned[788]: init: bad status=22 or procnum=-1225192048
saned[788]: saned exiting
When I use xinetd to start saned in the same setup, everything works as
expected.
I have reported a bug to the sane bug tracker
<a href="https://alioth.debian.org/tracker/index.php?func=detail&aid=314883">https://alioth.debian.org/tracker/index.php?func=detail&aid=314883</a>
Somebody is experiencing the same problem with RedHat (I'm on Debian)
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1091566">https://bugzilla.redhat.com/show_bug.cgi?id=1091566</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>