All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-selinux][PATCH 0/1] checkpolicy: Don't link against libfl
@ 2014-03-11  2:13 Chong Lu
  2014-03-11  2:13 ` [meta-selinux][PATCH 1/1] " Chong Lu
  0 siblings, 1 reply; 3+ messages in thread
From: Chong Lu @ 2014-03-11  2:13 UTC (permalink / raw)
  To: yocto

The following changes since commit a6079a43719e79e12a57e609923a0cccdba06916:

  refpolicy: fix real path for su.shadow (2014-02-13 10:52:07 -0500)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib chonglu/checkpolicy
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/checkpolicy

Chong Lu (1):
  checkpolicy: Don't link against libfl

 recipes-security/selinux/checkpolicy.inc           |  2 +
 .../checkpolicy-Do-not-link-against-libfl.patch    | 44 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 recipes-security/selinux/checkpolicy/checkpolicy-Do-not-link-against-libfl.patch

-- 
1.8.1.2



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

* [meta-selinux][PATCH 1/1] checkpolicy: Don't link against libfl
  2014-03-11  2:13 [meta-selinux][PATCH 0/1] checkpolicy: Don't link against libfl Chong Lu
@ 2014-03-11  2:13 ` Chong Lu
  2014-04-03 19:06   ` Joe MacDonald
  0 siblings, 1 reply; 3+ messages in thread
From: Chong Lu @ 2014-03-11  2:13 UTC (permalink / raw)
  To: yocto

In policy_scan.l file, we have already removed all references to yywrap by
adding "%option noyywrap" statements to each flex source file that doesn't
override yywrap. After this, we no longer need to link against libfl and so
no longer get errors about undefined references to yylex.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
 recipes-security/selinux/checkpolicy.inc           |  2 +
 .../checkpolicy-Do-not-link-against-libfl.patch    | 44 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 recipes-security/selinux/checkpolicy/checkpolicy-Do-not-link-against-libfl.patch

diff --git a/recipes-security/selinux/checkpolicy.inc b/recipes-security/selinux/checkpolicy.inc
index 096f938..54edc11 100644
--- a/recipes-security/selinux/checkpolicy.inc
+++ b/recipes-security/selinux/checkpolicy.inc
@@ -13,6 +13,8 @@ LICENSE = "GPLv2+"
 
 DEPENDS += "libsepol libselinux bison-native flex-native"
 
+SRC_URI += "file://checkpolicy-Do-not-link-against-libfl.patch"
+
 EXTRA_OEMAKE += "PREFIX=${D}" 
 EXTRA_OEMAKE += "LEX='flex'"
 
diff --git a/recipes-security/selinux/checkpolicy/checkpolicy-Do-not-link-against-libfl.patch b/recipes-security/selinux/checkpolicy/checkpolicy-Do-not-link-against-libfl.patch
new file mode 100644
index 0000000..6fcf459
--- /dev/null
+++ b/recipes-security/selinux/checkpolicy/checkpolicy-Do-not-link-against-libfl.patch
@@ -0,0 +1,44 @@
+checkpolicy: Don't link against libfl
+
+In policy_scan.l file, we have already removed all references to yywrap by
+adding "%option noyywrap" statements to each flex source file that doesn't
+override yywrap. After this, we no longer need to link against libfl and so
+no longer get errors about undefined references to yylex.
+
+Upstream-status: Pending
+
+Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
+---
+ Makefile      |    2 +-
+ test/Makefile |    2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index e5fae3d..14ac70e 100644
+--- a/Makefile
++++ b/Makefile
+@@ -19,7 +19,7 @@ CHECKOBJS = y.tab.o lex.yy.o queue.o module_compiler.o parse_util.o \
+ CHECKPOLOBJS = $(CHECKOBJS) checkpolicy.o
+ CHECKMODOBJS = $(CHECKOBJS) checkmodule.o
+ 
+-LDLIBS=$(LIBDIR)/libsepol.a -lfl
++LDLIBS=$(LIBDIR)/libsepol.a
+ 
+ GENERATED=lex.yy.c y.tab.c y.tab.h
+ 
+diff --git a/test/Makefile b/test/Makefile
+index 63b4d24..0f19a8a 100644
+--- a/test/Makefile
++++ b/test/Makefile
+@@ -9,7 +9,7 @@ INCLUDEDIR ?= $(PREFIX)/include
+ CFLAGS ?= -g -Wall -W -Werror -O2 -pipe
+ override CFLAGS += -I$(INCLUDEDIR)
+ 
+-LDLIBS=-lfl -lselinux $(LIBDIR)/libsepol.a -L$(LIBDIR)
++LDLIBS=-lselinux $(LIBDIR)/libsepol.a -L$(LIBDIR)
+ 
+ all: dispol dismod
+ 
+-- 
+1.7.9.5
+
-- 
1.8.1.2



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

* Re: [meta-selinux][PATCH 1/1] checkpolicy: Don't link against libfl
  2014-03-11  2:13 ` [meta-selinux][PATCH 1/1] " Chong Lu
@ 2014-04-03 19:06   ` Joe MacDonald
  0 siblings, 0 replies; 3+ messages in thread
From: Joe MacDonald @ 2014-04-03 19:06 UTC (permalink / raw)
  To: Chong Lu; +Cc: yocto

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

Merged, thanks.
-J.

[[yocto] [meta-selinux][PATCH 1/1] checkpolicy: Don't link against libfl] On 14.03.11 (Tue 10:13) Chong Lu wrote:

> In policy_scan.l file, we have already removed all references to yywrap by
> adding "%option noyywrap" statements to each flex source file that doesn't
> override yywrap. After this, we no longer need to link against libfl and so
> no longer get errors about undefined references to yylex.
> 
> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
> ---
>  recipes-security/selinux/checkpolicy.inc           |  2 +
>  .../checkpolicy-Do-not-link-against-libfl.patch    | 44 ++++++++++++++++++++++
>  2 files changed, 46 insertions(+)
>  create mode 100644 recipes-security/selinux/checkpolicy/checkpolicy-Do-not-link-against-libfl.patch
> 
> diff --git a/recipes-security/selinux/checkpolicy.inc b/recipes-security/selinux/checkpolicy.inc
> index 096f938..54edc11 100644
> --- a/recipes-security/selinux/checkpolicy.inc
> +++ b/recipes-security/selinux/checkpolicy.inc
> @@ -13,6 +13,8 @@ LICENSE = "GPLv2+"
>  
>  DEPENDS += "libsepol libselinux bison-native flex-native"
>  
> +SRC_URI += "file://checkpolicy-Do-not-link-against-libfl.patch"
> +
>  EXTRA_OEMAKE += "PREFIX=${D}" 
>  EXTRA_OEMAKE += "LEX='flex'"
>  
> diff --git a/recipes-security/selinux/checkpolicy/checkpolicy-Do-not-link-against-libfl.patch b/recipes-security/selinux/checkpolicy/checkpolicy-Do-not-link-against-libfl.patch
> new file mode 100644
> index 0000000..6fcf459
> --- /dev/null
> +++ b/recipes-security/selinux/checkpolicy/checkpolicy-Do-not-link-against-libfl.patch
> @@ -0,0 +1,44 @@
> +checkpolicy: Don't link against libfl
> +
> +In policy_scan.l file, we have already removed all references to yywrap by
> +adding "%option noyywrap" statements to each flex source file that doesn't
> +override yywrap. After this, we no longer need to link against libfl and so
> +no longer get errors about undefined references to yylex.
> +
> +Upstream-status: Pending
> +
> +Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
> +---
> + Makefile      |    2 +-
> + test/Makefile |    2 +-
> + 2 files changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/Makefile b/Makefile
> +index e5fae3d..14ac70e 100644
> +--- a/Makefile
> ++++ b/Makefile
> +@@ -19,7 +19,7 @@ CHECKOBJS = y.tab.o lex.yy.o queue.o module_compiler.o parse_util.o \
> + CHECKPOLOBJS = $(CHECKOBJS) checkpolicy.o
> + CHECKMODOBJS = $(CHECKOBJS) checkmodule.o
> + 
> +-LDLIBS=$(LIBDIR)/libsepol.a -lfl
> ++LDLIBS=$(LIBDIR)/libsepol.a
> + 
> + GENERATED=lex.yy.c y.tab.c y.tab.h
> + 
> +diff --git a/test/Makefile b/test/Makefile
> +index 63b4d24..0f19a8a 100644
> +--- a/test/Makefile
> ++++ b/test/Makefile
> +@@ -9,7 +9,7 @@ INCLUDEDIR ?= $(PREFIX)/include
> + CFLAGS ?= -g -Wall -W -Werror -O2 -pipe
> + override CFLAGS += -I$(INCLUDEDIR)
> + 
> +-LDLIBS=-lfl -lselinux $(LIBDIR)/libsepol.a -L$(LIBDIR)
> ++LDLIBS=-lselinux $(LIBDIR)/libsepol.a -L$(LIBDIR)
> + 
> + all: dispol dismod
> + 
> +-- 
> +1.7.9.5
> +
> -- 
> 1.8.1.2
> 
-- 
-Joe MacDonald.
:wq

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

end of thread, other threads:[~2014-04-03 19:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-11  2:13 [meta-selinux][PATCH 0/1] checkpolicy: Don't link against libfl Chong Lu
2014-03-11  2:13 ` [meta-selinux][PATCH 1/1] " Chong Lu
2014-04-03 19:06   ` Joe MacDonald

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.