--- id: pyseccomp version: "0.1.2" license: MIT license_treatment: permissive maintenance: abandoned --- # pyseccomp — An interface to libseccomp using ctypes. API compatible with libseccomp's Python bindings. License: permissive · Maintenance: abandoned · Downloads: 1.9M/mo ## What it is and what it does pyseccomp is a pure-Python ctypes wrapper around libseccomp, the Linux system call filtering library. It allows you to programmatically define seccomp policies—rules that restrict which system calls a process may invoke. The package is designed as an alternative when native bindings are unavailable, and is API compatible with libseccomp's own Python bindings. The package has been abandoned since early 2021 and receives no maintenance. It targets Python 3.6, 3.7, and 3.8, and depends only on the system libseccomp library, making installation frictionless. However, its age means compatibility with modern Python versions and current libseccomp APIs is unverified. Use it for: - Sandboxing untrusted code by restricting system calls available to a subprocess. - Building container or isolation tools that need seccomp policy configuration. - Providing an alternative seccomp interface when other options are unavailable. - Testing or prototyping seccomp policies in pure-Python environments. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. pyseccomp provides a pure-Python interface to libseccomp via ctypes, allowing you to define and enforce system call filtering policies. No, unless you have a specific reason to need this package. The package is abandoned, untested on modern Python versions, and offers no advantage over maintained alternatives. Use it only as a last-resort fallback when other options cannot be installed. ## Install pip install pyseccomp uv add pyseccomp poetry add pyseccomp ## Installing pyseccomp Before you install: Low install friction—pure Python, no compiled dependencies. However, the package is abandoned; the last commit was 2021-06-12 and no releases since 2021-01-02. License in practice: MIT license is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions. Quickstart: pip install pyseccomp import pyseccomp Requires libseccomp library to be installed on the system; pyseccomp is a ctypes wrapper and does not bundle it. Verify before relying: - Whether pyseccomp remains compatible with current libseccomp library versions and modern Linux kernels. - Whether the ctypes-based implementation has performance or correctness gaps compared to alternatives. - Whether Python 3.9+ is supported despite classifiers only listing 3.6–3.8. - Whether libseccomp must be pre-installed on the system for pyseccomp to function. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: abandoned - Downloads: 1.9M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags seccomp system call filtering, libseccomp python interface, sandboxing and process isolation, restrict system calls, ctypes seccomp wrapper, sandboxing, system-calls, abandoned [View on SkillFed](https://skillfed.io/packages/pyseccomp) · [View on PyPI](https://pypi.org/project/pyseccomp/)