firefox downloaded files are user_u:object_r:tmp_t
Daniel J Walsh
dwalsh at redhat.com
Fri Jun 9 00:31:36 UTC 2006
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
More information about the selinux
mailing list