Discussion:
lpd, etc race condition on lock file
Chris Bennett
2016-01-27 22:48:29 UTC
Permalink
Right now, lpr, lpc and lprm all have control of the spooling process,
with the current job in the lock file. But this file can of course
change while one of the other programs uses it to control the daemons
and jobs to be printed or stopped/deleted.

I'm far from an expert on this, but it seems to me that only one single
program should be able to do these actions, with these three programs
making a request to that program. Then these three programs could have
lesser privileges than right now.

Keeping them would be necessary to keep all the old scripts and uses
working.

Is this a good idea or is there a better solution?

Chris Bennett

Loading...