]> git.eshelyaron.com Git - emacs.git/commit
Allow update-game-score to run sgid instead of suid.
authorUlrich Müller <ulm@gentoo.org>
Fri, 16 Jan 2015 08:25:25 +0000 (09:25 +0100)
committerUlrich Müller <ulm@gentoo.org>
Wed, 21 Jan 2015 20:33:17 +0000 (21:33 +0100)
commit20f66485526b69eb26f2e70bd835a5e1333559d5
tree2571c73468acb238fbae55f3655e757ff284319f
parent59e7fe6d0c6988687b53c279941c9ebb3f887eed
Allow update-game-score to run sgid instead of suid.

* configure.ac (gamegroup): New AC_SUBST.
(--with-gameuser): Allow to specify a group instead of a user.
In the default case, check at configure time if a 'games' user
exists.
* lib-src/update-game-score.c: Allow the program to run sgid
instead of suid, in order to match common practice for most games.
(main): Check if we are running sgid.  Pass appropriate file
permission bits to 'write_scores'.
(write_scores): New 'mode' argument, instead of hardcoding 0644.
(get_prefix): Update error message.
* lib-src/Makefile.in (gamegroup): New variable, set by configure.
($(DESTDIR)${archlibdir}): Handle both suid or sgid when
installing the 'update-game-score' program.
* lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score):
Allow the 'update-game-score' helper program to run suid or sgid.
ChangeLog
configure.ac
etc/NEWS
lib-src/ChangeLog
lib-src/Makefile.in
lib-src/update-game-score.c
lisp/ChangeLog
lisp/play/gamegrid.el