Skip to content
This repository was archived by the owner on Aug 14, 2020. It is now read-only.
This repository was archived by the owner on Aug 14, 2020. It is now read-only.

UID/GID lookup is either incompatible or a trap, your choice #340

@thockin

Description

@thockin

"The user and group values will first be resolved using the image's own /etc/passwd or /etc/group"

I know that this springs from my own suggestsion, but the more I chew on it the less i like it. nsswitch can be arbitrarily complex. What if it is configured for something more complex than passwd - e.g. LDAP or NIS+? Are we planning to process nsswitch and execute it before launching processes? That seems like an attack vector. But if we don't, we're not really compatible.

It may be acceptable to say simply that we support simple passwd and group files and nothing else, but that is not documented well. Even still, I can craft very large files or malformed files in my image that will cause trouble (crash, DoS, etc) for the ACE. A lesson from Borg is that the user's stuff is the user's and we never process it except for transportation. Parsing passwd crosses a line we would be loathe to cross..

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