Show
Ignore:
Timestamp:
01/06/05 23:52:53 (19 years ago)
Author:
jalet
Message:

Implemented the dropping of priviledges. Beware, beware...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r1974 r2006  
    2424# 
    2525# $Log$ 
     26# Revision 1.82  2005/01/06 22:52:53  jalet 
     27# Implemented the dropping of priviledges. Beware, beware... 
     28# 
    2629# Revision 1.81  2004/12/07 16:54:02  jalet 
    2730# Now logs as errors differences between computed and precomputed job's sizes 
     
    613616            # Here we absolutely WANT to remove any filename from the command line ! 
    614617            arguments = [ "Fake this because we are printing a banner" ] + sys.argv[1:6] 
     618             
     619        self.regainPriv()     
     620         
    615621        self.logdebug("Starting real backend %s with args %s" % (realbackend, " ".join(['"%s"' % a for a in ([os.environ["DEVICE_URI"]] + arguments[1:])]))) 
    616622        subprocess = PyKotaPopen4([realbackend] + arguments[1:], bufsize=0, arg0=os.environ["DEVICE_URI"]) 
     
    818824        else :     
    819825            retcode = self.removeJob() 
     826             
     827        self.dropPriv()     
     828         
    820829        return retcode     
    821830