mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-23 22:42:06 +00:00
d6848ea77d
Email: dwalsh@redhat.com Subject: Updated sandbox patch. Date: Wed, 19 May 2010 15:59:28 -0400 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fixed patch that handles Spaces in homedir. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkv0QyAACgkQrlYvE4MpobNBXQCgmUu92HsN5PiksOTZoGxSp0W+ 1noAoKoCujFPLHduJ9BP3hrveeXvGKXO =iqC+ -----END PGP SIGNATURE----- Signed-off-by: Chad Sellers <csellers@tresys.com>
42 lines
1.0 KiB
Makefile
42 lines
1.0 KiB
Makefile
# Installation directories.
|
|
PREFIX ?= ${DESTDIR}/usr
|
|
INITDIR ?= ${DESTDIR}/etc/rc.d/init.d/
|
|
SYSCONFDIR ?= ${DESTDIR}/etc/sysconfig
|
|
BINDIR ?= $(PREFIX)/bin
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
MANDIR ?= $(PREFIX)/share/man
|
|
LOCALEDIR ?= /usr/share/locale
|
|
SHAREDIR ?= $(PREFIX)/share/sandbox
|
|
override CFLAGS += $(LDFLAGS) -I$(PREFIX)/include -DPACKAGE="\"policycoreutils\""
|
|
LDLIBS += -lselinux -lcap-ng
|
|
|
|
all: sandbox seunshare sandboxX.sh
|
|
|
|
seunshare: seunshare.o $(EXTRA_OBJS)
|
|
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
|
|
|
install: all
|
|
-mkdir -p $(BINDIR)
|
|
install -m 755 sandbox $(BINDIR)
|
|
-mkdir -p $(MANDIR)/man8
|
|
install -m 644 sandbox.8 $(MANDIR)/man8/
|
|
-mkdir -p $(SBINDIR)
|
|
install -m 4755 seunshare $(SBINDIR)/
|
|
-mkdir -p $(SHAREDIR)
|
|
install -m 755 sandboxX.sh $(SHAREDIR)
|
|
-mkdir -p $(INITDIR)
|
|
install -m 755 sandbox.init $(INITDIR)/sandbox
|
|
-mkdir -p $(SYSCONFDIR)
|
|
install -m 644 sandbox.config $(SYSCONFDIR)/sandbox
|
|
|
|
test:
|
|
@python test_sandbox.py -v
|
|
|
|
clean:
|
|
-rm -f seunshare *.o *~
|
|
|
|
indent:
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
relabel:
|