Summary: | sane 1.0.15: saned ignores /etc/sane.d/saned.conf | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stuart Longland (RETIRED) <redhatter> |
Component: | Current packages | Assignee: | Patrick Kursawe (RETIRED) <phosphan> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Stuart Longland (RETIRED)
2005-03-19 18:54:30 UTC
Forgot to mention... the scanner does work locally. e.g. the following works: (13:00) beast root # xhost +linux linux being added to access control list (13:00) beast root # ssh linux Password: Last login: Sun Mar 20 12:53:12 2005 from 10.0.0.251 linux root # DISPLAY=10.0.0.251:0.0 xsane xsane pops up, and I'm able to scan from this dialogue. Sorry for the late reply, just returned from holidays. Which sane-backends version did you run back then when it worked? I can't reproduce your problem, but my debug output differs significantly from yours. [saned] main: starting debug mode (level 128) [saned] main: trying to get port for service `sane-port' (getaddrinfo) [saned] main: [0] socket () using IPv6 [saned] main: [0] setsockopt () [saned] main: [0] bind () to port 6566 [saned] main: [0] listen () [saned] main: [1] socket () using IPv4 [saned] main: [1] setsockopt () [saned] main: [1] bind () to port 6566 [saned] main: [1] bind failed: Address already in use [saned] main: waiting for control connection [saned] saned (AF-indep+IPv6) from sane-backends 1.0.15 ready [saned] check_host: detected an IPv4-mapped address [saned] check_host: access by remote host: ::ffff:134.147.66.135 [saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK [saned] check_host: local hostname: zaphod [saned] check_host: local hostname(s) (from DNS): zaphod.anachem.ruhr-uni-bochum.de [saned] check_host: local hostname(s) (from DNS): (null) [saned] check_host: local hostname(s) (from DNS): (null) [saned] check_host: remote host doesn't have same addr as local [saned] check_host: opening config file: /etc/hosts.equiv [saned] check_host: can't open config file: /etc/hosts.equiv (No such file or directory) [saned] check_host: opening config file: saned.conf [saned] check_host: config file line: `#' (some stuff snipped here) [saned] check_host: config file line: `0.0.0.0/0' [saned] check_host: subnet with base IP = 0.0.0.0, CIDR netmask = 0 [saned] check_host: access granted from IP address 134.147.66.135 (in subnet 0.0.0.0/0) [saned] init: access granted I see from your USE flags that you have ipv6 support enabled, but I see nothing related in your debug output, so I guess that your emerge info does not reflect the situation when you built sane-backends. I rebuilt my sane-backends without ipv6 support, and access control still seems to work as advertised. Maybe the relevant part is this: [saned] check_host: remote host is not IN_LOOPBACK [saned] check_host: local hostname: zaphod [saned] check_host: local hostname (from DNS): zaphod.anachem.ruhr-uni-bochum.de [saned] check_host: local host address (from DNS): 134.147.66.171 [saned] check_host: remote host doesn't have same addr as local [saned] check_host: opening config file: /etc/hosts.equiv [saned] check_host: can't open config file: /etc/hosts.equiv (No such file or directory) [saned] check_host: opening config file: saned.conf So, saned tries to lookup the local address from the local hostname to determine if it is a remote address or not. On your machine gethostbyname fails for "linux" and saned aborts the whole access check procedure - and rejects the connection. Please make sure your machine can lookup its own address. Re-open this bug if gethostbyname works and access control still doesn't. |