Re: file ownership issue 3.0.3 / POSIX or PCRE issue?

PJ Perfetti <[email protected]> Fri, 15 Jan 2010 15:24:13 -0500
Newsgroups gmane.comp.sysutils.cfengine.bugs
Message-ID <[email protected]>
--===============0926186800==
Content-Type: multipart/alternative; boundary=000e0cd70ab478079b047d39c986

--000e0cd70ab478079b047d39c986
Content-Type: text/plain; charset=ISO-8859-1

Correction... This is the error I am getting when I use the -xf options...

File .cfagent/inputs/test.cf (owner 600) is writable by others (security
exception)
[perfettip@localhost ~]$ /usr/local/sbin/cf-promises -xf .cfagent/inputs/
test.cf
----------------------------------------------------------
Cfengine 3 - Performing level 2 self-diagnostic (dialogue)
----------------------------------------------------------

1. Test variable scanning
2. Testing promise duplication and expansion
3. Testing variable expansion
4. Testing regular expression engine
 -> Regex engine is the Perl Compatible Regular Expression library
 -> Regular expression compilation - ok
 -> Regular expression extraction - ok 15 - 31
 -> Regular expression extraction - ok
 -> FullTextMatch - ok 2
 -> BlockTextMatch - ok
 -> BlockTextMatch - ok
5. Testing promise attribute completeness
 !! files promise makes no intention about system state
I: Made in version 'not specified' of '' near line 0
I: Comment:

 -> All non-listed items are accounted for

Yet, when I run the command without the "x", I still get the following
message,

[perfettip@localhost ~]$ /usr/local/sbin/cf-promises -f .cfagent/inputs/
test.cf
File .cfagent/inputs/test.cf (owner 600) is writable by others (security
exception)

On Fri, Jan 15, 2010 at 2:19 PM, PJ Perfetti <[email protected]> wrote:

> I have downloaded, compiled, and installed cfengine 3.0.3 on RHEL 5.4
> server.  While cf3-tutorial and "following along" I came across this
> issue...
>
> contents of my .cfagent/inputs/test.cf file (as directed to create on page
> 15 of the tutorial)
>
> # Every policy must have a bundlesequence
>
> body common control
> {
> bundlesequence => { "test" };
> }
>
> #
>
> bundle agent test
> {
> reports:             # This is a promise type
>    cfengine_3::      # This is a class context (the promise will only
>                      # be kept on a cfengine_3 system)
>
>    "Hello world"; # This is a simple promise (it generates a report
>                   # that says "Hello world")
>
> Then, when instructed I tried...
>
> [perfettip@localhost ~]$ /usr/local/sbin/cf-promises -f .cfagent/inputs/
> test.cf
> File .cfagent/inputs/test.cf (owner 600) is writable by others (security
> exception)
>
> [perfettip@localhost ~]$ ls -la .cfagent/inputs/test.cf
> -rw-rw-r-- 1 perfettip perfettip 366 Jan 14 13:02 .cfagent/inputs/test.cf
>
> Running the command again, with debug flag I get a segmentation fault.
>
> [perfettip@localhost ~]$ /usr/local/sbin/cf-promises -xf .cfagent/inputs/
> test.cf
> ----------------------------------------------------------
> Cfengine 3 - Performing level 2 self-diagnostic (dialogue)
> ----------------------------------------------------------
>
> 1. Test variable scanning
> 2. Testing promise duplication and expansion
> 3. Testing variable expansion
> 4. Testing regular expression engine
>  -> Regex engine is the POSIX Regular Expression library
>  !! Note if any of these tests hang, we recommend using the PCRE library
>  !! as the POSIX implementation suffers from memory corruption
>  -> Regular expression compilation - ok
>  -> Regular expression extraction - ok 15 - 47
>  -> Regular expression extraction - ok
>  -> FullTextMatch - ok 2
>  -> BlockTextMatch - ok
> Start was not at 31 -> 47
>  -> BlockTextMatch - ok
> 5. Testing promise attribute completeness
> Segmentation fault
>
> It appears like it's using POSIX, but I do have PCRE installed as indicated
> in the INSTALL file in the latest tar.gz file.
>
> Please advise.  I have only gotten to page 15 of the tutorial ;(
>
> --
> Regards,
> Pete
>
>


-- 
Regards,
Pete

--000e0cd70ab478079b047d39c986
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Correction... This is the error I am getting when I use the -xf options...<=
br><br><div style=3D"margin-left: 40px; font-family: courier new,monospace;=
">File .cfagent/inputs/<a href=3D"http://test.cf">test.cf</a> (owner 600) i=
s writable by others (security exception)<br>
</div><div style=3D"margin-left: 40px;"><span style=3D"font-family: courier=
 new,monospace;">[perfettip@localhost ~]$ /usr/local/sbin/cf-promises -xf .=
cfagent/inputs/<a href=3D"http://test.cf">test.cf</a></span><br style=3D"fo=
nt-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">-----------------------=
-----------------------------------</span><br style=3D"font-family: courier=
 new,monospace;"><span style=3D"font-family: courier new,monospace;">Cfengi=
ne 3 - Performing level 2 self-diagnostic (dialogue)</span><br style=3D"fon=
t-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">-----------------------=
-----------------------------------</span><br style=3D"font-family: courier=
 new,monospace;"><br style=3D"font-family: courier new,monospace;"><span st=
yle=3D"font-family: courier new,monospace;">1. Test variable scanning</span=
><br style=3D"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">2. Testing promise dupl=
ication and expansion</span><br style=3D"font-family: courier new,monospace=
;"><span style=3D"font-family: courier new,monospace;">3. Testing variable =
expansion</span><br style=3D"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">4. Testing regular expr=
ession engine</span><br style=3D"font-family: courier new,monospace;"><span=
 style=3D"font-family: courier new,monospace;">=A0-&gt; Regex engine is the=
 Perl Compatible Regular Expression library</span><br style=3D"font-family:=
 courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">=A0-&gt; Regular expres=
sion compilation - ok</span><br style=3D"font-family: courier new,monospace=
;"><span style=3D"font-family: courier new,monospace;">=A0-&gt; Regular exp=
ression extraction - ok 15 - 31</span><br style=3D"font-family: courier new=
,monospace;">
<span style=3D"font-family: courier new,monospace;">=A0-&gt; Regular expres=
sion extraction - ok</span><br style=3D"font-family: courier new,monospace;=
"><span style=3D"font-family: courier new,monospace;">=A0-&gt; FullTextMatc=
h - ok 2</span><br style=3D"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">=A0-&gt; BlockTextMatch=
 - ok</span><br style=3D"font-family: courier new,monospace;"><span style=
=3D"font-family: courier new,monospace;">=A0-&gt; BlockTextMatch - ok</span=
><br style=3D"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">5. Testing promise attr=
ibute completeness</span><br style=3D"font-family: courier new,monospace;">=
<span style=3D"font-family: courier new,monospace;">=A0!! files promise mak=
es no intention about system state</span><br style=3D"font-family: courier =
new,monospace;">
<span style=3D"font-family: courier new,monospace;">I: Made in version &#39=
;not specified&#39; of &#39;&#39; near line 0</span><br style=3D"font-famil=
y: courier new,monospace;"><span style=3D"font-family: courier new,monospac=
e;">I: Comment:</span><br style=3D"font-family: courier new,monospace;">
<br style=3D"font-family: courier new,monospace;"><span style=3D"font-famil=
y: courier new,monospace;">=A0-&gt; All non-listed items are accounted for<=
/span><br></div><br>Yet, when I run the command without the &quot;x&quot;, =
I still get the following message,<br>
<br><div style=3D"margin-left: 40px;"><span style=3D"font-family: courier n=
ew,monospace;">[perfettip@localhost ~]$ /usr/local/sbin/cf-promises -f .cfa=
gent/inputs/<a href=3D"http://test.cf/" target=3D"_blank">test.cf</a></span=
><br style=3D"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">File .cfagent/inputs/<a=
 href=3D"http://test.cf/" target=3D"_blank">test.cf</a> (owner 600) is writ=
able by others (security exception)</span><br></div>
<br><div class=3D"gmail_quote">On Fri, Jan 15, 2010 at 2:19 PM, PJ Perfetti=
 <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]">pjperfetti@g=
mail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; p=
adding-left: 1ex;">
I have downloaded, compiled, and installed cfengine 3.0.3 on RHEL 5.4 serve=
r.=A0 While cf3-tutorial and &quot;following along&quot; I came across this=
 issue...<br><br>contents of my .cfagent/inputs/<a href=3D"http://test.cf" =
target=3D"_blank">test.cf</a> file (as directed to create on page 15 of the=
 tutorial)<br>

<br><div style=3D"margin-left: 40px; font-family: courier new,monospace;">#=
 Every policy must have a bundlesequence<br><br>body common control<br>{<br=
>bundlesequence =3D&gt; { &quot;test&quot; };<br>}<br><br>#<br><br>bundle a=
gent test<br>

{<br>reports:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # This is a promise type<=
br>=A0=A0 cfengine_3::=A0=A0=A0=A0=A0 # This is a class context (the promis=
e will only<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
 # be kept on a cfengine_3 system)<br><br>=A0=A0 &quot;Hello world&quot;; #=
 This is a simple promise (it generates a report<br>

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # that says &quot;Hello=
 world&quot;)<br></div><br clear=3D"all">Then, when instructed I tried...<b=
r><br><div style=3D"margin-left: 40px;"><span style=3D"font-family: courier=
 new,monospace;">[perfettip@localhost ~]$ /usr/local/sbin/cf-promises -f .c=
fagent/inputs/<a href=3D"http://test.cf" target=3D"_blank">test.cf</a></spa=
n><br style=3D"font-family: courier new,monospace;">

<span style=3D"font-family: courier new,monospace;">File .cfagent/inputs/<a=
 href=3D"http://test.cf" target=3D"_blank">test.cf</a> (owner 600) is writa=
ble by others (security exception)</span><br style=3D"font-family: courier =
new,monospace;">
<span style=3D"font-family: courier new,monospace;"></span><br>
<span style=3D"font-family: courier new,monospace;">[perfettip@localhost ~]=
$ ls -la .cfagent/inputs/<a href=3D"http://test.cf" target=3D"_blank">test.=
cf</a></span><br style=3D"font-family: courier new,monospace;"><span style=
=3D"font-family: courier new,monospace;">-rw-rw-r-- 1 perfettip perfettip 3=
66 Jan 14 13:02 .cfagent/inputs/<a href=3D"http://test.cf" target=3D"_blank=
">test.cf</a></span><br style=3D"font-family: courier new,monospace;">

</div><span style=3D"font-family: courier new,monospace;"><br>Running the c=
ommand again, with debug flag I get a segmentation fault.<br><br></span><di=
v style=3D"margin-left: 40px;"><span style=3D"font-family: courier new,mono=
space;">[perfettip@localhost ~]$ /usr/local/sbin/cf-promises -xf .cfagent/i=
nputs/<a href=3D"http://test.cf" target=3D"_blank">test.cf</a></span><br st=
yle=3D"font-family: courier new,monospace;">

<span style=3D"font-family: courier new,monospace;">-----------------------=
-----------------------------------</span><br style=3D"font-family: courier=
 new,monospace;"><span style=3D"font-family: courier new,monospace;">Cfengi=
ne 3 - Performing level 2 self-diagnostic (dialogue)</span><br style=3D"fon=
t-family: courier new,monospace;">

<span style=3D"font-family: courier new,monospace;">-----------------------=
-----------------------------------</span><br style=3D"font-family: courier=
 new,monospace;"><br style=3D"font-family: courier new,monospace;"><span st=
yle=3D"font-family: courier new,monospace;">1. Test variable scanning</span=
><br style=3D"font-family: courier new,monospace;">

<span style=3D"font-family: courier new,monospace;">2. Testing promise dupl=
ication and expansion</span><br style=3D"font-family: courier new,monospace=
;"><span style=3D"font-family: courier new,monospace;">3. Testing variable =
expansion</span><br style=3D"font-family: courier new,monospace;">

<span style=3D"font-family: courier new,monospace;">4. Testing regular expr=
ession engine</span><br style=3D"font-family: courier new,monospace;"><span=
 style=3D"font-family: courier new,monospace;">=A0-&gt; Regex engine is the=
 POSIX Regular Expression library</span><br style=3D"font-family: courier n=
ew,monospace;">

<span style=3D"font-family: courier new,monospace;">=A0!! Note if any of th=
ese tests hang, we recommend using the PCRE library</span><br style=3D"font=
-family: courier new,monospace;"><span style=3D"font-family: courier new,mo=
nospace;">=A0!! as the POSIX implementation suffers from memory corruption<=
/span><br style=3D"font-family: courier new,monospace;">

<span style=3D"font-family: courier new,monospace;">=A0-&gt; Regular expres=
sion compilation - ok</span><br style=3D"font-family: courier new,monospace=
;"><span style=3D"font-family: courier new,monospace;">=A0-&gt; Regular exp=
ression extraction - ok 15 - 47</span><br style=3D"font-family: courier new=
,monospace;">

<span style=3D"font-family: courier new,monospace;">=A0-&gt; Regular expres=
sion extraction - ok</span><br style=3D"font-family: courier new,monospace;=
"><span style=3D"font-family: courier new,monospace;">=A0-&gt; FullTextMatc=
h - ok 2</span><br style=3D"font-family: courier new,monospace;">

<span style=3D"font-family: courier new,monospace;">=A0-&gt; BlockTextMatch=
 - ok</span><br style=3D"font-family: courier new,monospace;"><span style=
=3D"font-family: courier new,monospace;">Start was not at 31 -&gt; 47</span=
><br style=3D"font-family: courier new,monospace;">

<span style=3D"font-family: courier new,monospace;">=A0-&gt; BlockTextMatch=
 - ok</span><br style=3D"font-family: courier new,monospace;"><span style=
=3D"font-family: courier new,monospace;">5. Testing promise attribute compl=
eteness</span><br style=3D"font-family: courier new,monospace;">

<span style=3D"font-family: courier new,monospace;">Segmentation fault</spa=
n><br></div><br>It appears like it&#39;s using POSIX, but I do have PCRE in=
stalled as indicated in the INSTALL file in the latest tar.gz file.<br><br>

Please advise.=A0 I have only gotten to page 15 of the tutorial ;(<br><font=
 color=3D"#888888"><br>-- <br>Regards,<br>Pete<br><br>
</font></blockquote></div><br><br clear=3D"all"><br>-- <br>Regards,<br>Pete=
<br><br>

--000e0cd70ab478079b047d39c986--

--===============0926186800==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

--===============0926186800==--