mirror of
https://github.com/rancher/os.git
synced 2025-07-31 22:47:16 +00:00
Support SELinux on arm/arm64
This commit is contained in:
parent
aae4d086c9
commit
a8dfd7089e
@ -40,7 +40,7 @@ RUN if [ "${TOOLCHAIN}" != "" ] && ! which ${TOOLCHAIN}-gcc; then \
|
||||
|
||||
RUN if [ "${TOOLCHAIN}" != "" ]; then \
|
||||
cd /usr/local/src && \
|
||||
for i in libselinux pcre3 util-linux; do \
|
||||
for i in libselinux libsepol pcre3 util-linux; do \
|
||||
apt-get build-dep -y $i && \
|
||||
apt-get source -y $i \
|
||||
;done \
|
||||
@ -57,6 +57,9 @@ RUN if [ "${TOOLCHAIN}" != "" ]; then \
|
||||
RUN if [ "${TOOLCHAIN}" != "" ]; then \
|
||||
cd /usr/local/src/libselinux-* && \
|
||||
CC=${TOOLCHAIN}-gcc CXX=${TOOLCHAIN}-g++ make CFLAGS=-Wall && \
|
||||
make PREFIX=/usr/${TOOLCHAIN} DESTDIR=/usr/${TOOLCHAIN} install && \
|
||||
cd /usr/local/src/libsepol-* && \
|
||||
CC=${TOOLCHAIN}-gcc CXX=${TOOLCHAIN}-g++ make CFLAGS=-Wall && \
|
||||
make PREFIX=/usr/${TOOLCHAIN} DESTDIR=/usr/${TOOLCHAIN} install \
|
||||
;fi
|
||||
|
||||
|
@ -2,4 +2,4 @@ DAPPER_BASE=armhf/ubuntu:16.04
|
||||
TOOLCHAIN=arm-linux-gnueabihf
|
||||
|
||||
COMPILED_KERNEL_URL= #empty
|
||||
DOCKER_BINARY_URL=https://github.com/rancher/docker/releases/download/v1.10.3-arm/docker-1.10.3_arm
|
||||
DOCKER_BINARY_URL=https://github.com/rancher/docker/releases/download/v1.10.3-ros1/docker-1.10.3_arm
|
||||
|
@ -1,5 +1,5 @@
|
||||
DAPPER_BASE=aarch64/ubuntu:16.04
|
||||
TOOLCHAIN=aarch64-linux-gnu
|
||||
|
||||
COMPILED_KERNEL_URL=https://github.com/imikushin/os-kernel/releases/download/Estuary-4.1.18-arm64/linux-4.1.18-arm64.tar.gz
|
||||
DOCKER_BINARY_URL=https://github.com/rancher/docker/releases/download/v1.10.3-arm/docker-1.10.3_arm64
|
||||
COMPILED_KERNEL_URL=https://github.com/imikushin/os-kernel/releases/download/Estuary-4.1.18-arm64-3/linux-4.1.18-arm64.tar.gz
|
||||
DOCKER_BINARY_URL=https://github.com/rancher/docker/releases/download/v1.10.3-ros1/docker-1.10.3_arm64
|
||||
|
@ -1,6 +0,0 @@
|
||||
package selinux
|
||||
|
||||
// InitializeSelinux is a stub for SELinux support on ARM
|
||||
func InitializeSelinux() (int, error) {
|
||||
return 0, nil
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
package selinux
|
||||
|
||||
// InitializeSelinux is a stub for SELinux support on ARM64
|
||||
func InitializeSelinux() (int, error) {
|
||||
return 0, nil
|
||||
}
|
Loading…
Reference in New Issue
Block a user