mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
e0852bec96
This policy is from commit
583a67ffdf
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
27 lines
654 B
Makefile
27 lines
654 B
Makefile
TARGETS?=docker
|
|
MODULES?=${TARGETS:=.pp.bz2}
|
|
SHAREDIR?=/usr/share
|
|
|
|
all: ${TARGETS:=.pp.bz2}
|
|
|
|
%.pp.bz2: %.pp
|
|
@echo Compressing $^ -\> $@
|
|
bzip2 -9 $^
|
|
|
|
%.pp: %.te
|
|
make -f ${SHAREDIR}/selinux/devel/Makefile $@
|
|
|
|
clean:
|
|
rm -f *~ *.tc *.pp *.pp.bz2
|
|
rm -rf tmp *.tar.gz
|
|
|
|
man: install-policy
|
|
sepolicy manpage --path . --domain ${TARGETS}_t
|
|
|
|
install-policy: all
|
|
semodule -i ${TARGETS}.pp.bz2
|
|
|
|
install: man
|
|
install -D -m 644 ${TARGETS}.pp.bz2 ${DESTDIR}${SHAREDIR}/selinux/packages/docker.pp.bz2
|
|
install -D -m 644 docker.if ${DESTDIR}${SHAREDIR}/selinux/devel/include/services/docker.if
|
|
install -D -m 644 docker_selinux.8 ${DESTDIR}${SHAREDIR}/man/man8/
|