[Bug 786745] New: gnuchess only runs when logged in as root
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c0 Summary: gnuchess only runs when logged in as root Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: foolishewe@hotmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0 There appears to be some permissions or other issues with the gnuchess install, it aborts with the message: book_open(): can't open file "/usr/share/gnuchess/book.bin": Permission denied Reproducible: Always Steps to Reproduce: 1.log in as a user (not root) 2.start gnuchess (or something like xboard which has a gnuchess client) 3. Actual Results: gnuchess GNU Chess 6.0.1 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. book_open(): can't open file "/usr/share/gnuchess/book.bin": Permission denied However note as root we get a normal startup: sudo gnuchess GNU Chess 6.0.1 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. White (1) : Expected Results: gnu chess runs I think book.bin is the opening book, I'm not sure why gnuchess would need write permission to the opening book if I understand correctly. This may be an upstream problem, perhaps http://forums.freebsd.org/showthread.php?t=25092 is related. However, when I tried their suggested solution, I get no joy, instead I get the following: ls -lad /usr/share/gnuchess/book.bin -rw-r--r-- 1 root root 2885728 Jul 16 06:10 /usr/share/gnuchess/book.bin sudo chmod 644 /usr/share/gnuchess/book.bin gnuchess GNU Chess 6.0.1 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. book_open(): can't open file "/usr/share/gnuchess/book.bin": Permission denied -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c Marcus Meissner <meissner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner@suse.com AssignedTo|bnc-team-screening@forge.pr |jreidinger@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c1 Josef Reidinger <jreidinger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Josef Reidinger <jreidinger@suse.com> 2012-10-29 08:50:58 UTC --- Yes, I agree that it looks like upstream issue. We don't allow to write to static data in /usr/share ... it is againts LSB to have it there. I try to investigate why it want to open it with write permissions and patch it out if possible. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c2 --- Comment #2 from Foolish Ewe <foolishewe@hotmail.com> 2012-11-02 15:51:07 UTC --- Thanks Josef for looking into this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c3 Josef Reidinger <jreidinger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |foolishewe@hotmail.com --- Comment #3 from Josef Reidinger <jreidinger@suse.com> 2012-11-05 09:27:12 UTC --- Could you please try to update to version 6.0.2? I also try it on my pc where I have 6.0.2 and it works for me. If it still doesn't work for you, please provide strace: strace -o /tmp/gnuchess.strace -f gnuchess #strace is in /tmp/gnuchess.strace Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c4 --- Comment #4 from Josef Reidinger <jreidinger@suse.com> 2012-12-12 17:36:02 UTC --- ping -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c5 --- Comment #5 from Foolish Ewe <foolishewe@hotmail.com> 2012-12-21 15:12:50 UTC --- Josef: Sorry for the delay on this. Is there a repo with a rpm for 6.0.2 available, apparently my latest zypper up didn't update me to that version. rpm -q -i gnuchess Name : gnuchess Version : 6.0.1 Release : 2.1.2 Architecture: x86_64 Install Date: Sat 13 Oct 2012 01:48:17 AM EDT Group : Amusements/Games/Board/Chess Size : 3291137 License : GPL-2.0+ Signature : RSA/SHA256, Mon 16 Jul 2012 06:11:01 AM EDT, Key ID b88b2fd43dbdc284 Source RPM : gnuchess-6.0.1-2.1.2.src.rpm Build Date : Mon 16 Jul 2012 06:10:31 AM EDT Build Host : build27 Relocations : (not relocatable) Packager : http://bugs.opensuse.org Vendor : openSUSE URL : http://alpha.uhasselt.be/Research/Algebra/Toga/gnuchess-release/ Summary : GNU Chess Program Description : A worthy chess opponent that runs in text mode. Find an X11 interface in the xboard package. Distribution: openSUSE 12.2 zypper lr # | Alias | Name | Enabled | Refresh ---+---------------------------------------------------+---------------------------------------------------+---------+-------- 1 | Development_Miscellaneous_Languages_OpenSuse_12.2 | Development Miscellaneous Languages OpenSuse 12.2 | Yes | Yes 2 | Games_OpenSus | Games OpenSuse 12.2 | Yes | Yes 3 | Haskell_OpenSuse_12.2 | Haskell OpenSuse 12.2 | Yes | Yes 4 | IRC_Open | IRC OpenSUSE 12.2 | Yes | Yes 5 | Packman_Opensuse_12.2_(Jacobs-University_mirror) | Packman Opensuse 12.2 (Jacobs-University mirror) | Yes | Yes 6 | Science_OpenSUSE_12.2 | Science OpenSUSE 12.2 | Yes | Yes 7 | Server_Database_OpenSuse_12.2 | Server Database OpenSuse 12.2 | Yes | Yes 8 | devel:languages:scala | devel:languages:scala | Yes | Yes 9 | jenkins | jenkins | Yes | No 10 | openSUSE-12.2-1.6 | openSUSE-12.2-1.6 | No | No 11 | repo-debug | openSUSE-12.2-Debug | No | Yes 12 | repo-debug-update | openSUSE-12.2-Update-Debug | No | Yes 13 | repo-debug-update-non-oss | openSUSE-12.2-Update-Debug-Non-Oss | No | Yes 14 | repo-non-oss | openSUSE-12.2-Non-Oss | Yes | Yes 15 | repo-oss | openSUSE-12.2-Oss | Yes | Yes 16 | repo-source | openSUSE-12.2-Source | No | Yes 17 | repo-update | openSUSE-12.2-Update | Yes | Yes 18 | repo-update-non-oss | openSUSE-12.2-Update-Non-Oss | Yes | Yes sudo zypper lu root's password: Retrieving repository 'Games OpenSuse 12.2' metadata .....................................................................................................................................[done] Building repository 'Games OpenSuse 12.2' cache ..........................................................................................................................................[done] Loading repository data... Reading installed packages... No updates found. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c6 --- Comment #6 from Foolish Ewe <foolishewe@hotmail.com> 2012-12-21 15:25:47 UTC --- Created an attachment (id=518085) --> (http://bugzilla.novell.com/attachment.cgi?id=518085) gnuchess 6.0.2 log, shows correct startup Josef: It is indeed fixed in 6.0.2. I found the rpm on line, apparently a version was in the factory. It may be appropriate to mark this issue as resolved. Thank you very much. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c7 Foolish Ewe <foolishewe@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #518085|0 |1 is obsolete| | Status|NEEDINFO |ASSIGNED InfoProvider|foolishewe@hotmail.com | --- Comment #7 from Foolish Ewe <foolishewe@hotmail.com> 2012-12-21 15:28:34 UTC --- Created an attachment (id=518086) --> (http://bugzilla.novell.com/attachment.cgi?id=518086) reattached, forgot to clear needInfo status when I first did it. Josef: Sorry about attaching this twice, but I forgot to clear the needInfo status. It is indeed fixed in 6.0.2. I found the rpm on line, apparently a version was in the factory. It may be appropriate to mark this issue as resolved. Thank you very much. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c8 Michael Catanzaro <mike.catanzaro@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |maintenance@opensuse.org --- Comment #8 from Michael Catanzaro <mike.catanzaro@gmail.com> 2013-04-02 15:33:59 UTC --- Hm, this still needs to be fixed for 12.2 as the program is unusable. Mr. Maintenance, can we just do an update to 6.0.2 (or 6.0.3)? Version 6.0.3 (March 2013) - Run autoreconf and configure based on autoconf 2.69 and automake 1.13 to get rid of these vulnerabilies: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4029 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-3386 - Update configure.ac to automake 1.13. - If in manual mode, keep it after undo. - Remove some unused code. Version 6.0.2 (March 2012) - New option --addbook to compile a book. - Maximum file name length of EPD files extended to 127 characters. - Book file allowed to be read only unless the BookLearn option is set. 12.3 is currently at 6.0.2 which isn't affected by this bug; since all the 6.0.3 changes only affect the build, it seems fine to leave it be in 12.3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c9 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|maintenance@opensuse.org | --- Comment #9 from Benjamin Brunner <bbrunner@suse.com> 2013-04-02 17:47:53 CEST --- Michael, could you create a maintenancerequest with the 6.0.2 package, please? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c10 Michael Catanzaro <mike.catanzaro@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mike.catanzaro@gmail.com AssignedTo|jreidinger@suse.com |mike.catanzaro@gmail.com --- Comment #10 from Michael Catanzaro <mike.catanzaro@gmail.com> 2013-04-15 01:33:03 UTC --- Whoops, sorry for the delay. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c11 --- Comment #11 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-04-15 05:00:08 CEST --- This is an autogenerated message for OBS integration: This bug (786745) was mentioned in https://build.opensuse.org/request/show/164013 Maintenance / -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c12 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #12 from Benjamin Brunner <bbrunner@suse.com> 2013-04-22 16:54:27 CEST --- Update released for openSUSE 12.2. Resolved fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786745 https://bugzilla.novell.com/show_bug.cgi?id=786745#c13 --- Comment #13 from Swamp Workflow Management <swamp@suse.de> 2013-05-02 08:06:09 UTC --- openSUSE-RU-2013:0734-1: An update that has one recommended fix can now be installed. Category: recommended (low) Bug References: 786745 CVE References: Sources used: openSUSE 12.2 (src): gnuchess-6.0.2-2.4.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com