RE: [Kde-kiosk] restrictions in kjobviewer [auf Viren überprüft]

Goffioul Michael goffioul at imec.be
Fri Jan 21 17:11:52 CET 2005


> On Friday 14 January 2005 18:21, Reinhard Hennig wrote:
> > Hi everyone !
> >
> > I couldn´t find a method to prevent users from viewing 
> names of other
> > users printed dokuments by opening the filter menu in kjobviewer
> > and choosing "all printers". We cannot allow this because 
> of a possible
> > violation of the users privacy. The item "select 
> printer->all printers"
> > should be
> > removed. Under all circumstances should the view restricted 
> to the users
> > printer queue.
> > Does anyone have an idea ?
> 
> Do I understand it correctly that what you basically want is 
> that users can 
> only view their own print-jobs, not those of others?

Using CUPS, this could be achieve by adding the "requesting-user-name"
attribute to the IPP request used to list print jobs (see file
kdelibs/kdeprint/kmcupsjobmanager.cpp: listJobs()). The attribute
value could be set to CupsInfos::self()->realLogin(). This would
look like (untested):

req.addName(IPP_TAG_OPERATION, "requesting-user-name", infos->realLogin());

Michael.


More information about the kde-kiosk mailing list