Skip to contentSkip to conversation

apps_wine.patch

refpolicy Daniel J Walsh 2 participants 3 messages Jun 2, 2010 – Jul 12, 2010

lore
Share & tools
lore
#1 lore raw
Quoted 5 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/apps_wine.patch

Picasa ships wine execs.

wine changes fro domain_mmap_low

This last part confuses me. I thought mmap_low was intrinsically required for wine. Neglecting that question, there seems to be an error in the .if:

Review

Quoted 3 lines
(quoted diff) +3 -0
+	tunable_policy(`wine_mmap_zero_ignore',`
+		allow $1_wine_t self:memprotect mmap_zero;
+	')

Shouldn't this be dontaudited?

This doesn't seem to make sense. Aren't the subject and object reversed? Also it seems odd, since wine is running Windows programs, which wouldn't really inherit things from the Linux environment:

Quoted 2 lines
(quoted diff) +2 -0
+	# Unrestricted inheritance from the caller.
+	allow $2 wine_t:process { noatsecure siginh rlimitinh };
Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
#2 lore raw
Quoted 11 lines · Christopher J. PeBenito
Quoted 5 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/apps_wine.patch

Picasa ships wine execs.

wine changes fro domain_mmap_low

This last part confuses me. I thought mmap_low was intrinsically required for wine. Neglecting that question, there seems to be an error in the .if:

It is only required by wine if you run old DOS 16 bit apps or badly written ones. Newer Windows apps should not require this.

Quoted 6 lines

Review

Quoted 3 lines
(quoted diff) +3 -0
+    tunable_policy(`wine_mmap_zero_ignore',`
+        allow $1_wine_t self:memprotect mmap_zero;
+    ')

Shouldn't this be dontaudited?

Yes.

Quoted 8 lines

This doesn't seem to make sense. Aren't the subject and object reversed? Also it seems odd, since wine is running Windows programs, which wouldn't really inherit things from the Linux environment:

Quoted 2 lines
(quoted diff) +2 -0
+    # Unrestricted inheritance from the caller.
+    allow $2 wine_t:process { noatsecure siginh rlimitinh };

I have no idea why this was added. I guess we can remove it and see if
it is rereported.