Awesome, You and William Ahern really showed me that is "security mindset". I simply didn't think about some of this points. Thanks for that.
Can I propose as my "last" attempt on this topic to add more clarification "how to fix it by user on his machine" with this patch 2023-09-16 5:14 GMT+03:00, Theo de Raadt <dera...@openbsd.org>: > > revision 1.18 > date: 2015/11/24 03:10:10; author: deraadt; state: Exp; lines: +1 -2; > commitid: NZfzN0SfUUHBE4HF; > In 1995, all of the games were setuid games. At end of 1996, I took them > all > to setgid games, and we started wittling them down. Nearly 10 years later > I > am removing all setgid from the games. If any of these have score files > they > are now broken, and I hope various folk repair them. I have argued for > years > (and received pushback...) that the score file features must be removed, or > rewritten to use private files, because setgid is the wrong tool. > ok tedu > > We will not bring back setgid-supported scorefiles. > > > S V <ner...@gmail.com> wrote: > >> Why don't drop it in this case? >> >> сб, 16 сент. 2023 г., 05:03 Theo de Raadt <dera...@openbsd.org>: >> >> Nope, 'setgid games' is intentionally dead. >> >> We will not be bringing it back. >> >> S V <ner...@gmail.com> wrote: >> >> > It is pretty to not have this game running, but included so >> > >> > I just added chmod ugo+rw "game files" after chown root:games in >> Makefile >> > >> > and add notice about it in man file >> > >> > It is unbroke game and place it to playable state. >> > >> > Thanks in advance! >> > >> > -- Slava Voronzoff >> > -- Nerfur Dragon -==(UDIC)==-
Index: games/phantasia/misc.c =================================================================== RCS file: /cvs/src/games/phantasia/misc.c,v retrieving revision 1.21 diff -u -p -r1.21 misc.c --- games/phantasia/misc.c 10 Jan 2016 13:35:10 -0000 1.21 +++ games/phantasia/misc.c 18 Sep 2023 20:37:16 -0000 @@ -1412,6 +1412,7 @@ error(char *whichfile) warn("%s", whichfile); fprintf(stderr, "Please run 'setup' to determine the problem.\n"); + fprintf(stderr, "Also note, that you can add your user to 'games' group.\n"); exit(1); } /**/ Index: games/phantasia/phantasia.6 =================================================================== RCS file: /cvs/src/games/phantasia/phantasia.6,v retrieving revision 1.3 diff -u -p -r1.3 phantasia.6 --- games/phantasia/phantasia.6 11 Jul 2022 03:11:49 -0000 1.3 +++ games/phantasia/phantasia.6 18 Sep 2023 20:37:16 -0000 @@ -13,9 +13,11 @@ .Sh DESCRIPTION .Bf -symbolic .Nm -is currently unusable because it relies on +is currently partially broken because it relies on .Xr setgid 2 -to allow multiple users read and write access to the same files. +to allow multiple users read and write access to the same files. +Please add your user to group 'games' to allow access to needed files, +if you really want to play. .Ef .Pp .Nm