这是indexloc提供的服务,不要输入任何密码
Skip to content

python3 image seems to work with ctypes, docs say otherwise #1854

@MShekow

Description

@MShekow

Describe the bug
The docs claim that ctypes is not supported.

To Reproduce
Using ctypes works just fine.

Following some commands from the official docs:

Start a container: docker run --rm -it gcr.io/distroless/python3 then type this in:

from ctypes import *
libc = CDLL("libc.so.6")
print(libc.rand())

Expected behavior

ctypes calls should not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions