Skip to content

Missing sys permission kinds for node ops #24241

Closed
@adamgreg

Description

Version: Deno 1.44.2

There seem to be some sys permission checks in the node compatibility layer for kinds that cannot be specified on the CLI with --allow-sys=xxx.

"statfs":

.check_sys("statfs", "node:fs.statfs")?;

"getPriority":
permissions.check_sys("getPriority", "node:os.getPriority()")?;

"setPriority":
permissions.check_sys("setPriority", "node:os.setPriority()")?;

"userInfo":
permissions.check_sys("userInfo", "node:os.userInfo()")?;

"geteuid":
permissions.check_sys("geteuid", "node:os.geteuid()")?;

As far as I can tell, the only way to get these permission checks to pass (without prompting the user) is by giving a blanket allow-sys flag.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctlygood first issueGood for newcomerspermissionsrelated to --allow-* flags

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions