Show
Ignore:
Timestamp:
01/08/08 00:03:01 (16 years ago)
Author:
jerome
Message:

Doesn't drop and regain priviledges anymore : no added security since we could regain them (we needed to regain them for PAM and some end user scripts). This is also more consistent.
Removed SGTERM handling stuff in cupspykota : now only SIGINT can be used.
Now outputs an error message when printing (but doesn't fail) if CUPS is
not v1.3.4 or higher : we need 1.3.4 or higher because it fixes some
problematic charset handling bugs (by only accepting ascii and utf-8,
but this is a different story...)
Now ensures only the supported exit codes are returned by cupspykota :
we used to exit -1 in some cases (see man backend for details).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pknotify

    r3275 r3276  
    180180            retcode = False 
    181181            self.password = password 
    182             self.regainPriv() 
    183182            auth = PAM.pam() 
    184183            auth.start("passwd") 
     
    195194                self.logdebug(_("Password correct for user %s") % username) 
    196195                retcode = True 
    197             self.dropPriv()     
    198196            return retcode 
    199197