Language Features

PyPlatform

Python stdlib module — platform. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.architecture()Neutral
#
Signature
architecture(executable, bits, linkage)

Queries the given executable (defaults to the Python interpreter

.freedesktop_os_release()Neutral
#
Signature
freedesktop_os_release()

Return operation system identification from freedesktop.org os-release

.java_ver()Neutral
#
Signature
java_ver(release, vendor, vminfo, osinfo)

Version interface for Jython.

.libc_ver()Neutral
#
Signature
libc_ver(executable, lib, version, chunksize)

Tries to determine the libc version that the file executable

.mac_ver()Neutral
#
Signature
mac_ver(release, versioninfo, machine)

Get macOS version information and return it as tuple (release,

.machine()Neutral
#
Signature
machine()

Returns the machine type, e.g. 'i386'

.node()Neutral
#
Signature
node()

Returns the computer's network name (which may not be fully

.platform()Neutral
#
Signature
platform(aliased, terse)

Returns a single string identifying the underlying platform

.processor()Neutral
#
Signature
processor()

Returns the (true) processor name, e.g. 'amdk6'

.python_branch()Neutral
#
Signature
python_branch()

Returns a string identifying the Python implementation

Fully-Qualified Names

FQNField
platformfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import platform