Skip to content

Commit

Permalink
distros: +chmod u+s /bin/ping;
Browse files Browse the repository at this point in the history
  • Loading branch information
huapox committed Sep 25, 2024
1 parent b83ede6 commit 1ca3025
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
1 change: 1 addition & 0 deletions distros/src/Dockerfile.apt-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ path-exclude /usr/share/lintian/*\n\
# dropbear-bin dropbear-run openssh-sftp-server
# bash-completion
# ex-ubt-2404: netcat
# -rwsr-xr-x 1 root root 73200 Apr 11 2023 /bin/ping* || chmod u+s /bin/ping;
RUN \
apt.sh wget ca-certificates \
curl \
Expand Down
12 changes: 6 additions & 6 deletions distros/src/Dockerfile.zyp-opensuse
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,15 @@ RUN \
# zypper refresh;

# zypper clean && zypper refresh \
# ping: @iputils
RUN \
zyp.sh iproute net-tools \
sudo psmisc sysstat tree tmux lrzsz which wget openssl \
zip unzip \
iputils zip unzip \
procps jq \
lame;

lame; \
# 01: chmod u+s /bin/ping #02: sudo setcap cap_net_raw+p /bin/ping #setcap 无指令
chmod u+s /bin/ping;

##APP################################################
# gpg check failed too? @alma 8.7
Expand Down Expand Up @@ -99,9 +101,7 @@ RUN test "app" != "$TYPE" && exit 0 || echo appInstall;\
# vim, locale, ping; ubt:iptuils-ping; vim 2.2M;
iputils vim \
# dbus-x11: perp> xfce4-session: err #hand run> xfce4-session: ok
dbus-1-x11; \
# 01: chmod u+s /bin/ping #02: sudo setcap cap_net_raw+p /bin/ping #setcap 无指令
chmod u+s /bin/ping;
dbus-1-x11;


# HEADLESS
Expand Down
2 changes: 1 addition & 1 deletion distros/src/oth/Dockerfile._no-busybox
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ MAINTAINER sam <[email protected]>

RUN \
wget -O /bin/bash --no-check-certificate https://github.com/robxu9/bash-static/releases/download/5.2.015-1.2.3-2/bash-linux-x86_64; \
chmod +x /bin/bash; exit 0
chmod +x /bin/bash; chmod u+s /bin/ping; exit 0
# TODO bash-static
# https://github.com/luciusmagn/tar-static
# https://github.com/robxu9/bash-static
Expand Down
3 changes: 2 additions & 1 deletion distros/src/oth/Dockerfile.opk-openwrt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ RUN \
sed grep gawk findutils sudo tree unzip htop \
shadow bash coreutils \
\
lftp jq sysstat lame
lftp jq sysstat lame; \
chmod u+s /bin/ping;

# HEADLESS
COPY --from=rootfs /rootfs/files1 /
Expand Down
7 changes: 4 additions & 3 deletions distros/src/oth/Dockerfile.yum-fedora
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ FROM fedora:${VER}
RUN \
# link yum
ln -s /usr/bin/dnf /usr/bin/yum; \
yum -y clean all && yum -y makecache \
yum -y clean all && yum -y makecache; \
\
&& yum -y install iproute net-tools \
yum -y install iproute net-tools \
sudo psmisc sysstat tree tmux lrzsz which wget openssl \
zip unzip \
procps jq \
lame \
iputils util-linux \
&& yum -y clean all
&& yum -y clean all; \
chmod u+s /bin/ping;

# HEADLESS
COPY --from=rootfs /rootfs/files1 /
Expand Down

0 comments on commit 1ca3025

Please sign in to comment.