File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -58,4 +58,13 @@ RUN apt-get update && apt-get install -y \
5858 git texinfo pax-utils && \
5959 rm -rf /var/lib/apt/lists/*
6060
61+ # https://github.com/AppImageCommunity/pkg2appimage/issues/83
62+ # but single is_selinux_enabled function is not enough
63+ RUN wget -O libselinux-dummy.tar.gz https://github.com/blahgeek/libselinux-dummy/archive/refs/tags/20220102.tar.gz && \
64+ tar xf libselinux-dummy.tar.gz && \
65+ cd libselinux-dummy-20220102 && \
66+ make && make install && \
67+ ln -sf /lib/libselinux.so.1 /lib/$(uname -m)-linux-gnu/libselinux.so.1 && \
68+ cd .. && rm -rf libselinux-dummy-20220102 libselinux-dummy.tar.gz
69+
6170ADD scripts /work/scripts
Original file line number Diff line number Diff line change 6767
6868cp $SCRIPT_DIR /AppRun $DIST_APPDIR /AppRun
6969python3 $SCRIPT_DIR /postprocess.py $DIST_APPDIR
70-
71- # https://github.com/AppImageCommunity/pkg2appimage/issues/83
72- echo " extern int is_selinux_enabled(void){return 0;}" > /tmp/selinux-mock.c
73- gcc-8 -s -shared -o /tmp/libselinux.so.1 -Wl,-soname,libselinux.so.1 /tmp/selinux-mock.c
74- mv /tmp/libselinux.so.1 ${DIST_APPDIR} /lib/
You can’t perform that action at this time.
0 commit comments