Getting DropBox to work with SELinux

Recently Serge mentioned DropBox to me, and I remembered creating an account once but haven’t used or installed it in the last 2 years.

These days you also get lot more free space with your DropBox so I decided to start using it again.

So I started installing DropBox using the rpm from their website, but got an SELinux warning. Setroubleshootd perfectly explains what’s going on and the solution is trivial.

[root@localhost ~]# semanage fcontext -a -t execmem_exec_t '/home/vincent/.dropbox-dist/dropbox'
[root@localhost ~]# restorecon -vvF '/home/vincent/.dropbox-dist/dropbox'
restorecon reset /home/vincent/.dropbox-dist/dropbox context unconfined_u:object_r:user_home_t:s0->system_u:object_r:execmem_exec_t:s0