Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-07-24 | version 0.29 | William Hubbs | |
2017-07-24 | Typo fix | John R. Graham | |
X-Gentoo-Bug: 624908 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=624908 | |||
2017-07-13 | Update ChangeLog | William Hubbs | |
2017-07-13 | Add comment about overriding the default efivars mount in fstab to news | William Hubbs | |
2017-07-11 | add link to efivars issue to news file | William Hubbs | |
2017-07-11 | Update ChangeLog | William Hubbs | |
2017-07-11 | fix sysvinit compatibility for shutdown wrapper | William Hubbs | |
2017-07-11 | fix sysvinit compatibility for reboot wrapper | William Hubbs | |
2017-07-11 | fix sysvinit compatibility for poweroff wrapper | William Hubbs | |
2017-07-10 | fix halt wrapper so it is sysvinit compatible | William Hubbs | |
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. | |||
2017-07-07 | man: fix an unclosed .Bl/.El warning | Adam Borowski | |
This fixes #151. | |||
2017-07-07 | man: fix missing .Pp warnings | Adam Borowski | |
This fixes #151. | |||
2017-06-13 | init.d/sysfs: mount efivars read only | William Hubbs | |
This fixes #134. | |||
2017-06-12 | fix argument parsing for the sysvinit shutdown wrapper | William Hubbs | |
This fixes #140. | |||
2017-06-12 | scripts/shutdown: fix arguments to be sysvinit shutdown compatible | William Hubbs | |
This fixes #140. | |||
2017-06-12 | Fix link to shutdown for MKSYSVINIT=yes | William Hubbs | |
2017-06-12 | init.d/hostname: fix default parameter syntax | Nuno Silva | |
The syntax for expanding a variable with a default value is ${parameter:-word} not ${parameter-word} although the latter still works for a reason I could not explain. This fixes #143. | |||
2017-06-12 | init.d/hostname: fix indentation | Nuno Silva | |
This is for #143. | |||
2017-06-12 | scripts/Makefile: make symlinks absolute instead of relative | udeved | |
This closes #142. | |||
2017-06-12 | scripts/Makefile: respect SBINDIR with MKSYSVINIT | udeved | |
This is for #142. | |||
2017-06-08 | kill_all: include limits.h for PATH_MAX | Jory A. Pratt | |
2017-06-08 | version 0.28 | William Hubbs | |
2017-06-08 | fix compile issue for musl | William Hubbs | |
2017-06-07 | Update ChangeLog | William Hubbs | |
2017-06-07 | man: update openrc-shutdown man page | William Hubbs | |
Add the new wtmp options and fix some cross references. | |||
2017-06-07 | scripts/shutdown: pass --single to openrc-shutdown | William Hubbs | |
Sysvinit shutdown has a default of single user mode, but openrc-shutdown makes you choose a default action. Because of this, the shutdown wrapper needs to pass --single to openrc-shutdown. | |||
2017-06-05 | openrc-shutdown: add --single option and clean up option processing | William Hubbs | |
2017-06-05 | init.d/bootmisc: use openrc-shutdown instead of halt to write halt record | William Hubbs | |
This fixes #139 and fixes #128. and fixes #124. | |||
2017-06-04 | add support for writing reboot and shutdown records to wtmp | William Hubbs | |
2017-05-31 | openrc-init: add optional sysvinit compatibility | William Hubbs | |
2017-05-30 | Change killprocs to use kill_all instead of killall5 | William Hubbs | |
X-Gentoo-Bug:376977 X-Gentoo-Bug-URL:https://bugs.gentoo.org/show_bug.cgi?id=376977 | |||
2017-05-30 | openrc-init: fix buffer overflow in init.ctl | Sergei Trofimovich | |
How to reproduce 1-byte overflow: ``` $ FEATURES=-test CFLAGS="-fsanitize=address -O0 -ggdb3" emerge -1 openrc ================================================================= ==1==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fff0efd8710 at pc 0x000000402076 bp 0x7fff0efd7d50 sp 0x7fff0efd7d40 WRITE of size 1 at 0x7fff0efd8710 thread T0 #0 0x402075 (/sbin/openrc-init+0x402075) #1 0x3cf6e2070f in __libc_start_main (/lib64/libc.so.6+0x3cf6e2070f) #2 0x4013b8 (/sbin/openrc-init+0x4013b8) Address 0x7fff0efd8710 is located in stack of thread T0 at offset 2432 in frame #0 0x401cfb (/sbin/openrc-init+0x401cfb) This frame has 3 object(s): [32, 160) 'signals' [192, 344) 'sa' [384, 2432) 'buf' <== Memory access at offset 2432 overflows this variable HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-buffer-overflow ??:0 ?? ``` The problem here is in the code handling reads from 'init.ctl': ``` int main(int argc, char **argv) { ... char buf[2048]; for (;;) { /* This will block until a command is sent down the pipe... */ fifo = fopen(RC_INIT_FIFO, "r"); count = fread(buf, 1, 2048, fifo); buf[count] = 0; ... } ``` `buf[count] = 0;` writes outside the buffer when `fread()` returns non-truncated read. This fixes #138. | |||
2017-05-30 | mk/cc.mk: make implicit function declarations fatal (#136) | Sergei Trofimovich | |
Avoids issues with missing prototypes causing truncation of pointers. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> | |||
2017-05-30 | rc-logger.c: fix crash on fclose(NULL) (#137) | Sergei Trofimovich | |
Only close the log if we successfully opened it. Reported-by: Brian Evans <grknight@gentoo.org> Tested-by: Brian Evans <grknight@gentoo.org> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> | |||
2017-05-22 | typo fix | William Hubbs | |
X-Gentoo-Bug: 618888 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=618888 | |||
2017-05-22 | openrc-shutdown: add dry-run option | William Hubbs | |
2017-05-22 | openrc-shutdown: move to single user mode by default | William Hubbs | |
To be more compatible with sysvinit, move to single user mode if no options are specified on the command line. | |||
2017-05-22 | init: add ability to switch to single user mode | William Hubbs | |
2017-05-19 | add kill_all helper | William Hubbs | |
This is similar to the sysvinit killall5 utility. It should only be used in service scripts, so it will not be installed in the path. This closes #129. | |||
2017-05-15 | rc_status: calculate time differences in time_t and display seconds in uptime | William Hubbs | |
2017-05-12 | supervise-daemon: save start time and respawn count before dropping privs | William Hubbs | |
2017-05-12 | version 0.27 | William Hubbs | |
2017-05-11 | update ChangeLog | William Hubbs | |
2017-05-11 | man/rc-status: document changes for supervised daemons | William Hubbs | |
rc-status now shows the amount of time a supervised daemon has been active as well as the number of times it has been respawned during the current respawn period. | |||
2017-05-11 | rc-status: show uptimes and respawn counts for supervised daemons | William Hubbs | |
2017-05-11 | fix to_time_t to honor dst | William Hubbs | |
2017-05-11 | fix from_time_t function | William Hubbs | |
2017-05-11 | Move time_t conversions to rc-misc.c so they can be shared | William Hubbs | |
2017-05-11 | supervise-daemon: save start time and respawn count | William Hubbs | |
This will allow rc-status to display an uptime and restart count for supervised processes. | |||
2017-05-11 | supervise-daemon: fix our status when we give up on the child process | William Hubbs | |