firefox downloaded files are user_u:object_r:tmp_t
dragoran
dragoran at feuerpokemon.de
Fri Jun 9 18:15:48 UTC 2006
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
More information about the fedora-selinux-list
mailing list