Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 369167 - app-emulation/wine: allow only users in the wine group to use wine
Summary: app-emulation/wine: allow only users in the wine group to use wine
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-29 10:54 UTC by Andrew Savchenko
Modified: 2011-05-31 12:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
wine-1.3.21.ebuild.patch (wine-1.3.21.ebuild.patch,1.01 KB, patch)
2011-05-29 10:55 UTC, Andrew Savchenko
Details | Diff
wine-1.3.21.ebuild.patch (wine-1.3.21.ebuild.patch,1.21 KB, patch)
2011-05-29 17:45 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2011-05-29 10:54:06 UTC
Hello,

currently wine is installed so, that any user on a system may use it. Taking into account that running windows applications involves additional severe risks, it would be wise to limit wine usage to only trusted/isolated users per root's decision.

Also official wine FAQ recommends to use at least separate user to run wine applications:
http://wiki.winehq.org/FAQ#head-3cb8f054b33a63be30f98a1b6225d74e305a0459
"If you're running applications that you suspect to be infected, run them as their own Linux user or in a virtual machine."

Of course, using SELinux and/or virtual machine will improve security even more, but user isolation is the first step, it costs nothing and will help at least partially.

I propose to add wine group, to change wine binary/library group to wine, and to set g-w,o-rwx permissions. Thus users willing to change nothing may just add themselves to the wine group, otherwise they are free to create separate user and add it to the wine group. This approach will also ease root's work on multiuser systems with wine is needed to be used, but restricted for several users.
Comment 1 Andrew Savchenko gentoo-dev 2011-05-29 10:55:12 UTC
Created attachment 275013 [details, diff]
wine-1.3.21.ebuild.patch

Patch for the latest wine ebuild with changes proposed above.
Comment 2 Andrew Savchenko gentoo-dev 2011-05-29 17:45:16 UTC
Created attachment 275035 [details, diff]
wine-1.3.21.ebuild.patch

Previous version produced a lot of chmod/chown errors because path pattern was expanded in root filesystem before being applied to install root. This version generates file listing and uses it explicitely.
Comment 3 Wormo (RETIRED) gentoo-dev 2011-05-31 05:57:07 UTC
Thanks for submitting your enhancement, assigning to wine maintainers to take a look.
Comment 4 SpanKY gentoo-dev 2011-05-31 12:46:05 UTC
that recommendation is conditional: "... you suspect to be infected, ..."

i dont see anyone else doing this, so for now, i'll decline making this change