Skip to content

Commit

Permalink
Show current map permissions with "om" ##shell
Browse files Browse the repository at this point in the history
  • Loading branch information
radare authored and trufae committed Jan 17, 2025
1 parent 6b74c6f commit 90bb88a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libr/core/cmd_open.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,15 @@ static void cmd_open_map(RCore *core, const char *input) {
R_LOG_ERROR ("Cannot find any map with mapid %d", id);
}
break;
case 0:
{
RIOMap *map = r_io_map_get_at (core->io, core->offset);
if (map) {
const char *sperm = r_str_rwx_i (map->perm);
r_cons_println (sperm);
}
}
break;
default:
r_core_return_invalid_command (core, "omp", input[2]);
break;
Expand Down

0 comments on commit 90bb88a

Please sign in to comment.