github.com/Rookout/GoSDK@v0.1.48/pkg/services/safe_hook_installer/bytes_writer_darwin_arm64.go (about)

     1  //go:build darwin && arm64
     2  // +build darwin,arm64
     3  
     4  package safe_hook_installer
     5  
     6  import (
     7  	"github.com/Rookout/GoSDK/pkg/rookoutErrors"
     8  	"github.com/Rookout/GoSDK/pkg/services/protector"
     9  )
    10  
    11  
    12  func (h *HookWriter) AddWritePermission() rookoutErrors.RookoutError {
    13  	return nil
    14  }
    15  
    16  
    17  func (h *HookWriter) RestorePermissions() rookoutErrors.RookoutError {
    18  	return nil
    19  }
    20  
    21  func (h *HookWriter) write() int {
    22  	
    23  	return protector.Write(h.HookAddr, h.Hook, h.hookPageAlignedStart, h.hookPageAlignedEnd)
    24  }