|
osdir.com mailing list archive F.A.Q. -since 2001! |
|
|
|
Subject: [Wine] Disable networking - msg#00095List: wine-users
by Date: Prev Next Date Index by Thread: Prev Next Thread Index
I saw the notes about blocking networking on the advanced wine user information
wiki (http://wiki.jswindle.com/index.php/Advanced_Wine_User_Information#Blocking_Network_access_to_Software_running_on_Wine) and I thought I'd try to come up with something a bit easier than running the application as a particular user: (add the "nonet" group) Code: # groupadd nonet (setup the iptables rule) Code: # iptables -I OUTPUT -m owner --gid-owner nonet -j REJECT --reject-with icmp-net-unreachable (create nonet.c) Code: #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <grp.h> #include <unistd.h> #ifndef _NONET_GROUP #define _NONET_GROUP "nonet" #endif int main(int argc, char *argv[]) { struct group *gr; if (argc <= 1) { fprintf(stderr, "Usage: %s command [ arg ... ]\n", argv[0]); exit(1); } if (!(gr = getgrnam(_NONET_GROUP))) { perror("getgrnam"); exit(1); } if (setgid(gr->gr_gid) == -1) { perror("setgid"); exit(1); } if (setuid(getuid()) == -1) { perror("setuid"); exit(1); } argv++; argc--; if (execvp(*argv, argv) == -1) { perror("execvp"); exit(1); } exit(0); /* not reached */ } (compile and make setuid, limit execution to staff group) Code: # gcc -o nonet nonet.c ; chown root:staff nonet ; chmod 4750 nonet (run application) Code: # nonet wine some.exe It seems to work alright.. I can nonet bash and not ping or connect anywhere and the same goes for Steam. Since Steam is the only game(-related application) I need networking for, I made this the default in my wine wrapper script. Any thoughts?
Thread at a glance:
Previous Message by Date:[Wine] Re: Help fixing fixme:d3d9:Direct3DShaderValidatorCreate9 stubWhat version of fglrx driver you are using ? I'm used xorg-driver-fglrx_1%3a7.1.0-8-3+2.6.24.18-24.1_i386.deb and no problem with use d3d25.dll like native. I'm also use the Ubuntu 8.04 LTS and Video ATI Mobility Radeon Next Message by Date:[Wine] Re: Help fixing fixme:d3d9:Direct3DShaderValidatorCreate9 stubI'm using the latest version 9.7 I believe, although I'm not 100% sure how to check the version and google is failing me. I try to keep my system updated as best as possible. I googled for your version but could not find it. Do you have a link to the deb? If so i'll try it. Thanks -Bob Previous Message by Thread:[Wine] Help fixing fixme:d3d9:Direct3DShaderValidatorCreate9 stubI'm trying to get Runes of Magic working with WINE 1.1.25 (.26 is supposed to have problems but supposedly this works in 1.1.25) I have an ATI card with the FGLRX driver and I'm getting this error fixme:d3d9:Direct3DShaderValidatorCreate9 stub when loading the game. The game loads and has a black screen only, but I can hear sound. I've tried playing around with all the video settins in wine (turning off hardware accel etc...) and nothing has worked. I've also used winetricks to install the dxd3 (I think that's what's it's called i'm new to Ubuntu) to see if that made a difference, it didn't. If anyone has any ideas I'd greatly appreciate it. Thanks -Bob Next Message by Thread:[Wine] problems with windows-lnk-fileshello, on Windows XP I created some directories and files - and some links (.lnk-files) to files and directories and saved them on a ntfs-disk. Now I want to use it in Debian (testing, Gnome) but the links won't work. When working in Nautilus 2.26..3 there just a little window appears telling me, that there is no application installed to view this file. If I want to "open with" WINE, then just nothing is happening (at least nothing I can see :-) ). So: No jump to the right directories, no opening of linked files. :-( Please give me some hints, what to do. Greetings zuhans
blog comments powered by Disqus
|
|