|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 25.65 GB of 70.42 GB (36.42%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
share/
pyshared/
landscape/
- drwxr-xr-x
|
Viewing file: __init__.py (1.97 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
import sys
DEBIAN_REVISION = "-0ubuntu1.11.10.0" UPSTREAM_VERSION = "11.07.1.1" VERSION = "%s%s" % (UPSTREAM_VERSION, DEBIAN_REVISION)
# The "server-api" field of outgoing messages will be set to this value, and # used by the server message system to lookup the correct MessageAPI adapter # for handling the messages sent by the client. Bump it when the schema of any # of the messages sent by the client changes in a backward-incompatible way. # # Changelog: # # 3.2: # * Add new "eucalyptus-info" and "eucalyptus-info-error" messages. # SERVER_API = "3.2"
# XXX This is needed for backward compatibility in the server code importing # the API variable. We should eventually replace it in the server code. API = SERVER_API
# The "client-api" field of outgoing messages will be set to this value, and # used by the server to know which schema do the message types accepted by the # client support. Bump it when the schema of an accepted message type changes # and update the changelog below as needed. # # Changelog: # # 3.3: # * Add "binaries" field to "change-packages" # * Add "policy" field to "change-packages" # * Add new "change-package-locks" client accepted message type. # CLIENT_API = "3.3"
from twisted.python import util
def initgroups(uid, gid): """Initializes the group access list.
It replaces the default implementation of Twisted which iterates other all groups, using the system call C{initgroups} instead. This wrapper just translates the numeric C{uid} to a user name understood by C{initgroups}. """ import pwd from landscape.lib.initgroups import initgroups as cinitgroups return cinitgroups(pwd.getpwuid(uid).pw_name, gid)
if "twisted.python._initgroups" not in sys.modules: # Patch twisted initgroups implementation, which can result in very long # calls to grp.getrlall(). See http://twistedmatrix.com/trac/ticket/3226 # We can remove that bit when Lucid is our oldest supported version # (May 2013). util.initgroups = initgroups
|