Skip to content

All fields in ucred struct are private #493

Open
@Roguelazer

Description

@Roguelazer

I'm using PeerCredentials functionality to extract the remote end of a unix domain socket, but all of the fields in the resulting ucred struct are private. I can work around this by doing an unsafe reinterepret cast (err, transmute) to a #struct of my own definition with the same fields and layout, but would it be reasonable to just redefine struct ucred to have public fields?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions