Skip to content

setcap on Node.js prevents processing of NODE_OPTIONS #37588

@connor4312

Description

@connor4312
  • Version: v15.11.0
  • Platform: Linux connor-Virtual-Machine 5.4.0-66-generic
  • Subsystem: unknown

What steps will reproduce the bug?

  1. sudo setcap cap_net_admin+iep $(which node)
  2. Attempt to use anything in the NODE_OPTIONS environment variable
  3. Nothing happens

How often does it reproduce? Is there a required condition?

100% of the time

What is the expected behavior?

I would expect NODE_OPTIONS to be processed regardless.

What do you see instead?

Additional information

Reported on microsoft/vscode-js-debug#852

Metadata

Metadata

Assignees

No one assigned

    Labels

    linuxIssues and PRs related to the Linux platform.securityIssues and PRs related to security.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions