1
0
mirror of https://github.com/rancher/os.git synced 2025-08-08 02:04:13 +00:00

Support SELinux on arm/arm64

This commit is contained in:
Ivan Mikushin 2016-03-16 10:52:05 -07:00
parent aae4d086c9
commit a8dfd7089e
6 changed files with 7 additions and 16 deletions

View File

@ -40,7 +40,7 @@ RUN if [ "${TOOLCHAIN}" != "" ] && ! which ${TOOLCHAIN}-gcc; then \
RUN if [ "${TOOLCHAIN}" != "" ]; then \ RUN if [ "${TOOLCHAIN}" != "" ]; then \
cd /usr/local/src && \ 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 build-dep -y $i && \
apt-get source -y $i \ apt-get source -y $i \
;done \ ;done \
@ -57,6 +57,9 @@ RUN if [ "${TOOLCHAIN}" != "" ]; then \
RUN if [ "${TOOLCHAIN}" != "" ]; then \ RUN if [ "${TOOLCHAIN}" != "" ]; then \
cd /usr/local/src/libselinux-* && \ cd /usr/local/src/libselinux-* && \
CC=${TOOLCHAIN}-gcc CXX=${TOOLCHAIN}-g++ make CFLAGS=-Wall && \ 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 \ make PREFIX=/usr/${TOOLCHAIN} DESTDIR=/usr/${TOOLCHAIN} install \
;fi ;fi

View File

@ -2,4 +2,4 @@ DAPPER_BASE=armhf/ubuntu:16.04
TOOLCHAIN=arm-linux-gnueabihf TOOLCHAIN=arm-linux-gnueabihf
COMPILED_KERNEL_URL= #empty 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

View File

@ -1,5 +1,5 @@
DAPPER_BASE=aarch64/ubuntu:16.04 DAPPER_BASE=aarch64/ubuntu:16.04
TOOLCHAIN=aarch64-linux-gnu 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 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-arm/docker-1.10.3_arm64 DOCKER_BINARY_URL=https://github.com/rancher/docker/releases/download/v1.10.3-ros1/docker-1.10.3_arm64

View File

@ -1,6 +0,0 @@
package selinux
// InitializeSelinux is a stub for SELinux support on ARM
func InitializeSelinux() (int, error) {
return 0, nil
}

View File

@ -1,6 +0,0 @@
package selinux
// InitializeSelinux is a stub for SELinux support on ARM64
func InitializeSelinux() (int, error) {
return 0, nil
}