Move policycoreutils/restorecond to restorecond.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
This commit is contained in:
Stephen Smalley 2016-10-31 13:09:09 -04:00
parent 4cc808671a
commit 00be13634a
20 changed files with 12 additions and 10 deletions

1
.gitignore vendored
View File

@ -24,3 +24,4 @@ cscope.*
.*.swp .*.swp
# Failsafes # Failsafes
!.gitignore !.gitignore
restorecond/restorecond

View File

@ -2,6 +2,12 @@ SUBDIRS=libsepol libselinux libsemanage sepolgen checkpolicy secilc policycoreut
PYSUBDIRS=libselinux libsemanage PYSUBDIRS=libselinux libsemanage
DISTCLEANSUBDIRS=libselinux libsemanage DISTCLEANSUBDIRS=libselinux libsemanage
INOTIFYH = $(shell ls /usr/include/sys/inotify.h 2>/dev/null)
ifeq (${INOTIFYH}, /usr/include/sys/inotify.h)
SUBDIRS += restorecond
endif
ifeq ($(DEBUG),1) ifeq ($(DEBUG),1)
export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror
export LDFLAGS = -g export LDFLAGS = -g

View File

@ -1,6 +1,5 @@
load_policy/load_policy load_policy/load_policy
newrole/newrole newrole/newrole
restorecond/restorecond
run_init/open_init_pty run_init/open_init_pty
run_init/run_init run_init/run_init
secon/secon secon/secon

View File

@ -1,11 +1,5 @@
SUBDIRS = sepolicy setfiles semanage load_policy newrole run_init sandbox secon audit2allow sestatus semodule_package semodule semodule_link semodule_expand semodule_deps sepolgen-ifgen setsebool scripts po man hll SUBDIRS = sepolicy setfiles semanage load_policy newrole run_init sandbox secon audit2allow sestatus semodule_package semodule semodule_link semodule_expand semodule_deps sepolgen-ifgen setsebool scripts po man hll
INOTIFYH = $(shell ls /usr/include/sys/inotify.h 2>/dev/null)
ifeq (${INOTIFYH}, /usr/include/sys/inotify.h)
SUBDIRS += restorecond
endif
all install relabel clean indent: all install relabel clean indent:
@for subdir in $(SUBDIRS); do \ @for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $@) || exit 1; \ (cd $$subdir && $(MAKE) $@) || exit 1; \

View File

@ -16,8 +16,10 @@ SELINUXDIR = $(DESTDIR)/etc/selinux
DBUSFLAGS = -DHAVE_DBUS $(shell $(PKG_CONFIG) --cflags dbus-glib-1) DBUSFLAGS = -DHAVE_DBUS $(shell $(PKG_CONFIG) --cflags dbus-glib-1)
DBUSLIB = $(shell $(PKG_CONFIG) --libs dbus-glib-1) DBUSLIB = $(shell $(PKG_CONFIG) --libs dbus-glib-1)
SETFILESDIR ?= ../policycoreutils/setfiles
CFLAGS ?= -g -Werror -Wall -W CFLAGS ?= -g -Werror -Wall -W
override CFLAGS += -I$(PREFIX)/include $(DBUSFLAGS) override CFLAGS += -I$(PREFIX)/include $(DBUSFLAGS) -I$(SETFILESDIR)
USE_PCRE2 ?= n USE_PCRE2 ?= n
ifeq ($(USE_PCRE2),y) ifeq ($(USE_PCRE2),y)
@ -32,7 +34,7 @@ all: restorecond
restorecond.o utmpwatcher.o stringslist.o user.o watch.o: restorecond.h restorecond.o utmpwatcher.o stringslist.o user.o watch.o: restorecond.h
restorecond: ../setfiles/restore.o restorecond.o utmpwatcher.o stringslist.o user.o watch.o restorecond: $(SETFILESDIR)/restore.o restorecond.o utmpwatcher.o stringslist.o user.o watch.o
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
install: all install: all

View File

@ -55,7 +55,7 @@
#include <signal.h> #include <signal.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include "../setfiles/restore.h" #include "restore.h"
#include <sys/types.h> #include <sys/types.h>
#include <syslog.h> #include <syslog.h>
#include <limits.h> #include <limits.h>