On Mon, 2002-07-08 at 06:03, Owen Taylor wrote: > > Ross Burton <ross burtonini com> writes: > > > Hi, > > > > When gnome-games installs the executables to disk the permissions are > > ---x--s--x with user:group root:games. > > > > I can see why the group is 'games' and the suid bit is set (saving of > > high scores), but why does world only have execute access? Was there a > > good reason for this? > > > > It makes debugging a PITA, as gdb cannot open the executable.. :( > > Wouldn't help that much to make it readable; gdb can't attach to a > setuid application (for obvious reasons) > > Just change the permissions before debugging or debug as root. Or debug from the source directory as a normal user. (as long as it doesn't involve the scores, of course) > (No comment on why they aren't readable.) Because the scores files are system-wide and need (yeah, right) to be writable by all the users of the system. Hence the suid. And I think that they're not readable for security reasons. Cheers -- /Bastien Nocera http://hadess.net
Attachment:
signature.asc
Description: This is a digitally signed message part