Metadata-Version: 1.2
Name: pypledge
Version: 0.3.1
Summary: Binding for the OpenBSD pledge(2) system call
Home-page: https://gitlab.com/i80and/pypledge
Maintainer: Andrew Aldridge
Maintainer-email: i80and@foxquill.com
License: MIT
Description: ========
        PyPledge
        ========
        
        .. code-block:: python
        
           def pledge(promises: Optional[Iterable[str]] = None,
                      execpromises: Optional[Iterable[str]] = None) -> None: ...
        
        Throws ``OSError`` if the platform does not support ``pledge(2)`` or
        if the pledge fails.
        
        Example
        -------
        
        The following will restrict the current process to only the ``stdio`` and ``tty`` promises, and then attempt to violate that restriction:
        
        .. code-block:: python
        
          import pypledge
          pypledge.pledge(['stdio', 'tty'])
          f = open('foo.txt')
        
        On OpenBSD 5.9, this will terminate with SIGABRT because the ``rpath``
        promise was required.
        
        On other platforms, this will throw OSError.
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: BSD :: OpenBSD
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Libraries :: Python Modules
