Skip to content

FIX for file permissions - using too high causes that gem install set 777 on files installed in system#20

Merged
dspinhirne merged 1 commit into
dspinhirne:masterfrom
infakt-HNP:master
Oct 3, 2019
Merged

FIX for file permissions - using too high causes that gem install set 777 on files installed in system#20
dspinhirne merged 1 commit into
dspinhirne:masterfrom
infakt-HNP:master

Conversation

@infakt-HNP

@infakt-HNP infakt-HNP commented Sep 27, 2019

Copy link
Copy Markdown

that's insecure on production envs.

@infakt-HNP infakt-HNP changed the title correct chmods - using too high causes setting 777 during gem install correct chmods - using too high causes that gem install set 777 on files installed in system Sep 27, 2019
@infakt-HNP infakt-HNP mentioned this pull request Sep 27, 2019
@infakt-HNP infakt-HNP changed the title correct chmods - using too high causes that gem install set 777 on files installed in system FIX for file permissions - using too high causes that gem install set 777 on files installed in system Sep 27, 2019
@dspinhirne

Copy link
Copy Markdown
Owner

Could you please comment more on the change which was made as well as the outcome.

@infakt-HNP

Copy link
Copy Markdown
Author

@dspinhirne all files in your repo have chmod 755, is causes that bundle install set chmod 777 during deployments. That's a security issue, for example nginx user or apache can replace gem files on the server.
So, 644 is enough to make this gem usable.

@dspinhirne dspinhirne merged commit 3aac46c into dspinhirne:master Oct 3, 2019
@infakt-HNP

Copy link
Copy Markdown
Author

@dspinhirne I see that a version is 2.0.4, but in ruby gems that's 2.0.3 https://rubygems.org/gems/netaddr/versions/
Could you build new gemfile and add file to rubygems.org or allow me, hubert.nodzak-pluta [at] infakt.pl via gem owner netaddr --add <my-email>

siyuee pushed a commit to siyuee/netaddr-rb that referenced this pull request Feb 13, 2020
As per dspinhirne#20, this change chmods all files in the directory to have 644 permissions instead of 755.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants