From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: some problem with my event dispatcher Date: Mon, 17 Dec 2007 08:46:57 -0500 Message-ID: <200712170846.57826.sgrubb@redhat.com> References: <18436f8f0712170010k59a65102kaf1cffb7c4566d35@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <18436f8f0712170010k59a65102kaf1cffb7c4566d35@mail.gmail.com> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com Cc: Abhishek Gupta List-Id: linux-audit@redhat.com On Monday 17 December 2007 03:10:46 Abhishek Gupta wrote: > + =C2=A0 =C2=A0 =C2=A0 =C2=A0fp=3Dfopen("tempfile.txt","w+"); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0fwrite((char*)data,sizeof(char),30,fp); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0fclose(fp); What directory is your dispatcher using for cwd? Try giving a full path t= o a=20 directory it is allowed to write in. There are no restrictions on where t= he=20 dispatcher can write unless selinux policy prevents it. That is easily=20 checked by trying "setenforce 0".=20 -Steve