Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7527037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:00:18+00:00 2026-05-30T04:00:18+00:00

I am Linux PaX user and therefore to debug any binary I need to

  • 0

I am Linux PaX user and therefore to debug any binary I need to disable protection flags (per binary) using paxctl command.
PaX gives user protection against buffer overflow attacks and such by randomization, but it also prohibits meaningfull debugging.
I could do this manually, however I’d have to repeat it after every rebuild.
I was thinking about these 4 options:

  1. Disabling PaX temporarily using /proc/sys/kernel/pax/softmode
  2. Having Eclipse run some kind of batch file after build (or modifying default makefile)
  3. Removing a bit of PaX from kernel to preserve adress space (as Gentoo docs suggests)
  4. Making Eclipse CDT debugger (gdb) use hardware breakpoints (hbreak) instead of normal ones (break)

2) seems a way to go here (w/o sacrificing security or performance).

Is there any way to execute scripts/batch_files after (re)build?

And there is another problem, even if I somehow manage to run script that does disable protections, how do I make it secure so it could not be used by someone else?
I was thinking about having ide run under “eclipse” user which would be in appropriate group to execute paxctl or something like that.

Thank you in advance for any tips.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:00:19+00:00Added an answer on May 30, 2026 at 4:00 am

    Have you considered disabling PaX for you executable/library only ? You could do so by adding in Project Properties > Build > Settings > Build Steps > Post-build Steps :

    /sbin/paxctl -pemrxs <your_artifact_name>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On Linux, I'm using supbprocess.Popen to run an app. The command line of that
linux gcc 4.4.1 C99 I am just wondering is there any advantage using the
On linux, it's possible to create a tun interface using a tun driver which
Under Linux, my C++ application is using fork() and execv() to launch multiple instances
Does Linux/Unix/Posix provide an API to user-space applications to access a monotonically increasing clock,
Linux Server Box running WebSphere MQ Server v7.1: I have created a user 'mq-user'
Linux-based (Ubuntu 11.10) Before my computer crashed I had a binary on my computer:
I am looking at various buffer/heap/stack protection technologies such as PAX, DEP, NX, CANARIES,
linux: $HOME/.config windows: %APPDATA% mac os: $HOME/.config It can be set using http://qt-project.org/doc/qt-4.8/qsettings.html#setPath ,
in linux to copy and paste a file we have cp command cp [OPTION]...

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.