Re: gtk+-1.2.10



As mentioned in the message, the game itself is owned by games (the
user) and bin (the group).  The permissions on the executable are :
rwxr-xr-x.  (BTW - this is the QT-hack variant)

I won't pretend to know what's going on inside, but I know that the
saved files are owned games:user (user being the primary group of the
user)

Unix NetHack Version 3.3.1 compiled with QT support.

After pulling open the source code and taking a look, nethack does
actually setgid/setuid on a file save:

nethack-3.3.1/src/files.c: line 758-759
        (void) setgid(getgid());
        (void) setuid(getuid());

The game itself doesn't run setuid/setgid so I think this would work
under GTK since GTKs issue is only with having the permissions
setuid/setgid.


Leeman

----- Original Message -----
From: "J. Ali Harlow" <gtk-list avrc city ac uk>
Date: Wednesday, March 14, 2001 9:38 am
Subject: Re: gtk+-1.2.10

> On Wed, 14 Mar 2001, strout etcsupport com wrote:
> > I'd like to point out that in the case of nethack, this is already
> > handled by having nethack owned by games:bin.  The save files end up
> > being owned by games and grouped by the player that invoked nethack.
> > 
> > In a situation where you have unique groups for each user, this 
> makes it
> > impossible for any other user to read/write someone elses player 
> files.> 
> > So really, in the case of gnomehack, I fail to see why you need 
> setgid> or setuid.
> 
> Pardon me if I'm being stupid, but how can the save files end up 
> being owned by
> games if something, somewhere isn't setuid games (or root, I suppose)?
> 
> I don't know which distribution you are referring to, but I'm not 
> aware of any
> versions of NetHack (including GnomeHack) which currently have a 
> setguid helper.
> 
> -- 
> Ali Harlow                              Email: ali avrc city ac uk
> Research programmer                     Tel:   (020) 7477 8000 X 4348
> Applied Vision Research Centre          Intl: +44 20 7477 8000 X 4348
> City University                         Fax:   (020) 7505 5515
> London                                  Intl: +44 20 7505 5515
> 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]