mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 13:12:26 +00:00
fix(discovery): report debugger start host restrictions (#7965)
This commit is contained in:
1 parent
70a8325c38
commit
3536ea2f49
7 files changed
+109
-2
No files matched your search
@@ -71,6 +71,7 @@ export const HOST_RESTRICTED_FEATURES = [
|
||||
"firmwareInspection",
|
||||
"firmwareExtraction",
|
||||
"javascriptRecovery",
|
||||
"persistentDebugger",
|
||||
] as const;
|
||||
export type HostRestrictedFeature = (typeof HOST_RESTRICTED_FEATURES)[number];
|
||||
|
||||
@@ -444,6 +445,13 @@ const workflowAvailabilityFor = ({
|
||||
kind,
|
||||
policy,
|
||||
}: AvailabilityContext): Availability | null => {
|
||||
if (name === "start_gdb_session" || name === "start_rizin_debug_session")
|
||||
return hostRestrictedAvailability(
|
||||
policy,
|
||||
"persistentDebugger",
|
||||
true,
|
||||
"Run persistent debugger sessions on Linux with /proc descriptor readback.",
|
||||
);
|
||||
if (
|
||||
name === "inspect_desktop_application" ||
|
||||
name === "inspect_go_binary" ||
|
||||
|
||||
Reference in new issue
Block a user