sane-project-website/old-archive/1996-12/0012.html

69 wiersze
3.6 KiB
HTML

<!-- received="Mon Dec 16 21:22:26 1996 MST" -->
<!-- sent="Mon, 16 Dec 1996 21:07:03 -0700" -->
<!-- name="David Mosberger-Tang" -->
<!-- email="davidm@azstarnet.com" -->
<!-- subject="Re: mail lossage?" -->
<!-- id="199612170407.VAA22685@panda.mosberger" -->
<!-- inreplyto="mail lossage?" -->
<title>sane-devel: Re: mail lossage?</title>
<h1>Re: mail lossage?</h1>
<b>David Mosberger-Tang</b> (<a href="mailto:davidm@azstarnet.com"><i>davidm@azstarnet.com</i></a>)<br>
<i>Mon, 16 Dec 1996 21:07:03 -0700</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#12">[ date ]</a><a href="index.html#12">[ thread ]</a><a href="subject.html#12">[ subject ]</a><a href="author.html#12">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0013.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: sane-0.3: it's almost for real now!"</a>
<li> <b>Previous message:</b> <a href="0011.html">Tristan Tarrant: "Re: sane-0.3: it's almost for real now!"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0015.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: mail lossage?"</a>
<li> <b>Reply:</b> <a href="0015.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: mail lossage?"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt;&gt;&gt;&gt;&gt; On Sun, 15 Dec 1996 03:51:20 +0100 (MET), <a href="mailto:becka@sunserver1.rz.uni-duesseldorf.de">becka@sunserver1.rz.uni-duesseldorf.de</a> said:</i><br>
<p>
<i> &gt;&gt; &gt;&gt; in which case you have to be careful not to run into endless</i><br>
<i> &gt;&gt; &gt;&gt; recursion when trying to determine the list of available &gt;&gt;</i><br>
<i> &gt;&gt; devices... ;-)</i><br>
<p>
Andy&gt; Yes. Simple solution : Do not allow to re-export<br>
Andy&gt; netsaned-mounted scanners.<br>
<p>
<i> &gt;&gt; &gt; Hmmh, you make the assumption it's easy for the net-proxy to determine</i><br>
<i> &gt;&gt; &gt; whether it's re-exporting a device or not. I don't think it's that</i><br>
<i> &gt;&gt; &gt; easy. </i><br>
<p>
Andy&gt; Well ... I assumed everything which has a driver-name starting with<br>
Andy&gt; net-should be left out ... This could be dynamically added to the<br>
Andy&gt; basename when exporting.<br>
<p>
OK, I thought some more about it. Maybe the proper solution is to<br>
view this as an authorization question. We change sane_get_devices()<br>
and sane_open() to accept a pointer to an authorization structure. As<br>
part of that authorization structure, we can keep info on whether this<br>
is a local user or a remote user (e.g., a NULL authorization pointer<br>
would imply local user as defined by getuid() etc). The net backend<br>
(metanet) can then decide what to do with a get_device() request based<br>
on the authorization: if it's a local user, return remote devices,<br>
otherwise, return an empty list.<br>
<p>
--david<br>
<p>
<pre>
---
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@azstarnet.com">majordomo@azstarnet.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0013.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: sane-0.3: it's almost for real now!"</a>
<li> <b>Previous message:</b> <a href="0011.html">Tristan Tarrant: "Re: sane-0.3: it's almost for real now!"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0015.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: mail lossage?"</a>
<li> <b>Reply:</b> <a href="0015.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: mail lossage?"</a>
<!-- reply="end" -->
</ul>