Research
.
Skip Search Box

SELinux Mailing List

Re: [refpolicy][PATCH] fix Makefile BASE_MODS and MOD_MODS detection

From: Christopher J. PeBenito <cpebenito_at_tresys.com>
Date: Fri, 25 Nov 2005 09:22:49 -0500


On Fri, 2005-11-25 at 11:11 +1100, Johan Fischer wrote:
> the solution to the problem....
>
> make sure that you're using gawk and not mawk as the default awk on your
> system.
>
> possibly the gawk and mawk way of adding extra anchors might be
> different making it fail on my installation ( I don't how when I
> installed mawk or why, but anyway....)

Perhaps the awk commands should be changed to gawk. I wouldn't think it would be a problem; it doesn't seem likely that a policy will be built on a non-GNU system.

> Christopher J. PeBenito wrote:
>
> >On Wed, 2005-11-09 at 12:35 +1100, Johan Fischer wrote:
> >
> >
> >>quick patch to fix the modules detection from the modules.conf file...
> >>
> >>before:
> >>$ awk '/^[[:blank:]]*[[:alpha:]]/{ if ($3 == "module") print $1 }'
> >>policy/modules.conf
> >>(no result)
> >>
> >>after:
> >>$ awk '/^[[:blank:]]*[[:alpha:]]*/{ if ($3 == "module") print $1 }'
> >>policy/modules.conf
> >>apm
> >>apache
> >>bluetooth
> >>
> >>
> >
> >I can't reproduce this behavior. I don't believe this patch is correct,
> >as it makes the regex too inspecific. With the change, the regex
> >matches all lines, so if the second word in a comment was "module", it
> >would print out "#", causing errors.
> >
> >
> >
>

-- 
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
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.
Received on Fri 25 Nov 2005 - 09:24:59 EST
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service