Skip to content

Commit

Permalink
fix(ext/node): handle --allow-sys=inspector (#26836)
Browse files Browse the repository at this point in the history
`op_inspector_open` checks for "inspector" as one of the allowed sys
value.
  • Loading branch information
littledivy authored Nov 12, 2024
1 parent 7d326c2 commit 7179bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/permissions/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ pub struct SysDescriptor(String);
impl SysDescriptor {
pub fn parse(kind: String) -> Result<Self, SysDescriptorParseError> {
match kind.as_str() {
"hostname" | "osRelease" | "osUptime" | "loadavg"
"hostname" | "inspector" | "osRelease" | "osUptime" | "loadavg"
| "networkInterfaces" | "systemMemoryInfo" | "uid" | "gid" | "cpus"
| "homedir" | "getegid" | "statfs" | "getPriority" | "setPriority"
| "userInfo" => Ok(Self(kind)),
Expand Down

0 comments on commit 7179bdc

Please sign in to comment.