From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from msux-gh1-uea01.nsa.gov (msux-gh1-uea01.nsa.gov [63.239.67.1]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with ESMTP id n4KAqdiL024280 for ; Wed, 20 May 2009 06:52:39 -0400 Received: from m15-52.126.com (localhost [127.0.0.1]) by msux-gh1-uea01.nsa.gov (8.12.10/8.12.10) with SMTP id n4KAqZmf021229 for ; Wed, 20 May 2009 10:52:35 GMT Date: Wed, 20 May 2009 18:52:32 +0800 (CST) From: hechao55429 To: selinux Message-ID: <12675062.1102781242816752701.JavaMail.coremail@bj126app52.126.com> Subject: selinux policy for gedit MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_294295_32101766.1242816752699" Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov ------=_Part_294295_32101766.1242816752699 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit hello everyone : I'm learning the selinux policy.I wrote a selinux policy module for gedit a few days ago .When I loaded the policy into the target policy runing on the fedora 10 and ran the gedit application , I encountered the following problems: [root@localhost ~]# gedit (gedit:2697): Pango-CRITICAL **: No fonts found: This probably means that the fontconfig library is not correctly configured. You may need to edit the fonts.conf configuration file. More information about fontconfig can be found in the fontconfig(3) manual page and on http://fontconfig.org (gedit:2697): Pango-WARNING **: failed to find shape engine, expect ugly output. engine-type='PangoRenderFc', script='han' (gedit:2697): Pango-WARNING **: failed to find shape engine, expect ugly output. engine-type='PangoRenderFc', script='latin' (gedit:2697): Pango-WARNING **: failed to find shape engine, expect ugly output. engine-type='PangoRenderFc', script='common' (gedit:2697): Pango-CRITICAL **: _pango_engine_shape_covers: assertion `PANGO_IS_FONT (font)' failed [root@localhost ~]# Here is a screenshot: ------=_Part_294295_32101766.1242816752699 Content-Type: text/html; charset=gbk Content-Transfer-Encoding: quoted-printable
hello everyone :
  I'm learning the selinux policy.I wrote a selinux pol= icy module for gedit a few days ago .When I loaded=  the policy into the target policy runing on the fedora 10 and ra= n the gedit application , I encountered the following problems:
 
[root@localhost ~]# gedit
(gedit:2697): Pango-CRITICAL **: No fonts found:
This probably mean= s that the fontconfig
library is not correctly configured. You may need = to
edit the fonts.conf configuration file. More information
about fon= tconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org
(gedit:2697): Pango-WARNING **: failed to find shape engine, expect ug= ly output. engine-type=3D'PangoRenderFc', script=3D'han'
(gedit:2697): Pango-WARNING **: failed to find shape engine, expect ug= ly output. engine-type=3D'PangoRenderFc', script=3D'latin'
(gedit:2697): Pango-WARNING **: failed to find shape engine, expect ug= ly output. engine-type=3D'PangoRenderFc', script=3D'common'
(gedit:2697): Pango-CRITICAL **: _pango_engine_shape_covers: assertion= `PANGO_IS_FONT (font)' failed
[root@localhost ~]#
Here is a screenshot:





=B4=A9=D4=BD=B5=D8=D5=F0=B4=F8 =BC=CD=C4=EE=E3=EB=B4=A8=B5=D8=D5=F0= =D2=BB=D6=DC=C4=EA
------=_Part_294295_32101766.1242816752699-- -- 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. From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from msux-gh1-uea02.nsa.gov (msux-gh1-uea02.nsa.gov [63.239.67.2]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with ESMTP id n4KCuiXd011391 for ; Wed, 20 May 2009 08:56:44 -0400 Received: from mx2.redhat.com (localhost [127.0.0.1]) by msux-gh1-uea02.nsa.gov (8.12.10/8.12.10) with ESMTP id n4KCur5d000890 for ; Wed, 20 May 2009 12:56:53 GMT Message-ID: <4A13FE02.5050701@redhat.com> Date: Wed, 20 May 2009 08:56:34 -0400 From: Daniel J Walsh MIME-Version: 1.0 To: hechao55429 CC: selinux Subject: Re: selinux policy for gedit References: <12675062.1102781242816752701.JavaMail.coremail@bj126app52.126.com> In-Reply-To: <12675062.1102781242816752701.JavaMail.coremail@bj126app52.126.com> Content-Type: text/plain; charset=x-gbk; format=flowed Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On 05/20/2009 06:52 AM, hechao55429 wrote: > hello everyone : > I'm learning the selinux policy.I wrote a selinux policy module for gedit a few days ago .When I loaded the policy into the target policy runing on the fedora 10 and ran the gedit application , I encountered the following problems: > > [root@localhost ~]# gedit > (gedit:2697): Pango-CRITICAL **: No fonts found: > This probably means that the fontconfig > library is not correctly configured. You may need to > edit the fonts.conf configuration file. More information > about fontconfig can be found in the fontconfig(3) manual > page and on http://fontconfig.org > (gedit:2697): Pango-WARNING **: failed to find shape engine, expect ugly output. engine-type='PangoRenderFc', script='han' > (gedit:2697): Pango-WARNING **: failed to find shape engine, expect ugly output. engine-type='PangoRenderFc', script='latin' > (gedit:2697): Pango-WARNING **: failed to find shape engine, expect ugly output. engine-type='PangoRenderFc', script='common' > (gedit:2697): Pango-CRITICAL **: _pango_engine_shape_covers: assertion `PANGO_IS_FONT (font)' failed > [root@localhost ~]# > Here is a screenshot: > > > You need to give gedit the ability to read fonts. miscfiles_read_fonts(gedit_t) -- 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. From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from msux-gh1-uea02.nsa.gov (msux-gh1-uea02.nsa.gov [63.239.67.2]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with ESMTP id n4KDXEct017643 for ; Wed, 20 May 2009 09:33:14 -0400 Received: from mail-gx0-f180.google.com (localhost [127.0.0.1]) by msux-gh1-uea02.nsa.gov (8.12.10/8.12.10) with ESMTP id n4KDXN5d018143 for ; Wed, 20 May 2009 13:33:23 GMT Received: by gxk28 with SMTP id 28so602609gxk.18 for ; Wed, 20 May 2009 06:33:13 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4A13FE02.5050701@redhat.com> References: <12675062.1102781242816752701.JavaMail.coremail@bj126app52.126.com> <4A13FE02.5050701@redhat.com> Date: Wed, 20 May 2009 06:33:13 -0700 Message-ID: Subject: Re: selinux policy for gedit From: Justin Mattock To: Daniel J Walsh Cc: hechao55429 , selinux Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov 2009/5/20 Daniel J Walsh : > On 05/20/2009 06:52 AM, hechao55429 wrote: >> >> hello everyone : >>   I'm learning the selinux policy.I wrote a selinux policy module for >> gedit a few days ago .When I loaded the policy into the target policy runing >> on the fedora 10 and ran the gedit application , I encountered the following >> problems: >> >> [root@localhost ~]# gedit >> (gedit:2697): Pango-CRITICAL **: No fonts found: >> This probably means that the fontconfig >> library is not correctly configured. You may need to >> edit the fonts.conf configuration file. More information >> about fontconfig can be found in the fontconfig(3) manual >> page and on http://fontconfig.org >> (gedit:2697): Pango-WARNING **: failed to find shape engine, expect ugly >> output. engine-type='PangoRenderFc', script='han' >> (gedit:2697): Pango-WARNING **: failed to find shape engine, expect ugly >> output. engine-type='PangoRenderFc', script='latin' >> (gedit:2697): Pango-WARNING **: failed to find shape engine, expect ugly >> output. engine-type='PangoRenderFc', script='common' >> (gedit:2697): Pango-CRITICAL **: _pango_engine_shape_covers: assertion >> `PANGO_IS_FONT (font)' failed >> [root@localhost ~]# >> Here is a screenshot: >> >> >> > You need to give gedit the ability to read fonts. > > miscfiles_read_fonts(gedit_t) > > > -- > 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. > if you look in /etc/fonts/fonts.conf you should see: /usr/share/fonts ~/.fonts you should have something in /usr/share/fonts/* (or wherever there located on your system) -- Justin P. Mattock -- 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.