Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99034 - In bsd-games-non-free, rogue's /var/games/rogue.scores has poor permissions and is overwritten.
Summary: In bsd-games-non-free, rogue's /var/games/rogue.scores has poor permissions a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-14 12:37 UTC by Phil White
Modified: 2005-07-14 21:05 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil White 2005-07-14 12:37:54 UTC
Rogue (in games-misc/bsd-games-non-free) keeps its high scores in
/var/games/rogue.scores.  Permissions on this file out of the ebuild are 750
root:games.  Permissions on rogue are 0750.  This does not allow rogue to save
to its high scores file.

Also, this file seems to evade the etc-update scheme, so every rebuild/update of
bsd-games-non-free wipes it out and starts anew.  This shouldn't happen either.

I'm listing reproducibility as sometimes because I've only done this a couple of
times and informally.

Reproducible: Sometimes
Steps to Reproduce:
1. emerge bsd-games-non-free
2. play rogue and die or win.
3. Note error message saying it can't write to /var/games/rogue.scores
4. Change permissions to allow /var/games/rogue.scores to be written to.
5. Play again and die or win.
6. Gloat about your high score.
7. re-emerge or update bsd-games-non-free
8. Weep as your best score ever disappears into the bit bucket.

Actual Results:  
see steps 3 and 8.

Expected Results:  
It should have the correct permissions out of the emerge process and not get
wiped out in update.

# emerge info

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11.10 i686)
=================================================================
System uname: 2.6.11.10 i686 Pentium III (Katmai)
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.4 (#1, Mar 10 2005, 18:18:11)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.6.3, 1.9.5, 1.7.9-r1, 1.4_p6, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=pentium3 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/tomcat4 /etc/tomcat5 /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/games
/var/qmail/alias /var/qmail/control /var/www"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=pentium3 -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoclean autoconfig buildpkg ccache distlocks sandbox
sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt cscope cups
curl directfb emboss encode esd fam foomaticdb fortran freetds gdbm gif gnome
gpm gtk gtk2 imagemagick imlib ipv6 java jpeg junit kde libg++ libwww mad mikmod
motif mozilla mp3 mpeg mysql nas ncurses nls odbc ogg oggvorbis opengl oss pam
pdflib perl png python qt quicktime readline ruby samba sdl slang snmp spell ssl
svga tcltk tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-07-14 15:50:18 UTC
ok, i can verify the permissions are screwed ... we fix them in src_install but
then turn around and clobber all of the changes with `prepgamesdirs`

however, my score file does not get erased when i re-emerge the package
# cat /var/games/rogue.scores
cat: /var/games/rogue.scores: No such file or directory
# emerge bsd-games-non-free
<snip>
# echo asdf > /var/games/rogue.scores
# emerge bsd-games-non-free
<snip>
# cat /var/games/rogue.scores
asdf
Comment 2 SpanKY gentoo-dev 2005-07-14 21:05:27 UTC
ive fixed all the permissions issues now