mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-20 13:10:23 +00:00
3e870d7c9b
sestatus has been modified to present additional information: SELinux root directory, MLS flag and the deny_unknow flag. The man page has been updated to reflect these changes and an sestatus.conf(5) man page has also been added. Signed-off-by: Richard Haines <richard_c_haines@btinternet.com> Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
33 lines
728 B
Makefile
33 lines
728 B
Makefile
# Installation directories.
|
|
PREFIX ?= $(DESTDIR)/usr
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
MANDIR = $(PREFIX)/share/man
|
|
ETCDIR ?= $(DESTDIR)/etc
|
|
LIBDIR ?= $(PREFIX)/lib
|
|
|
|
CFLAGS = -Werror -Wall -W
|
|
override CFLAGS += -I$(PREFIX)/include -D_FILE_OFFSET_BITS=64
|
|
LDLIBS = -lselinux -L$(LIBDIR)
|
|
|
|
all: sestatus
|
|
|
|
sestatus: sestatus.o
|
|
|
|
install: all
|
|
[ -d $(MANDIR)/man8 ] || mkdir -p $(MANDIR)/man8
|
|
[ -d $(MANDIR)/man5 ] || mkdir -p $(MANDIR)/man5
|
|
-mkdir -p $(SBINDIR)
|
|
install -m 755 sestatus $(SBINDIR)
|
|
install -m 644 sestatus.8 $(MANDIR)/man8
|
|
install -m 644 sestatus.conf.5 $(MANDIR)/man5
|
|
-mkdir -p $(ETCDIR)
|
|
install -m 644 sestatus.conf $(ETCDIR)
|
|
|
|
clean:
|
|
rm -f sestatus *.o
|
|
|
|
indent:
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
relabel:
|