diff options
| author | Ulrich Müller | 2015-02-08 21:00:49 +0100 |
|---|---|---|
| committer | Ulrich Müller | 2015-02-08 21:09:22 +0100 |
| commit | dbde138155118344b33dfd2db95f688a24a42fec (patch) | |
| tree | 0a23eda7c98b68988683576a6fd6a32954b564f4 | |
| parent | 19ee7875db8b154a3ba49a98da2d3c24b03fff1e (diff) | |
| download | emacs-dbde138155118344b33dfd2db95f688a24a42fec.tar.gz emacs-dbde138155118344b33dfd2db95f688a24a42fec.zip | |
configure --with-gameuser now defaults to games group.
* configure.ac (--with-gameuser): Default to 'games' group instead
of 'games' user.
* lisp/play/gamegrid.el: Update comment to reflect that the
'update-game-score' helper program is now setgid by default.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | configure.ac | 13 | ||||
| -rw-r--r-- | etc/NEWS | 2 | ||||
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/play/gamegrid.el | 20 |
5 files changed, 25 insertions, 20 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-02-08 Ulrich Müller <ulm@gentoo.org> | ||
| 2 | |||
| 3 | * configure.ac (--with-gameuser): Default to 'games' group instead | ||
| 4 | of 'games' user. | ||
| 5 | |||
| 1 | 2015-02-04 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2015-02-04 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | * .gitattributes: Ignore blanks at EOL in texinfo.tex. | 8 | * .gitattributes: Ignore blanks at EOL in texinfo.tex. |
diff --git a/configure.ac b/configure.ac index 5776e4ef8ed..192634bdc45 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -397,17 +397,12 @@ AC_ARG_WITH(gameuser,dnl | |||
| 397 | An argument prefixed by ':' specifies a group instead.])]) | 397 | An argument prefixed by ':' specifies a group instead.])]) |
| 398 | gameuser= | 398 | gameuser= |
| 399 | gamegroup= | 399 | gamegroup= |
| 400 | # We don't test if we can actually chown/chgrp here, because configure | ||
| 401 | # may run without root privileges. lib-src/Makefile.in will handle | ||
| 402 | # any errors due to missing user/group gracefully. | ||
| 400 | case ${with_gameuser} in | 403 | case ${with_gameuser} in |
| 401 | no) ;; | 404 | no) ;; |
| 402 | "" | yes) | 405 | "" | yes) gamegroup=games ;; |
| 403 | AC_MSG_CHECKING([whether a 'games' user exists]) | ||
| 404 | if id -u games >/dev/null 2>&1; then | ||
| 405 | AC_MSG_RESULT([yes]) | ||
| 406 | gameuser=games | ||
| 407 | else | ||
| 408 | AC_MSG_RESULT([no]) | ||
| 409 | fi | ||
| 410 | ;; | ||
| 411 | :*) gamegroup=`echo "${with_gameuser}" | sed -e "s/://"` ;; | 406 | :*) gamegroup=`echo "${with_gameuser}" | sed -e "s/://"` ;; |
| 412 | *) gameuser=${with_gameuser} ;; | 407 | *) gameuser=${with_gameuser} ;; |
| 413 | esac | 408 | esac |
| @@ -53,7 +53,7 @@ build with 'make V=1'. | |||
| 53 | group instead of a user if its argument is prefixed by ':' (a colon). | 53 | group instead of a user if its argument is prefixed by ':' (a colon). |
| 54 | This will cause the game score files in ${localstatedir}/games/emacs | 54 | This will cause the game score files in ${localstatedir}/games/emacs |
| 55 | to be owned by that group, and the helper program for updating them to | 55 | to be owned by that group, and the helper program for updating them to |
| 56 | be installed setgid. | 56 | be installed setgid. The option now defaults to the 'games' group. |
| 57 | 57 | ||
| 58 | --- | 58 | --- |
| 59 | ** The `grep-changelog' script (and its manual page) are no longer included. | 59 | ** The `grep-changelog' script (and its manual page) are no longer included. |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d95c0e6d607..8848fe6d904 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-02-08 Ulrich Müller <ulm@gentoo.org> | ||
| 2 | |||
| 3 | * play/gamegrid.el: Update comment to reflect that the | ||
| 4 | 'update-game-score' helper program is now setgid by default. | ||
| 5 | |||
| 1 | 2015-02-08 David Kastrup <dak@gnu.org> | 6 | 2015-02-08 David Kastrup <dak@gnu.org> |
| 2 | 7 | ||
| 3 | * subr.el (apply-partially): Use lexical binding here. | 8 | * subr.el (apply-partially): Use lexical binding here. |
diff --git a/lisp/play/gamegrid.el b/lisp/play/gamegrid.el index b4c3c594731..df06d5a6ab2 100644 --- a/lisp/play/gamegrid.el +++ b/lisp/play/gamegrid.el | |||
| @@ -462,22 +462,22 @@ FILE is created there." | |||
| 462 | ;; `gamegrid-add-score' was supposed to be used in the past and | 462 | ;; `gamegrid-add-score' was supposed to be used in the past and |
| 463 | ;; is covered here for backward-compatibility. | 463 | ;; is covered here for backward-compatibility. |
| 464 | ;; | 464 | ;; |
| 465 | ;; 2. The helper program "update-game-score" is setuid and the | 465 | ;; 2. The helper program "update-game-score" is setgid or setuid |
| 466 | ;; file FILE does already exist in a system wide shared game | 466 | ;; and the file FILE does already exist in a system wide shared |
| 467 | ;; directory. This should be the normal case on POSIX systems, | 467 | ;; game directory. This should be the normal case on POSIX |
| 468 | ;; if the game was installed system wide. Use | 468 | ;; systems, if the game was installed system wide. Use |
| 469 | ;; "update-game-score" to add the score to the file in the | 469 | ;; "update-game-score" to add the score to the file in the |
| 470 | ;; shared game directory. | 470 | ;; shared game directory. |
| 471 | ;; | 471 | ;; |
| 472 | ;; 3. "update-game-score" is setuid, but the file FILE does *not* | 472 | ;; 3. "update-game-score" is setgid/setuid, but the file FILE does |
| 473 | ;; exist in the system wide shared game directory. Use | 473 | ;; *not* exist in the system wide shared game directory. Use |
| 474 | ;; `gamegrid-add-score-insecure' to create--if necessary--and | 474 | ;; `gamegrid-add-score-insecure' to create--if necessary--and |
| 475 | ;; update FILE. This is for the case that a user has installed | 475 | ;; update FILE. This is for the case that a user has installed |
| 476 | ;; a game on her own. | 476 | ;; a game on her own. |
| 477 | ;; | 477 | ;; |
| 478 | ;; 4. "update-game-score" is not setuid. Use it to create/update | 478 | ;; 4. "update-game-score" is not setgid/setuid. Use it to |
| 479 | ;; FILE in the user's home directory. There is presumably no | 479 | ;; create/update FILE in the user's home directory. There is |
| 480 | ;; shared game directory. | 480 | ;; presumably no shared game directory. |
| 481 | 481 | ||
| 482 | (defvar gamegrid-shared-game-dir) | 482 | (defvar gamegrid-shared-game-dir) |
| 483 | 483 | ||
| @@ -491,7 +491,7 @@ FILE is created there." | |||
| 491 | (gamegrid-add-score-insecure file score)) | 491 | (gamegrid-add-score-insecure file score)) |
| 492 | ((and gamegrid-shared-game-dir | 492 | ((and gamegrid-shared-game-dir |
| 493 | (file-exists-p (expand-file-name file shared-game-score-directory))) | 493 | (file-exists-p (expand-file-name file shared-game-score-directory))) |
| 494 | ;; Use the setuid (or setgid) "update-game-score" program | 494 | ;; Use the setgid (or setuid) "update-game-score" program |
| 495 | ;; to update a system-wide score file. | 495 | ;; to update a system-wide score file. |
| 496 | (gamegrid-add-score-with-update-game-score-1 file | 496 | (gamegrid-add-score-with-update-game-score-1 file |
| 497 | (expand-file-name file shared-game-score-directory) score)) | 497 | (expand-file-name file shared-game-score-directory) score)) |