All of lore.kernel.org
 help / color / mirror / Atom feed
* We have moved matchpathcon to /sbin from /usr/sbin
@ 2009-04-01 14:21 Daniel J Walsh
  2009-05-07 20:05 ` Chad Sellers
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel J Walsh @ 2009-04-01 14:21 UTC (permalink / raw)
  To: SE Linux

[-- Attachment #1: Type: text/plain, Size: 69 bytes --]

Some init scripts wanted to use matchpathcon before /usr is mounted.

[-- Attachment #2: matchpathcon_makefile.patch --]
[-- Type: text/plain, Size: 1090 bytes --]

--- nsalibselinux/utils/Makefile	2009-03-06 14:41:45.000000000 -0500
+++ libselinux-2.0.79/utils/Makefile	2009-03-27 10:09:31.000000000 -0400
@@ -2,28 +2,33 @@
 PREFIX ?= $(DESTDIR)/usr
 LIBDIR ?= $(PREFIX)/lib
 BINDIR ?= $(PREFIX)/sbin
+_BINDIR ?= $(DESTDIR)/sbin
 
 CFLAGS ?= -Wall
 override CFLAGS += -I../include -D_GNU_SOURCE $(EMFLAGS)
 LDLIBS += -L../src -lselinux -L$(LIBDIR)
 
 TARGETS=$(patsubst %.c,%,$(wildcard *.c))
+
+
 ifeq ($(DISABLE_AVC),y)
 	UNUSED_TARGETS+=compute_av compute_create compute_member compute_relabel
 endif
 ifeq ($(DISABLE_BOOL),y)
 	UNUSED_TARGETS+=getsebool togglesebool
 endif
-TARGETS:= $(filter-out $(UNUSED_TARGETS), $(TARGETS))
+TARGETS:= $(filter-out $(UNUSED_TARGETS) matchpathcon, $(TARGETS))
 
-all: $(TARGETS)
+all: $(TARGETS) matchpathcon
 
 install: all
 	-mkdir -p $(BINDIR)
 	install -m 755 $(TARGETS) $(BINDIR)
-
+	-mkdir -p $(_BINDIR)
+	install -m 755 matchpathcon $(_BINDIR)
+	(cd $(BINDIR); 	ln -fs ../../sbin/matchpathcon)
 clean:
-	rm -f $(TARGETS) *.o 
+	rm -f $(TARGETS) *.o *~
 
 indent:
 	../../scripts/Lindent $(wildcard *.[ch])

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: We have moved matchpathcon to /sbin from /usr/sbin
  2009-04-01 14:21 We have moved matchpathcon to /sbin from /usr/sbin Daniel J Walsh
@ 2009-05-07 20:05 ` Chad Sellers
  2009-05-18 15:32   ` Joshua Brindle
  0 siblings, 1 reply; 3+ messages in thread
From: Chad Sellers @ 2009-05-07 20:05 UTC (permalink / raw)
  To: Daniel J Walsh, SE Linux

On 4/1/09 10:21 AM, "Daniel J Walsh" <dwalsh@redhat.com> wrote:

> Some init scripts wanted to use matchpathcon before /usr is mounted.

Looks fine except for adding the now split out matchpathcon to the clean
target. I'll fix that in the merge.

Acked-by: Chad Sellers <csellers@tresys.com>


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: We have moved matchpathcon to /sbin from /usr/sbin
  2009-05-07 20:05 ` Chad Sellers
@ 2009-05-18 15:32   ` Joshua Brindle
  0 siblings, 0 replies; 3+ messages in thread
From: Joshua Brindle @ 2009-05-18 15:32 UTC (permalink / raw)
  To: Chad Sellers; +Cc: Daniel J Walsh, SE Linux

Chad Sellers wrote:
> On 4/1/09 10:21 AM, "Daniel J Walsh" <dwalsh@redhat.com> wrote:
> 
>> Some init scripts wanted to use matchpathcon before /usr is mounted.
> 
> Looks fine except for adding the now split out matchpathcon to the clean
> target. I'll fix that in the merge.
> 
> Acked-by: Chad Sellers <csellers@tresys.com>
> 

Merged in libselinux-2.0.81

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-18 15:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-01 14:21 We have moved matchpathcon to /sbin from /usr/sbin Daniel J Walsh
2009-05-07 20:05 ` Chad Sellers
2009-05-18 15:32   ` Joshua Brindle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.