[sane-devel] [RFC] Locking devices via sanei_access lib...

2005-02-07 Thread Oliver Rauch
Am Mon, 2005-02-07 um 20.10 schrieb Gerhard Jaeger: > On Monday 07 February 2005 16:50, Oliver Rauch wrote: > > Am Mon, 2005-02-07 um 14.10 schrieb Gerhard Jaeger: > > > Hi, > > > > > > On Monday 07 February 2005 12:41, Johannes Meixner wrote: > > > > Hello, > > > > > > > > On Feb 7 12:11 Gerhard J

[sane-devel] [RFC] Locking devices via sanei_access lib...

2005-02-07 Thread Gerhard Jaeger
On Monday 07 February 2005 15:39, m. allan noah wrote: > concerned about the security of well-known file names being used. i dont > know all the implications and i did not read your code, but various > symlink attacks might be possible. other apps deal with this of course, > make sure to take a loo

[sane-devel] [RFC] Locking devices via sanei_access lib...

2005-02-07 Thread Gerhard Jaeger
On Monday 07 February 2005 16:50, Oliver Rauch wrote: > Am Mon, 2005-02-07 um 14.10 schrieb Gerhard Jaeger: > > Hi, > > > > On Monday 07 February 2005 12:41, Johannes Meixner wrote: > > > Hello, > > > > > > On Feb 7 12:11 Gerhard Jaeger wrote (shortened): > > > > The idea is to provide a simple loc

[sane-devel] [RFC] Locking devices via sanei_access lib...

2005-02-07 Thread Oliver Rauch
Am Mon, 2005-02-07 um 14.10 schrieb Gerhard Jaeger: > Hi, > > On Monday 07 February 2005 12:41, Johannes Meixner wrote: > > > > Hello, > > > > On Feb 7 12:11 Gerhard Jaeger wrote (shortened): > > > The idea is to provide a simple locking mechanism for the backends, > > > to have exclusive access

[sane-devel] [RFC] Locking devices via sanei_access lib...

2005-02-07 Thread Gerhard Jaeger
Hi, On Monday 07 February 2005 12:41, Johannes Meixner wrote: > > Hello, > > On Feb 7 12:11 Gerhard Jaeger wrote (shortened): > > The idea is to provide a simple locking mechanism for the backends, > > to have exclusive access to one scanner during an operation: > ... > > What do you guys think

[sane-devel] [RFC] Locking devices via sanei_access lib...

2005-02-07 Thread Johannes Meixner
Hello, On Feb 7 12:11 Gerhard Jaeger wrote (shortened): > The idea is to provide a simple locking mechanism for the backends, > to have exclusive access to one scanner during an operation: ... > What do you guys think of this lib - is it useful? I even think exclusive access should be used by d

[sane-devel] [RFC] Locking devices via sanei_access lib...

2005-02-07 Thread Gerhard Jaeger
Hi list, while trying to add button-support to the Plustek Backend and playing around with Rene Rebes' scanbuttond, I noticed, that it'll be a good idea to have exclusive access to the scanner, while i.e. checking the buttons or scanning. As this could not be done by simply opening the device, I d

[sane-devel] [RFC] Locking devices via sanei_access lib...

2005-02-07 Thread m. allan noah
concerned about the security of well-known file names being used. i dont know all the implications and i did not read your code, but various symlink attacks might be possible. other apps deal with this of course, make sure to take a look at how they do it. also, is it possible to use flock() on