-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Build with noexecstack (SELinux) #2049
Comments
You can |
Ah, I'll try that. Is this documented somewhere? I've tried setting the
CFLAGS and LDFLAGS environment variables.
…On Sun, May 19, 2019, 17:39 Jordan Harband ***@***.***> wrote:
You can nvm install 8 -Wl -z -noexecstack yourself, and those arguments
will be passed to node's install process - are you suggesting that nvm
should be able to detect the need for these flags automatically?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2049?email_source=notifications&email_token=AADVYP2X62WGTOGDHUFO3VTPWFYCBA5CNFSM4HN4WUY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVXEWJI#issuecomment-493767461>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADVYPZE3ER75QFNCIDYU3DPWFYCBANCNFSM4HN4WUYQ>
.
|
No, it doesn’t seem to be, oddly enough :-) Let me know if that works for you or not. |
It seems like the default build options for Node.js include noexecstack but the binaries come without it for some reason. Trying to compile it with
|
The implication is that that would be failing even if you'd downloaded node from the website directly, and compiled it yourself (since that's all nvm is doing). You may want to file an issue with node itself. Have you tried node 4, 6, 10, or 12? |
Yeah, it seems like a Node issue actually. I'm getting different errors
(caused by SELinux) when building version 12. For now I just set up a
SELinux allow rule, I guess I'll close this issue since it's not
nvm-specific.
…On Mon, May 20, 2019, 21:54 Jordan Harband ***@***.***> wrote:
The implication is that that would be failing even if you'd downloaded
node from the website directly, and compiled it yourself (since that's all
nvm is doing).
You may want to file an issue with node itself. Have you tried node 4, 6,
10, or 12?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2049?email_source=notifications&email_token=AADVYP5QDXXED3SXAMBBURLPWL6YRA5CNFSM4HN4WUY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVZ4TQQ#issuecomment-494127554>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADVYP2QW2FYOCJEWTKXJG3PWL6YRANCNFSM4HN4WUYQ>
.
|
If it turns out there's anything nvm can do to automatically handle this issue, I'm more than happy to reopen it and do that. |
Operating system and version: Debian GNU/Linux 9.9 (stretch)
nvm debug
output:nvm --version: v0.34.0
$SHELL: /bin/zsh
$SHLVL: 2
$HOME: /home/nyuszika7h
$NVM_DIR: '$HOME/.nvm'
$PATH: $HOME/.pyenv/plugins/pyenv-virtualenv/shims:$HOME/.pyenv/shims:$HOME/.pyenv/bin:$HOME/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:$HOME/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/usr/local/bin:/usr/bin:/bin:/usr/games
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.3.1 (x86_64-debian-linux-gnu)'
uname -a: 'Linux 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13) x86_64 GNU/Linux'
OS version: Debian GNU/Linux 9
curl: /usr/bin/curl, curl 7.52.1 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2r zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
wget: /usr/bin/wget, GNU Wget 1.18 built on linux-gnu.
git: /usr/bin/git, git version 2.11.0
grep: grep: aliased to grep --color (grep --color), grep (GNU grep) 2.27
awk: /usr/bin/awk, GNU Awk 4.1.4, API: 1.1 (GNU MPFR 3.1.5, GNU MP 6.1.2)
sed: /bin/sed, sed (GNU sed) 4.4
cut: /usr/bin/cut, cut (GNU coreutils) 8.26
basename: /usr/bin/basename, basename (GNU coreutils) 8.26
rm: /bin/rm, rm (GNU coreutils) 8.26
mkdir: /bin/mkdir, mkdir (GNU coreutils) 8.26
xargs: /usr/bin/xargs, xargs (GNU findutils) 4.7.0-git
nvm current: none
which node: node not found
which iojs: iojs not found
which npm: npm not found
npm config get prefix: nvm:169: command not found: npm
npm root -g: nvm:169: command not found: npm
How did you install
nvm
? (e.g. install script in readme, Homebrew): Install scriptWhat steps did you perform?
nvm install 8
What happened?
What did you expect to happen?
Node.js should be built using
-Wl,-z,noexecstack
so that it can work in SELinux enforcing mode.Is there anything in any of your profile files (
.bashrc
,.bash_profile
,.zshrc
, etc) that modifies thePATH
?Only adding pyenv and
$HOME/.local
but this is not relevant to this issue.The text was updated successfully, but these errors were encountered: