Skip to contentSkip to conversation

.fonts-cache being created as user_home_dir_t

DISCUSSION Luke Kenneth Casson Leighton 4 participants 6 messages Oct 5, 2004 – Oct 8, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

it looks like a file_auto_trans() is missing somewhere: i find that ~/.fonts.cache-1 is set to type user_home_dir_t.

l.

--
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.

#1 lore raw
Quoted 2 lines · Luke Kenneth Casson Leighton

it looks like a file_auto_trans() is missing somewhere: i find that ~/.fonts.cache-1 is set to type user_home_dir_t.

Is that being created by kdm? Is the machine in permissive mode at the time the file is created?

Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
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.
#2 lore raw
Quoted 5 lines · Russell Coker
Quoted 2 lines · Luke Kenneth Casson Leighton

it looks like a file_auto_trans() is missing somewhere: i find that ~/.fonts.cache-1 is set to type user_home_dir_t.

Is that being created by kdm?

i couldn't entirely say: let me see if i can find out... a search through all kdebase *.cpp,h only shows up something in kcontrol kio handler. so that didn't work.

Quoted 2 lines

Is the machine in permissive mode at the time
the file is created?

no.

Signature · 13 lines
--
Truth, honesty and respect are rare commodities that all spring from
the same well: Love.  If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:[email protected]"> [email protected] </a> <br />


--
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.
#3 lore raw
Quoted 8 lines · Luke Kenneth Casson Leighton
Quoted 4 lines
Quoted 2 lines

it looks like a file_auto_trans() is missing somewhere: i find that ~/.fonts.cache-1 is set to type user_home_dir_t.

Is that being created by kdm?

i couldn't entirely say: let me see if i can find out... a search through all kdebase *.cpp,h only shows up something in kcontrol kio handler. so that didn't work.

Put in:
auditallow domain user_home_dir_t:file *;

Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
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.
#4 lore raw
In reply to Luke Kenneth Casson Leighton
Quoted 10 lines · Luke Kenneth Casson Leighton
Quoted 5 lines · Russell Coker
Quoted 2 lines · Luke Kenneth Casson Leighton

it looks like a file_auto_trans() is missing somewhere: i find that ~/.fonts.cache-1 is set to type user_home_dir_t.

Is that being created by kdm?

i couldn't entirely say: let me see if i can find out... a search through all kdebase *.cpp,h only shows up something in kcontrol kio handler. so that didn't work.

The file is created by the fontconfig libraries. Since Qt uses fontconfig, any process that uses Qt could potentially create that file.

--
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.

#5 lore raw
In reply to Luke Kenneth Casson Leighton

Hi,

Quoted 3 lines

i couldn't entirely say: let me see if i can find out... a search through all kdebase *.cpp,h only shows up something in kcontrol kio handler. so that didn't work.

.fonts-cache is probably created by the fontconfig libraries, so any app that does link this library could be "causing" this.
I guess the cleanes SELinux approach would be to split this out of the fontconfig libraries into an own application... ;-)

Greetings,
Erich Schubert

Signature · 10 lines
   erich@(vitavonni.de|debian.org)    --    GPG Key ID: 4B3A135C    (o_
     Which is worse: ignorance or apathy? Who knows? Who cares?     //\
            Es lohnt sich nicht, die Augen aufzumachen,             V_/_
                   wenn der Kopf im Sand steckt.


--
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.