Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation fails on GRSecurity/PaX kernel #1708

Closed
ghost opened this issue Jan 30, 2012 · 3 comments
Closed

Compilation fails on GRSecurity/PaX kernel #1708

ghost opened this issue Jan 30, 2012 · 3 comments
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. O-linux Operating system: Linux

Comments

@ghost
Copy link

ghost commented Jan 30, 2012

Compilation seems to fail on a Linux kernel with GRSecurity/PaX patches, because the stage0 binary hasn't been marked with PaX flags, and for some reason that causes the whole process to hang, probably due PaX blocking it in some way.

I used paxctl -C to convert the binary to have PaX markings, and used paxctl -m to disable MEMEXEC protection on the rustc binary. However, this caused the stage1 binary to fail, for the same reason.

Used specifications:
Linux 2.6.39.2-grsec
gcc (Debian 4.6.2-11) 4.6.2
git commit 98c3396

@graydon
Copy link
Contributor

graydon commented Feb 15, 2012

If we sniff "being on a PaX system" during configure and mark the binaries when we build them, does that solve the problem?

@ghost
Copy link
Author

ghost commented Feb 18, 2012

Yes, that would probably fix it. The problems in that are however, 1) Detecting PaX, 2) Not all PaX systems have got paxctl installed, 3) You probably need root to do paxctl, which would mean you need root during the compiling.

@graydon
Copy link
Contributor

graydon commented Oct 4, 2012

This should be fixed now. Re-open if you find it still doesn't work.

@graydon graydon closed this as completed Oct 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. O-linux Operating system: Linux
Projects
None yet
Development

No branches or pull requests

1 participant