[sane-devel] Where should a backend save config data ?

mh crapsite@gmx.net
Thu, 25 Jul 2002 12:07:09 +0200

Henning Meier-Geinitz, Mittwoch, 24. Juli 2002 21:50:
> > Should this go to $HOME/.sane ? Does this work with saned?
> I should work with saned but probably not the way the user expects. As
> saned is started by user saned (at least that's what the manpage
> suggests) I guess the data is saved in /home/saned/.sane. So it will
> be accessible by all remote users. But I haven't tested this.

Ok, what about the following approach:
-By default, no values are saved to disk.
-If the user creates a directory $HOME/.tevion9693usb, then the files
 are saved there. For saned, this means that the values are used by all users
 that are allowed to scan over the network, if someone with permission to do  
 so created /home/saned/.tevion9693usb.
-The backend supplies two options:
 "Save calibration values to disk (if possible)"
 "Calibrate before next scan"

Are there any problems with this approach ? I don't want to be the one who 
introduces a new security problem :-)