Utilities

PyPosix

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

Other Methods

.WCOREDUMP()Neutral
#
Signature
WCOREDUMP(status)

Return True if the process returning status was dumped to a core file.

.WEXITSTATUS()Neutral
#
Signature
WEXITSTATUS(status)

Return the process return code from status.

.WIFCONTINUED()Neutral
#
Signature
WIFCONTINUED(status)

Return True if a particular process was continued from a job control stop.

.WIFEXITED()Neutral
#
Signature
WIFEXITED(status)

Return True if the process returning status exited via the exit() system call.

.WIFSIGNALED()Neutral
#
Signature
WIFSIGNALED(status)

Return True if the process returning status was terminated by a signal.

.WIFSTOPPED()Neutral
#
Signature
WIFSTOPPED(status)

Return True if the process returning status was stopped.

.WSTOPSIG()Neutral
#
Signature
WSTOPSIG(status)

Return the signal that stopped the process that provided the status value.

.WTERMSIG()Neutral
#
Signature
WTERMSIG(status)

Return the signal that terminated the process that provided the status value.

.abort()Neutral
#
Signature
abort()

Abort the interpreter immediately.

.access()Neutral
#
Signature
access(path, mode, dir_fd, effective_ids, follow_symlinks)

Use the real uid/gid to test for access to a path.

Fully-Qualified Names

FQNField
posixfqns[0]

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

Import

rule.py
import posix