Skip to content

Commit

Permalink
Fix code swap region permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
amor-riscure committed Jan 21, 2025
1 parent 2a6d2ba commit f2c4ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux/frida-helper-backend.vala
Original file line number Diff line number Diff line change
Expand Up @@ -2286,7 +2286,7 @@ namespace Frida {
public async ProcessCodeSwapScope (SeizeSession session, uint8[] code, Cancellable? cancellable) throws Error, IOError {
this.session = session;

Gum.Linux.enumerate_ranges ((Posix.pid_t) session.pid, READ | EXECUTE, d => {
Gum.Linux.enumerate_ranges ((Posix.pid_t) session.pid, READ | WRITE | EXECUTE, d => {
if (d.range.size >= code.length) {
code_start = d.range.base_address + d.range.size - round_size_to_page_size (code.length);
code_end = code_start + code.length;
Expand Down

0 comments on commit f2c4ea0

Please sign in to comment.