Skip to content

use Giuseppe's forked newuidmap/newgidmap#171

Merged
jessfraz merged 2 commits into
genuinetools:masterfrom
AkihiroSuda:no-sys-admin
Oct 9, 2018
Merged

use Giuseppe's forked newuidmap/newgidmap#171
jessfraz merged 2 commits into
genuinetools:masterfrom
AkihiroSuda:no-sys-admin

Conversation

@AkihiroSuda
Copy link
Copy Markdown
Collaborator

Applies shadow-maint/shadow#132 so that we
don't need to have CAP_SYS_ADMIN.

See also #170 .

Signed-off-by: Akihiro Suda suda.akihiro@lab.ntt.co.jp

Applies shadow-maint/shadow#132 so that we
don't need to have CAP_SYS_ADMIN.

See also genuinetools#170 .

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Comment thread Dockerfile Outdated
RUN apk add --no-cache autoconf automake build-base byacc gettext gettext-dev gcc git libcap-dev libtool libxslt
RUN git clone https://github.com/giuseppe/shadow.git \
&& cd shadow \
&& git checkout 336cead97d87be6c4828521f50a992e76a17e442 \
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@giuseppe could you pin this commit on your repo? 🙏

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
@jessfraz jessfraz merged commit f705a5f into genuinetools:master Oct 9, 2018
@jessfraz
Copy link
Copy Markdown
Collaborator

jessfraz commented Oct 9, 2018

Thanks so much! I should just remove codacity

Comment thread Dockerfile
# As of v3.8.1, Alpine does not set SUID bit on the busybox version of /bin/su.
# However, future version may set SUID bit on /bin/su.
# We lock the root account so as to disable su completely.
RUN passwd -l root
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol the unlocked root turned out to be an actually CVE: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-5021

img is not affected since this passwd -l commit.

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