firefox downloaded files are user_u:object_r:tmp_t

Paul Howarth paul at city-fan.org
Fri Jun 9 19:48:26 UTC 2006


On Fri, 2006-06-09 at 20:15 +0200, dragoran wrote:
> Daniel J Walsh wrote:
> > dragoran wrote:
> >> When I download a file using firefox it is saved as 
> >> user_u:object_r:tmp_t it should be user_u:object_r:user_home_t
> >> I have a folder which is shared using samba and when I download a 
> >> file into it I had to restorecon it in order to let the windows 
> >> clients (and linux) see it.
> >> I am using FC5 x86_64 with selinux-policy-targeted-2.2.40-1.fc5
> >> note: I am using a 32bit firefox build
> >>
> >> -- 
> >> fedora-selinux-list mailing list
> >> fedora-selinux-list at redhat.com
> >> https://www.redhat.com/mailman/listinfo/fedora-selinux-list
> > Are you saving it to the /tmp directory?  If you are it will get saved 
> > as tmp_t.  Since files default to the context of their parent directory.
> >
> > If you them mv /tmp/download.file ~/
> >
> > You will maintain tmp_t.
> >
> > If you use cp /tmp/download.file ~/
> >
> > It will get user_home_t.
> >
> > Dan
> >
> >
> no I simply download it to a dir in home which is labeled 
> user_u:object_r:user_home_t

If you download a large file, can you see it "growing" in your home dir,
or does it appear all at once?

I suspect firefox downloads it to a temp dir and moves it to your home
directory when done.

Paul,





More information about the fedora-selinux-list mailing list