Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

purpose of paxctl? #5

Closed
defunctzombie opened this issue Jul 31, 2015 · 5 comments
Closed

purpose of paxctl? #5

defunctzombie opened this issue Jul 31, 2015 · 5 comments

Comments

@defunctzombie
Copy link

Wondering what the purpose of the paxctl -cm line is in the installation.

@defunctzombie defunctzombie changed the title purpose of paxctl purpose of paxctl? Jul 31, 2015
@flitbit
Copy link

flitbit commented Sep 8, 2015

Alpine applies grsecurity patches, these settings enable nodejs to execute arbitrary code which would otherwise not be allowed on the OS... kinda explained here: https://en.wikibooks.org/wiki/Grsecurity/Application-specific_Settings#Node.js

@mhart
Copy link
Owner

mhart commented Sep 8, 2015

Yeah, so the nodejs package on alpine used to just use paxctl -cm, see here: http://git.alpinelinux.org/cgit/aports/tree/main/nodejs/APKBUILD?id=75cc781209536288b4522d523e2575c184312869

They then switched to using paxmark in this commit: http://git.alpinelinux.org/cgit/aports/tree/main/nodejs/APKBUILD?id=47db907cdf7ac0669d2729f9aa146dcfdbf76a82

paxmark is a script that invokes paxctl, and I tried to find out from the committer of that, Timo Teräs, what the difference was, and why they switched to it, but never got a reply. The problem with that paxmark command is it increases the size of the binary quite substantially, so I just stuck with paxctl (and haven't had any issues with it thus far).

I'd love to hear some more official guidance on this, but it's been hard to come by information on it – thanks for that link @flitbit

I'm gonna close this issue, but feel free to keep discussing and I can reopen if there's an actual issue to be resolved.

@mhart mhart closed this as completed Sep 8, 2015
@defunctzombie
Copy link
Author

Thanks for the info!

@ghost
Copy link

ghost commented Aug 14, 2020

Has paxctl been removed?

@tallero
Copy link

tallero commented Aug 10, 2021

Catching a paxmark dependency while adding openjdk8 with pmbootstrap.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants