Re: firefox downloaded files are user_u:object_r:tmp_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
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

--
fedora-selinux-list mailing list
fedora-selinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-selinux-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux