By "we" you mean Gentoo:Devs.new_to_non_X86 wrote:PaulBredbury wrote:the bug is obviously in the nethack codenethack code or not the way gentoo handle games must be fixedwolf31o2 wrote:This *is* 100% a bug in nethack
but we can temporaly patch nethack.while working on resloving this issue
True, but that requires extra work anyway. Without resorting to drastic measures like that, the restricted games policy doesn't actually stop anything.mrsteven wrote:...which you can avoid by mounting /home /tmp /var/tmp with the noexec option.dashkal wrote:Rather pointless anyway considering any user can compile/install their own games to ${HOME} anyway...
Code: Select all
#!/bin/sh
chmod 0755 /usr/games
chmod 0755 /usr/games/*
chmod 2751 /usr/games/bin/*

It is if you're on a multiuser system where you don't have su access. In that case it's important that you don't cheat, because your games interact with other people's via the bones files and high-score table.Archangel1 wrote:heck, if I really wanted to cheat, being required to su isn't going to stop me.
This seems like a messy solution. I know the system can handle lots of users, but for a home desktop this doesn't appeal to me. I've been using gentoo for too long to remember how other distros handle games, but I'm betting they do something cleaner than creating lots of users.srm wrote:regarding bugs.gentoo (http://bugs.gentoo.org/show_bug.cgi?id=125902)
there is discussion about creating a new user/group for every game you will install.
at the first look, i think i would dislike somth. like that, for i feel like this would be kinda messy...on the other hand, mysql also needed new user(s) and i don't think i will pull in all games and therefor hav 20.000 harcore members on my box
so, let's see how this goes...nethack still hardmasked...*waiting for the summertime*
bye

Yeah that's obviously true - my point was just that if it doesn't work in all cases (and I bet most of the people playing NetHack are doing it on a machine they have the ability to su on), then what's the point in worrying? They're trying to use system permissions to enforce an inability to "cheat", but that only actually works for some of their users, not all.dleverton wrote:It is if you're on a multiuser system where you don't have su access. In that case it's important that you don't cheat, because your games interact with other people's via the bones files and high-score table.Archangel1 wrote:heck, if I really wanted to cheat, being required to su isn't going to stop me.
That's not the point. No-one cares if you cheat on your own private system - "you're only cheating yourself" and all that - and since you have the source there are innumerable ways you can cheat anyway. The restriction is to stop you from cheating in ways that will affect other people. You can still compile your own hacked version in your home directory, but then that copy can't (or shouldn't be able to, with the "standard" permissions) modify the system-wide files. (It still doesn't protect users from a mischievous admin, but if you don't trust your admin you're screwed anyway.)Archangel1 wrote:Yeah that's obviously true - my point was just that if it doesn't work in all cases (and I bet most of the people playing NetHack are doing it on a machine they have the ability to su on), then what's the point in worrying? They're trying to use system permissions to enforce an inability to "cheat", but that only actually works for some of their users, not all.