That works, which is strange because inspired by a bugzilla query I did:
for i in `rpm -ql wine|grep /bin`; do chcon -t java_exec_t $i; done
And java needs allow_execmod too right?
Anyways yes that works.

Erm, if we need a better solution then how is this not a bug?
Also since wine is in extras now (see bug 171526), this is a real problem since
the targeted policy is enabled by default now a days and one would expect wine
from FE to work out of the box.
Reopening.

Actually if you want to run execmod applications in your homedir you need to set
allow_execmod.
If you want the exe labeled correctly they should be installed in /usr/lib/wine
directory as a .s0 file. They you could restorecon -R /usr/lib/wine
To set them up correctly.
If they do not work labeled as .so I could add a file_context match on \*.exe

Daniel Walsh wrote:
> Actually if you want to run execmod applications in your homedir you need to
set allow_execmod.
What I want is a wine which works out of the box with the targeted policy. Isn't
it possible to create a type for the wine binaries so that they are allowed todo
execmod on any file? Just like java is given a type which allows it to always do
execmem.