selinux policy for gedit
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:
Quoted 19 lines · 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 [email protected] with the words "unsubscribe selinux" without quotes as the message.
2009/5/20 Daniel J Walsh <[email protected]>:
Quoted 30 lines · On 05/20/2009 06:52 AM, hechao55429 wrote:
Quoted 16 lines
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'Quoted 11 lines
(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.
Quoted 9 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.
if you look in /etc/fonts/fonts.conf
you should see:
<!-- Font directory list -->
<dir>/usr/share/fonts</dir>
<dir>~/.fonts</dir>you should have something in/usr/share/fonts/*
(or wherever there located on your system)
Signature · 7 lines
Justin P. Mattock -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.