Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-02-27 | supervise-daemon: make an error message more verbose | William Hubbs | |
2018-02-27 | cgroups: fix indentation | William Hubbs | |
2018-02-26 | cgroups: add rc_cgroup_memory_use_hierarchy setting for cgroups v1 | William Hubbs | |
2018-02-26 | fstabinfo: fix an error message | William Hubbs | |
2018-02-26 | openrc: remove unused #define's. | William Hubbs | |
2018-02-26 | openrc: convert another execl() call to execlp() | William Hubbs | |
2018-02-26 | openrc-init: convert execl calls to execlp | William Hubbs | |
2018-02-24 | kill_all: change execl call to execlp | William Hubbs | |
2018-02-24 | openrc-init: set a default path | William Hubbs | |
The default path provided by the system if one isn't set only includes "/bin:/usr/bin". This adds the default path setting from sysvinit. | |||
2018-02-23 | check whether /sys/fs/cgroup is a mountpoint | Christian Brauner | |
The current check only tries to detect whether /sys/fs/cgroup exists and whether it is writable or not. But when the init system doesn't mount cgroups then /sys/fs/cgroup will just be an empty directory. When paired with unprivileged containers that mount sysfs this will cause misleading errors to be printed since /sys/fs/cgroup will be owned by user nobody:nogroup in this case. Independent of this specific problem this check will also be misleading when the /sys/fs/cgroup exists and is in fact writable by the init system but isn't actually a mountpoint. Note from William. "grep -qs" doesn't need to redirect output to /dev/null since it is completely silent. This fixes #209. | |||
2018-02-23 | improve cgroup configuration checks | William Hubbs | |
make the base/controller functions return successfully if cgroups v1/v2 are not configured in the kernel | |||
2018-02-22 | openrc: force deptree update for sysinit runlevel | William Hubbs | |
2018-02-22 | supervise-daemon: zero out the cmdline buffer when it is allocated | William Hubbs | |
2018-02-21 | start-stop-daemon: compiler warning cleanup | William Hubbs | |
2018-02-21 | openrc-run: clean up a compiler warning | William Hubbs | |
2018-02-21 | supervise-daemon: remove references to PATH_MAX | William Hubbs | |
2018-02-21 | rc.c: remove PATH_MAX references | William Hubbs | |
2018-02-20 | rc-selinux.c: remove references to path_max | William Hubbs | |
2018-02-20 | rc-plubin.c: remove references to PATH_MAX | William Hubbs | |
2018-02-20 | rc-misc.c: remove references to PATH_MAX | William Hubbs | |
2018-02-16 | start-stop-daemon: clean up string handling | William Hubbs | |
2018-02-15 | openrc-run: clean up string handling | William Hubbs | |
- remove references to PATH_MAX - use xasprintf to create strings | |||
2018-02-15 | rc-update: remove reference to PATH_MAX | William Hubbs | |
2018-02-14 | mountinfo: create strings with xasprintf | William Hubbs | |
2018-02-14 | kill_all: create strings with xasprintf | William Hubbs | |
2018-02-10 | helpers.h: silence compiler warnings about xasprintf | William Hubbs | |
2018-02-10 | xasprintf: exit if return value of vsnprintf is invalid | William Hubbs | |
2018-02-09 | helpers.h: add xasprintf function | William Hubbs | |
This is our own version of asprintf(). This original code was written by Mike Frysinger, and I was able to modify it to use our memory helper functions. We need a version of this code because it is not available on glibc at least without defining _GNU_SOURCE, and I would rather not do that. This is the first step in improving string handling in OpenRC for #207. | |||
2018-02-09 | helpers.h: style fix | William Hubbs | |
2018-02-06 | man/openrc-run.8: fix mountinfo args. | Michael Orlitzky | |
The "Ar" tag for the mountinfo command contained a typo (leading space) that resulted in the tag being output verbatim; that is, mountinfo ... .Ar mount1 mount2 rather than e.g. mountinfo ... <mount1> <mount2> This commit deletes the leading space to fix the output. This fixes #204. | |||
2018-02-06 | man/openrc-run.8: add missing "Xo" tags for fstabinfo and mountinfo. | Michael Orlitzky | |
The BUILTINS are all surrounded by Xo...Xc tags, but the opening "Xo" was missing from the two commands fstabinfo and mountinfo. This commit adds them, and thereby fixes the spacing when viewed by man. This is for #204. | |||
2018-01-24 | service-script-guide.md cleanups | William Hubbs | |
Refer to /var/run in the documentation instead of /run, and make it clear at the top of the pidfile section that we use /run under Linux. This is for #202. | |||
2018-01-24 | typo fix | William Hubbs | |
2018-01-23 | checkpath: use fchown and fchmod to handle ownership and mode changes | William Hubbs | |
This is related to #195. This is an attempt to shorten the window for the first two issues discussed by using a file descriptor which does not follow symbolic links and using the fchmod and fchown calls instead of chown and chmod. with. | |||
2018-01-16 | checkpath: fix lchown error message | William Hubbs | |
X-Gentoo-Bug: 643084 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=643084 | |||
2018-01-16 | _rc_deptree_load - return NULL if the stat() call is not successful | William Hubbs | |
X-Gentoo-Bug: 643084 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=643084 | |||
2018-01-12 | Reformat and fix titles in documentation | William Hubbs | |
2018-01-11 | Rename guide.md to user-guide.md to better describe its purpose | William Hubbs | |
2018-01-10 | move developer documentation from guide.md to service-script-guide.md | William Hubbs | |
2018-01-09 | checkpath: use lchown instead of chown | William Hubbs | |
Checkpath should never follow symbolic links when changing ownership of a file. This is for https://github.com/openrc/openrc/issues/195. | |||
2018-01-08 | service-script-guide.md: formatting changes | William Hubbs | |
Add a title, adjust the headings and update the example that referred to "net.lo" to refer to "loopback". | |||
2018-01-08 | service-script-guide.md: new guide for service script authors. | Michael Orlitzky | |
This fixes #162. | |||
2018-01-05 | net-online: only process symbolic links in /sys/class/net | 3PO | |
The /sys/class/net directory contains files which are not symlinks if the system has bonded devices [1]. We should ignore these files. This fixes #196. [1] https://elkano.org/blog/manage-interface-bondings-sysfs-interface/ | |||
2017-12-20 | init.d.examples: pid files always go in /var | William Hubbs | |
This removes the @VARBASE@ substitution since it is always translated to /var. | |||
2017-12-14 | procfs: remove the @sysconfdir@ reference | William Hubbs | |
2017-12-14 | hostname: replace @SYSCONFDIR@ references with /etc | William Hubbs | |
I do not know of any situation where /etc/hostname is at any other location. Also, this does not run on prefix. | |||
2017-12-14 | hwclock: use shell variables for configuration file path | William Hubbs | |
This removes a reference to @SYSCONFDIR@. | |||
2017-12-14 | sysctl: hard code paths for sysctl files on *bsd | William Hubbs | |
For *BSD,the sysctl*.conf files are always in /etc. | |||
2017-12-14 | local: misc cleanups | William Hubbs | |
Remove references to @SYSCONFDIR@ since these can be calculated at runtime. Also style fixes. | |||
2017-12-14 | devfs: cleanup | William Hubbs | |
clean up local definitions. Also remove @SYSCONFDIR@ substitutions since they can be calculated at runtime. |