aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-03-23Fix savecore service on FreeBSDAnthony Donnelly
savecore -C only needs the dumpdevice otherwise it causes an error on startup. This fixes #40.
2015-03-21mk/os-GNU.mk: fix typoWilliam Hubbs
MAX_PATH should have been PATH_MAX
2015-03-20savecache: Make sure cache directory exists before running checkpathWill Miles
checkpath -W can fail if the specified path doesn't actually exist yet. In this case savecache script should attempt to create the path if it is missing, however it is pre-empted by the checkpath call. This patch adds an explicit existence test before executing checkpath. This fixes #36.
2015-02-27bootmisc: clean_run safety improvements.Robin H. Johnson
If /tmp or / are read-only, the clean_run function can fail in some very bad ways. 1. dir=$(mktemp -d) returns an EMPTY string on error. 2. "mount -o bind / $dir", and don't check the result of that, 3. "rm -rf $dir/run/*", which removes the REAL /run contents 4. box gets very weird from this point forward Signed-Off-By: Robin H. Johnson <robbat2@gentoo.org> Signed-Off-By: Chip Parker <infowolfe@gmail.com> Reported-by: Chip Parker <infowolfe@gmail.com> Tested-by: Chip Parker <infowolfe@gmail.com>
2015-02-19checkpath: do not chown or chmod symbolic linksWilliam Hubbs
This is another security fix. If you use chown() or chmod() on a symbolic link, it affects the referenced file, not the symbolic link itself. X-Gentoo-Bug: 540006 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=540006
2015-02-18ChangeLog: show authors and committersWilliam Hubbs
2015-02-18local: fix redirectionsWilliam Hubbs
The local service now redirects stdout and stderr for the scripts it runs to /dev/null unless it is run in verbose mode. X-Gentoo-Bug: 537444 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=537444
2015-02-15typo fixWilliam Hubbs
2015-02-15checkpath: security fix for -m and -o optionsWilliam Hubbs
Do not change permissions on the target if it is a file and has multiple hard links. This is necessary because a hard link can be an attack vector to gain privilege escalation. X-Gentoo-Bug: 540006 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=540006
2015-02-03Add nfsclient to netmount use dependenciesWilliam Hubbs
X-Gentoo-Bug: 537996 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=537996
2015-01-24Prioritize local includes and librariesWill Miles
This fixes #35.
2015-01-24tmpfiles.*: Follow OpenRC's message styleConsus
Just to be consistent.
2015-01-23Makefile: add variable for path to source treeWilliam Hubbs
Add a new variable, ${TOP}, to the top level makefile, which points to the path of the source tree.
2015-01-22Fix off-by-one error in --test argument printout in start-stop-daemon.Will Miles
Fixes #34.
2015-01-18tmpfiles.dev: pass --boot to tmpfiles.sh so kmod works properlyWilliam Hubbs
2015-01-12Add description for cgroup_cleanupWilliam Hubbs
X-Gentoo-Bug: 535184 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=535184
2015-01-12fix double free of pidfileDoug Freed
This fixes a double free of the pidfile variable. For discussion of this issue, see the bug. X-Gentoo-Bug: 531600 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=531600
2014-12-08Do not call the shell to evaluate CHANGELOG_LIMITWilliam Hubbs
The git log command understands dates such as "1 year ago", so there is no need to use the date command.
2014-12-07etc/rc and etc/rc.shutdown: change references from rc to openrcWilliam Hubbs
2014-12-07Add target to create ChangeLogWilliam Hubbs
This was added by request because some users are requesting a ChangeLog. This fixes #29.
2014-12-05rename git.mk to gitver.mkWilliam Hubbs
This is a more descriptive name since this file only sets the gitver variable.
2014-11-23Make sysfs behave like netmount and localmountWilliam Hubbs
sysfs now mounts all related sysfs file systems and returns success, like netmount and localmount. Also, we now check to make sure the cgroups are not mounted before we mount them. X-Gentoo-Bug: 530138 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=530138
2014-11-22Fix mdoc warning for empty line in rc-update man page.S. Gilles
X-Gentoo-Bug: 529374 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=529374
2014-11-20init.d: add osclock to ignore patternsWilliam Hubbs
2014-11-20devfs: optionally add missing symbolic linksWilliam Hubbs
If symbolic links for /dev/{fd,stdin,stdout,stderr,core} do not exist once /dev is mounted, we should create them.
2014-11-06netmount: unmount nfs file systemsWilliam Hubbs
2014-11-03Integrate the functionality from runscript_selinux.soJason Zaman
runscript used to dlopen() runscript_selinux.so. This adds equivalent functionality directly in to runscript instead. It authenticates with either PAM or shadow and optionally has a dep on audit. X-Gentoo-Bug: 517450 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=517450
2014-11-01Fix incorrect handling of chroot option.Alexander Vershilov
Fixes #28. X-Gentoo-Bug: #527370 X-Gentoo-Bug-Url: https://bugs.gentoo.org/show_bug.cgi?id=527370
2014-10-27Add osclock serviceRalph Sennhauser
This scripts sole purpose is to "provide clock" on OSs that already take care of the clock being properly set.
2014-10-26Pass ncurses cflags to buildJohan Bergström
Fixes #25 Note from William Hubbs: The original patch overwrote CFLAGS. I modified this patch to add the ncurses cflags to CPPFLAGS instead of overwriting CFLAGS.
2014-10-24Fix compile errors created by bundling queue.hWilliam Hubbs
2014-10-23helpers.h, start-stop-daemon.c: remove uneeded macrosAnthony G. Basile
TAILQ_CONCAT, TAILQ_FOREACH_SAFE and LIST_FOREACH_SAFE are defined in our bundled queue.h and are no longer required.
2014-10-23Bundle <sys/queue.h> from NetBSDAnthony G. Basile
We are bundling this to allow building on musl-based systems since musl does not include <sys/queue.h>.
2014-10-23Fix all tests for GNU/kFreeBSDWilliam Hubbs
It is necessary to check for both the kernel and c library because __FreeBSD_kernel is also defined on native FreeBSD [1]. [1] http://sourceforge.net/p/predef/wiki/OperatingSystems/
2014-10-23Fix rc_svcdir for GNU/HurdGabriele Giacone
2014-10-23fix defines for GNU/HurdSvante Signell
2014-10-23add missing files for GNU/HurdSvante Signell
2014-10-22Fix rc_svcdir for GNU/kFreeBSDGabriele Giacone
2014-10-22Add missing files for GNU/kFreeBSDGabriele Giacone
2014-10-22Fix GNU/kFreeBSD portSvante Signell
Check for __FreeBSD_kernel instead of __GLIBC__ in source files. note from William Hubbs: I was told this is a better check for GNU/kFreeBSD than checking the C library the source is being compiled against. GNU/kFreeBSD than checking which library we are using.
2014-10-22einfo.h, rc.h.in: simplify __BEGIN_DECLS logicAnthony G. Basile
There is no need to redefine __BEGIN_DECLS and __END_DECLS. We simplify the logic here and avoid undefining these macros.
2014-10-21einfo.h, rc.h.in: ensure __BEGIN_DECLS is definedAnthony G. Basile
Some Standard C Libraries, like musl, don't define __BEGIN_DECLS or __END_DECLS. We add some ifdef magic to ensure these are available.
2014-10-20Update news file wrt chroot variableWilliam Hubbs
2014-10-20librc:look for the pid file in a chroot if definedAlexander Vershilov
X-Gentoo-Bug: 524388 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=524388
2014-10-20runscript.sh: add chroot supportWilliam Hubbs
This adds support for a chroot variable which will be passed to the start-stop-daemon --chroot switch to runscript.sh when starting a daemon. This also needs to be saved so it can be used in locating the pid file when stopping the daemon. X-Gentoo-Bug: 524388 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=524388
2014-10-20Add NEWS fileWilliam Hubbs
2014-10-16add back nfs and nfs4 file systemsWilliam Hubbs
Fix gentoo bug #427996 correctly. We should attempt to mount the file systems, but not try to start the daemons. The previous fix removed mounting the file systems as well as starting the daemons. X-Gentoo-Bug: 508574 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=508574
2014-10-06localmount: unmount aufs branchesRick Farina (ZeroChaos)
2014-09-20typo fixWilliam Hubbs
2014-09-19man: Document start_inactive and in_background_fakeWilliam Hubbs