Package cherrypy :: Package process :: Module plugins :: Class DropPrivileges
[hide private]
[frames] | no frames]

Class DropPrivileges

source code

  object --+    
           |    
SimplePlugin --+
               |
              DropPrivileges

Drop privileges. uid/gid arguments not available on Windows.

Special thanks to Gavin Baker: http://antonym.org/node/100.

Instance Methods [hide private]
 
__init__(self, bus, umask=None, uid=None, gid=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_get_uid(self) source code
 
_set_uid(self, val) source code
 
_get_gid(self) source code
 
_set_gid(self, val) source code
 
_get_umask(self) source code
 
_set_umask(self, val) source code
 
start(self) source code

Inherited from SimplePlugin: subscribe, unsubscribe

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  uid
The uid under which to run.
  gid
The gid under which to run.
  umask
The umask under which to run.

Inherited from object: __class__

Method Details [hide private]

__init__(self, bus, umask=None, uid=None, gid=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Property Details [hide private]

uid

The uid under which to run.

Get Method:
_get_uid(self)
Set Method:
_set_uid(self, val)

gid

The gid under which to run.

Get Method:
_get_gid(self)
Set Method:
_set_gid(self, val)

umask

The umask under which to run.

Get Method:
_get_umask(self)
Set Method:
_set_umask(self, val)