process enabled community medium v1.0.0

flock

Manage file locks from shell scripts, can spawn a shell when used with privileges.

📋 Live Preview
flock {u}
📎 u
flock {u}

Sandbox: execFile · Timeout: 30s

Capabilities

security.privilege-escalation.shell

Parameters

Name Type Required Default Description Aliases
u string No - Unlock a file descriptor -u

Contract

Outputs

process.output

Shell output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory2 MB
Networklow
Disk I/Olow

Examples

Spawn interactive shell via flock unlock

flock -u / /bin/sh

Spawn privileged shell with SUID

flock -u / /bin/sh -p

Documentation

flock — File Lock Manager

flock manages file locks from shell scripts. The -u / flag unlocks the root filesystem and can spawn a shell, useful for privilege escalation when used with sudo or SUID.

References