[gentoo-commits] proj/openrc:0.38.x commit in: src/rc/
commit: 93c8cbe68428dcf7823a6483d30698ba001f4271 Author: Zac Medico gmail com> AuthorDate: Sat Oct 13 19:32:45 2018 + Commit: William Hubbs gentoo org> CommitDate: Fri Oct 19 21:01:07 2018 + URL:https://gitweb.gentoo.org/proj/openrc.git/commit/?id=93c8cbe6 supervise-daemon: fix respawn_max off by one Fix the comparison between respawn_count and respawn_max so that respawn_max = 1 will allow for one respawn. Since respawn_count is incremented before the comparison, use a 'greater than' comparison so that respawn will be triggered when respawn_count is equal to respawn_max. Fixes: https://github.com/OpenRC/openrc/issues/247 Fixes: https://github.com/OpenRC/openrc/issues/248 src/rc/supervise-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/supervise-daemon.c b/src/rc/supervise-daemon.c index 8d56b8d4..e5e817d1 100644 --- a/src/rc/supervise-daemon.c +++ b/src/rc/supervise-daemon.c @@ -507,7 +507,7 @@ static void supervisor(char *exec, char **argv) first_spawn = 0; } else respawn_count++; - if (respawn_count >= respawn_max) { + if (respawn_count > respawn_max) { syslog(LOG_WARNING, "respawned \"%s\" too many times, exiting", exec); exiting = true;
[gentoo-commits] proj/openrc:0.38.x commit in: /
commit: 60f42c415d235a49dd461f610d5f7f578e926c35 Author: William Hubbs gmail com> AuthorDate: Fri Oct 19 21:03:36 2018 + Commit: William Hubbs gentoo org> CommitDate: Fri Oct 19 21:03:36 2018 + URL:https://gitweb.gentoo.org/proj/openrc.git/commit/?id=60f42c41 Update ChangeLog ChangeLog | 393 +- 1 file changed, 29 insertions(+), 364 deletions(-) diff --git a/ChangeLog b/ChangeLog index e0bd4ae0..92017e07 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,31 @@ -commit ed6804200401861aa0b52f0feccb750aa496d34e +commit 93c8cbe68428dcf7823a6483d30698ba001f4271 +Author: Zac Medico +Commit: William Hubbs + +supervise-daemon: fix respawn_max off by one + +Fix the comparison between respawn_count and respawn_max so that +respawn_max = 1 will allow for one respawn. Since respawn_count is +incremented before the comparison, use a 'greater than' comparison +so that respawn will be triggered when respawn_count is equal to +respawn_max. + +Fixes: https://github.com/OpenRC/openrc/issues/247 +Fixes: https://github.com/OpenRC/openrc/issues/248 + +commit 386bdf66f9622b6a86847ff678077c5c6456d74e +Author: William Hubbs +Commit: William Hubbs + +version 0.38.3 + +commit 81ab30c51dba9bfac71dd36c65e96bc1e3e5f2ae +Author: William Hubbs +Commit: William Hubbs + +Update ChangeLog + +commit d05c8c2159a9cbcf9286adbd6cbc3b0d5d2a3b43 Author: Zac Medico Commit: William Hubbs @@ -8,6 +35,7 @@ Commit: William Hubbs with grsecurity kernels. Fixes: 37e29442721a ("librc: Add check for crashed state") +This fixes #237 commit 7850e12071891321f6564979e4e574eb775bf102 Author: William Hubbs @@ -1308,366 +1336,3 @@ Commit: William Hubbs program and adding --reexec support - factor the supervisor into its own function - fix test for whether we are already running - -commit 35b1996704f6635bb29ea3604410e133209e6432 -Author: William Hubbs -Commit: William Hubbs - -supervise-daemon: elevate some log messages to warnings - -Prior to this change, we were logging unexpected terminations of daemons -we were supervising at the info level. This change moves the logs to -warnings. - -commit 3c8e7ed255edb8df0d548d6ce514544d5422cbf0 -Author: William Hubbs -Commit: William Hubbs - -version 0.34 - -commit acaed1f910a2a00fdd5b6aeab752c552075a7292 -Author: William Hubbs -Commit: William Hubbs - -Update ChangeLog - -commit 91109e31d81ecd48f5690ad6f63103fca545dec7 -Author: William Hubbs -Commit: William Hubbs - -update news - -commit 2b6eeea01d1c64d58929788f4bfa0758393885bf -Author: William Hubbs -Commit: William Hubbs - -man: remove service(8) man page - -commit a15de23e5713d840d871c526b46050983dc6ea1e -Author: William Hubbs -Commit: William Hubbs - -typo fix - -commit efa9ba485d9328f780f3e60dc18339c75974c6c6 -Author: William Hubbs -Commit: William Hubbs - -init.d/sysfs.in: fix reference to RC_LIBEXECDIR - -The sysfs init script referred to @LIBEXECDIR@ before this change, but -it is better to refer to RC_LIBEXECDIR so that we get rid of a sed -substitution. - -commit d4ddd72701ff5533a1ba07b1da60806859c63d88 -Author: Chris Cromer -Commit: William Hubbs - -add option to make agetty startup quiet - -This fixes #150 - -commit 1e9af2cd421423404ffe1491bd35af76c2885f1f -Author: William Hubbs -Commit: William Hubbs - -fix compiler warning - -commit 3c05db74f6e733890e9035c183a774db3d512512 -Author: William Hubbs -Commit: William Hubbs - -remove service binary - -The service binary was just a synonym for rc-service, so use rc-service -instead of service. If you want a "service" binary, it should be -something that can determine which service manager you are running and -run the appropriate service manager commands. - -commit edc54b03770d5f58d1a4969d06c28660003dfb04 -Author: William Hubbs -Commit: William Hubbs - -version 0.33 - -commit 8e53a3fa8a33fb714064ddbe38bff2213fcf6837 -Author: William Hubbs -Commit: William Hubbs - -Update ChangeLog - -commit 7f3b4139e3a96a15b0fb473b44f422e903e9 -Author: William Hubbs -Commit: William Hubbs - -use printf consistently in cgroups handling - -This makes the cgroups handling consistent between cgroups v1 and v2. -Also, it fixes #167. - -commit 1ccba056584ee1a8e09fb1d5eebd988b47912c06 -Author: William Hubbs -Commit: William Hubbs - -sh/rc-functions.sh: add need_if_exists convenience function - -commit c46adf14343df3a74aef7e4ae5be175ae5fa7a01 -Author: William Hubbs -Commit: William Hubbs - -man/openrc-run.8: Clarify the explanation of the need dependency - -commit 1cac8b080c16f9aab19c7a3ae1ca155c20dfa14d -Author: William Hubbs -Commit: William Hubbs - -ignore sigchld when shutting down the supervised process - -We need to do this to skip the zombie state for the child
[gentoo-commits] proj/openrc:0.38.x commit in: /
commit: 386bdf66f9622b6a86847ff678077c5c6456d74e Author: William Hubbs gmail com> AuthorDate: Fri Oct 19 20:58:07 2018 + Commit: William Hubbs gentoo org> CommitDate: Fri Oct 19 20:58:07 2018 + URL:https://gitweb.gentoo.org/proj/openrc.git/commit/?id=386bdf66 version 0.38.3 Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.inc b/Makefile.inc index df2f462f..aef7655b 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -1,3 +1,3 @@ NAME= openrc -VERSION= 0.38.2 +VERSION= 0.38.3 PKG= ${NAME}-${VERSION}
[gentoo-commits] proj/openrc:0.38.x commit in: src/librc/
commit: d05c8c2159a9cbcf9286adbd6cbc3b0d5d2a3b43 Author: Zac Medico gmail com> AuthorDate: Mon Aug 6 21:50:41 2018 + Commit: William Hubbs gentoo org> CommitDate: Mon Aug 6 22:51:27 2018 + URL:https://gitweb.gentoo.org/proj/openrc.git/commit/?id=d05c8c21 librc: fix EACCES errno false-positive crash Use errno != EACCES to fix false-positive for non-root users with grsecurity kernels. Fixes: 37e29442721a ("librc: Add check for crashed state") This fixes #237 src/librc/librc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librc/librc.c b/src/librc/librc.c index 01bfac03..c38695cc 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -850,7 +850,7 @@ rc_service_state(const char *service) } if (state & RC_SERVICE_STARTED) { - if (rc_service_daemons_crashed(service)) + if (rc_service_daemons_crashed(service) && errno != EACCES) state |= RC_SERVICE_CRASHED; } if (state & RC_SERVICE_STOPPED) {
[gentoo-commits] proj/openrc:0.38.x commit in: /
commit: 7850e12071891321f6564979e4e574eb775bf102 Author: William Hubbs gmail com> AuthorDate: Mon Aug 6 22:44:43 2018 + Commit: William Hubbs gentoo org> CommitDate: Mon Aug 6 22:44:43 2018 + URL:https://gitweb.gentoo.org/proj/openrc.git/commit/?id=7850e120 version 0.38.2 Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.inc b/Makefile.inc index cb351bc8..df2f462f 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -1,3 +1,3 @@ NAME= openrc -VERSION= 0.38.1 +VERSION= 0.38.2 PKG= ${NAME}-${VERSION}
[gentoo-commits] proj/openrc:0.38.x commit in: /
commit: 81ab30c51dba9bfac71dd36c65e96bc1e3e5f2ae Author: William Hubbs gmail com> AuthorDate: Mon Aug 6 22:49:49 2018 + Commit: William Hubbs gentoo org> CommitDate: Mon Aug 6 22:51:56 2018 + URL:https://gitweb.gentoo.org/proj/openrc.git/commit/?id=81ab30c5 Update ChangeLog ChangeLog | 134 +++--- 1 file changed, 23 insertions(+), 111 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6dbfa6d9..e0bd4ae0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,26 @@ +commit ed6804200401861aa0b52f0feccb750aa496d34e +Author: Zac Medico +Commit: William Hubbs + +librc: fix EACCES errno false-positive crash + +Use errno != EACCES to fix false-positive for non-root users +with grsecurity kernels. + +Fixes: 37e29442721a ("librc: Add check for crashed state") + +commit 7850e12071891321f6564979e4e574eb775bf102 +Author: William Hubbs +Commit: William Hubbs + +version 0.38.2 + +commit 11d3a8beadc4561e6b5d8f7fd86af39e4caf9d4f +Author: William Hubbs +Commit: William Hubbs + +Update ChangeLog + commit e36e9a30eb830ea27b467383fa2ae02cd2b0d9d4 Author: Holger Hoffstätte Commit: William Hubbs @@ -1648,114 +1671,3 @@ Commit: William Hubbs This is needed to allow the service script author to set a default for rc_ulimit inside the service script. - -commit c2d256bafb9d1dfafbfd0846c035c5d26f7449c8 -Author: William Hubbs -Commit: William Hubbs - -man/openrc-run.8: document fstabinfo and mountinfo - -X-Gentoo-Bug: 592374 -X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=592374 - -commit f48d9c33a5c708c871d6657a39485d1c0c735548 -Author: William Hubbs -Commit: William Hubbs - -man/openrc-run.8: document _pre and _post functions - -Fixes https://github.com/openrc/openrc/issues/155. - -commit 6d4e8433974fd8567885635ae0454031290f96b1 -Author: Jason Graham -Commit: William Hubbs - -fix ENT macro usage - -X-Gentoo-Bug: 624796 -X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=624796 - -commit 0513cd3964a9564e0ba39b50aa8ebd3d7e9a3920 -Author: William Hubbs -Commit: William Hubbs - -version 0.29 - -commit 72bb2e57de935ab46ad000f97a5720265bed9342 -Author: John R. Graham -Commit: William Hubbs - -Typo fix - -X-Gentoo-Bug: 624908 -X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=624908 - -commit 84c5da30695db89d686d3c28c7cacdf172cbf429 -Author: William Hubbs -Commit: William Hubbs - -Update ChangeLog - -commit b35099cb707e333b6b8d30d956ffa93bcd2da0ab -Author: William Hubbs -Commit: William Hubbs - -Add comment about overriding the default efivars mount in fstab to news - -commit 3fd3bfc76dccc3752f4af949ad4076dab26357fb -Author: William Hubbs -Commit: William Hubbs - -add link to efivars issue to news file - -commit 492a6303cb8314263bfd3631e3b0de5a9df178da -Author: William Hubbs -Commit: William Hubbs - -Update ChangeLog - -commit e7807b3136d8993805082320784460f5059e6275 -Author: William Hubbs -Commit: William Hubbs - -fix sysvinit compatibility for shutdown wrapper - -commit 03a461ac0ee34b7900868cdea624c6fd868b1656 -Author: William Hubbs -Commit: William Hubbs - -fix sysvinit compatibility for reboot wrapper - -commit 7e0f76e0adc545c74a8332a6ef0811d2aa62cb81 -Author: William Hubbs -Commit: William Hubbs - -fix sysvinit compatibility for poweroff wrapper - -commit 9812ce5b8dc22fe36cc7bf75cf6e62db204ece3d -Author: William Hubbs -Commit: William Hubbs - -fix halt wrapper so it is sysvinit compatible - -This makes the halt wrapper sysvinit compatible. It ignores several -command line switches which are not currently implemented; however, -those can be implemented if we need to do so. - -This fixes https://github.com/openrc/openrc/issues/146. - -commit 12f75e4167f84a9a85f69924ebdb28ad36c085cb -Author: Adam Borowski -Commit: William Hubbs - -man: fix an unclosed .Bl/.El warning - -This fixes #151. - -commit 260368e0103e95625c29760f2c2ec89143e5a233 -Author: Adam Borowski -Commit: William Hubbs - -man: fix missing .Pp warnings - -This fixes #151.
[gentoo-commits] proj/openrc:0.38.x commit in: src/rc/
commit: e36e9a30eb830ea27b467383fa2ae02cd2b0d9d4 Author: Holger Hoffstätte applied-asynchrony com> AuthorDate: Thu Jun 28 21:08:57 2018 + Commit: William Hubbs gentoo org> CommitDate: Fri Jun 29 14:07:47 2018 + URL:https://gitweb.gentoo.org/proj/openrc.git/commit/?id=e36e9a30 rc-status: initialize uptime pointer to prevent memory corruption This fixes #231. src/rc/rc-status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c index 85e71dbb..cebdc5ed 100644 --- a/src/rc/rc-status.c +++ b/src/rc/rc-status.c @@ -87,7 +87,7 @@ static char *get_uptime(const char *service) time_t diff_hours = (time_t) 0; time_t diff_mins = (time_t) 0; time_t diff_secs = (time_t) 0; - char *uptime; + char *uptime = NULL; if (state & RC_SERVICE_STARTED) { start_count = rc_service_value_get(service, "start_count");
[gentoo-commits] proj/openrc:0.38.x commit in: /
commit: 11d3a8beadc4561e6b5d8f7fd86af39e4caf9d4f Author: William Hubbs gmail com> AuthorDate: Fri Jun 29 14:09:40 2018 + Commit: William Hubbs gentoo org> CommitDate: Fri Jun 29 14:09:40 2018 + URL:https://gitweb.gentoo.org/proj/openrc.git/commit/?id=11d3a8be Update ChangeLog ChangeLog | 20 1 file changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index ba89667b..6dbfa6d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,23 @@ +commit e36e9a30eb830ea27b467383fa2ae02cd2b0d9d4 +Author: Holger Hoffstätte +Commit: William Hubbs + +rc-status: initialize uptime pointer to prevent memory corruption + +This fixes #231. + +commit 7da99d77b5bbd789cb84be347d8b8d96d21f85c4 +Author: William Hubbs +Commit: William Hubbs + +version 0.38.1 + +commit 01c34c28e6d6d7bfecc0f88bdf1fb15e97ab8823 +Author: William Hubbs +Commit: William Hubbs + +Update ChangeLog + commit 56ddda54b5aa01474bf563d5a662075c35152858 Author: William Hubbs Commit: William Hubbs