Skip to content

Commit

Permalink
Move policycoreutils/restorecond to restorecond.
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Smalley <[email protected]>
  • Loading branch information
stephensmalley committed Nov 16, 2016
1 parent 4cc8086 commit 00be136
Show file tree
Hide file tree
Showing 20 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ cscope.*
.*.swp
# Failsafes
!.gitignore
restorecond/restorecond
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ SUBDIRS=libsepol libselinux libsemanage sepolgen checkpolicy secilc policycoreut
PYSUBDIRS=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)
export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror
export LDFLAGS = -g
Expand Down
1 change: 0 additions & 1 deletion policycoreutils/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
load_policy/load_policy
newrole/newrole
restorecond/restorecond
run_init/open_init_pty
run_init/run_init
secon/secon
Expand Down
6 changes: 0 additions & 6 deletions policycoreutils/Makefile
Original file line number Diff line number Diff line change
@@ -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

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:
@for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $@) || exit 1; \
Expand Down
6 changes: 4 additions & 2 deletions policycoreutils/restorecond/Makefile → restorecond/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ SELINUXDIR = $(DESTDIR)/etc/selinux
DBUSFLAGS = -DHAVE_DBUS $(shell $(PKG_CONFIG) --cflags dbus-glib-1)
DBUSLIB = $(shell $(PKG_CONFIG) --libs dbus-glib-1)

SETFILESDIR ?= ../policycoreutils/setfiles

CFLAGS ?= -g -Werror -Wall -W
override CFLAGS += -I$(PREFIX)/include $(DBUSFLAGS)
override CFLAGS += -I$(PREFIX)/include $(DBUSFLAGS) -I$(SETFILESDIR)

USE_PCRE2 ?= n
ifeq ($(USE_PCRE2),y)
Expand All @@ -32,7 +34,7 @@ all: restorecond

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)

install: all
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include "../setfiles/restore.h"
#include "restore.h"
#include <sys/types.h>
#include <syslog.h>
#include <limits.h>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 00be136

Please sign in to comment.