Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
make the base/controller functions return successfully if cgroups v1/v2
are not configured in the kernel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- remove references to PATH_MAX
- use xasprintf to create strings
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
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.
|
|
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.
|
|
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.
|
|
|
|
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.
|
|
X-Gentoo-Bug: 643084
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=643084
|
|
X-Gentoo-Bug: 643084
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=643084
|
|
|
|
|
|
|
|
Checkpath should never follow symbolic links when changing ownership of a file.
This is for https://github.com/openrc/openrc/issues/195.
|
|
Add a title, adjust the headings and update the example that referred to
"net.lo" to refer to "loopback".
|
|
This fixes #162.
|
|
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/
|
|
This removes the @VARBASE@ substitution since it is always translated to
/var.
|
|
|
|
I do not know of any situation where /etc/hostname is at any other
location. Also, this does not run on prefix.
|
|
This removes a reference to @SYSCONFDIR@.
|
|
For *BSD,the sysctl*.conf files are always in /etc.
|
|
Remove references to @SYSCONFDIR@ since these can be calculated at
runtime.
Also style fixes.
|
|
clean up local definitions. Also remove @SYSCONFDIR@ substitutions since
they can be calculated at runtime.
|
|
The script should wait till the ping host is available or timeout reached
Closes : #179
Closes : #191
|
|
This is an improved test because it doesn't require the ip executable to be
in a specific path.
|
|
https://unix.stackexchange.com/questions/252002/help-testing-special-file-in-sys-class-net
This is for #189
|
|
This is for #178.
|