aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-08-29savecache: check permissions on the correct directoryJoe M
2014-08-27tmpfiles.sh: add support for C actionAndrew Gregory
Recursively copies files or directories. Added by systemd in 849958d1.
2014-08-27tmpfiles.sh: add support for + modifierAndrew Gregory
systemd added support for b+, c+, p+, and L+ in 2e78fa79 and 1554afae to remove the target path if it already exists.
2014-08-22cgroups: fix cgroup subsystem mountingWilliam Hubbs
Originally, we aborted all of the cgroup setup if /sys/fs/cgroup/openrc was already mounted. This caused an issue in lxc containers, so we should always allow the subsystems to be mounted. X-Gentoo-Bug: 520606 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=520606
2014-08-17start work on 0.14William Hubbs
2014-08-17mtab: add verbose level deprecation warningsWilliam Hubbs
2014-08-17README: Clarify devfs changesWilliam Hubbs
I was informed that the previous explanation of the devfs changes could be interpreted to mean that we mount a second /dev on top of the one that was mounted by the kernel or initramfs. This change makes it clear that is not the case.
2014-08-16README: add notes about devfs changesWilliam Hubbs
2014-08-16adjust deprecation schedule for mtabWilliam Hubbs
- Quiet the deprecation messages forr now - update the feature removal schedule to reflect that it will be removed in 2.0.
2014-08-14Deprecate the mtab service scriptWilliam Hubbs
The mtab service script is no longer needed on modern Linux systems, so we can remove it in 1.0. However, we need to set a deprecation notice first.
2014-08-13tmpfiles: fix relabel to run restorecon before chown and chmodWilliam Hubbs
2014-08-13tmpfiles: Move relabelling before any other calls for device nodesJason Zaman
Device nodes are normally never device_t so this type does not have many permissions. After the mknod, the device should have its label corrected before any other operations (like chmod).
2014-08-11README: expand information about rc and runscript deprecationWilliam Hubbs
2014-08-11rc.conf: document rc_verboseWilliam Hubbs
2014-08-11Show rc and runscript deprecation warnings in verbose modeWilliam Hubbs
These messages are being changed for this release to show in verbose mode because of the number of times they display.
2014-08-10bootmisc: do not run the clean_run function in an LXC containerWilliam Hubbs
2014-08-10hwclock: fix comments about the usage of clock_hctosysWilliam Hubbs
The clock_hctosys variable should be set to YES if you are not using NTP to synchronize your system time; it doesn't have anything to do with the kernel configuration.
2014-08-09sysctl.linux.in: use the --system optionWilliam Hubbs
According to the sysctl man page, the --system option causes sysctl to process all system configuration files, which include the following: /run/sysctl.d/*.conf /etc/sysctl.d/*.conf /usr/local/lib/sysctl.d/*.conf /usr/lib/sysctl.d/*.conf /lib/sysctl.d/*.conf /etc/sysctl.conf X-Gentoo-Bug: 484796 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=484796
2014-08-08devfs: several small clarificationsWilliam Hubbs
- Rename the static_dev switch in conf.d/devfs to skip_mount_dev since this is a better description of what the switch does. - Clarify the error messages in the devfs service script based on the new name of the switch.
2014-08-07tmpfiles.sh: do not use installJason Zaman
install is in /usr which causes problems if /usr is not mounted. Instead, checkpath and "mkdir -p" can do everything required and are both available before /usr is mounted. Since checkpath also handles selinux labels correctly, _restorecon after is not required. X-Gentoo-Bug: 503408 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=503408
2014-07-28checkpath: apply ownership to all paths given on command lineWilliam Hubbs
The stat structure was not being initialized correctly in do_check. This was causing the owner adjustment to be skipped if the first path had the correct owner. Also, the "correcting owner" message should always be printed when the owner is being changed. X-Gentoo-Bug: 518042 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=518042
2014-07-25checkpath: style fixWilliam Hubbs
2014-07-24hwclock: always set the kernel's timezoneWilliam Hubbs
The hwclock service should set the time zone regardless of the setting of the clock_hctosys variable. This needs to be done to prevent issues when the system time is being synchronized using ntp. X-Gentoo-Bug: 434410 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=434410
2014-07-19src/librc/librc-daemon.c: style fixWilliam Hubbs
2014-07-19src/rc/Makefile: typo fixWilliam Hubbs
2014-07-17rc-status: fix infinite loop when using stacked runlevelsWilliam Hubbs
Remove the recursive call in print_stacked_services which was causing an infinite loop when using stacked runlevels. I would like to thank Doug Freed and Jason Zaman for assisting with tracking this down. X-Gentoo-Bug: 514972 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=514972
2014-07-16devfs: fix restorecon ebegin message to match sysJason Zaman
X-Gentoo-Bug: 516956 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956
2014-07-16sysfs: restorecon after mounting /sysJason Zaman
X-Gentoo-Bug: 516956 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956
2014-07-16move the selinux_setup function into rc-selinuxJason Zaman
X-Gentoo-Bug: 516956 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956
2014-07-16checkpath: style fixesWilliam Hubbs
2014-07-16style fixesWilliam Hubbs
2014-07-16Rename SELinux source filesWilliam Hubbs
The name rc-selinux-util.* is a bit long, so I renamed the source files to rc-selinux.* X-Gentoo-Bug: 516956 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956
2014-07-16checkpath: restore the SELinux contextJason Zaman
X-Gentoo-Bug: 516956 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956
2014-07-16devfs: fix SELinux contextsJason Zaman
SELinux contexts in /dev need to be fixed after it is mounted X-Gentoo-Bug: 516956 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956
2014-07-16tmpfiles: set the proper SELinux contextJason Zaman
Restore the label on the created file / dir based on the policy fcontexts. X-Gentoo-Bug: 516956 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956
2014-07-15Add SELinux support to the build systemWilliam Hubbs
X-Gentoo-Bug: 516956 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956
2014-07-14sysfs.in: fix indentationWilliam Hubbs
2014-07-13checkpath: fix logic for the writable optionWilliam Hubbs
The -W option does not need an argument of its own; it can take the first path after all other options are processed on the command line. Also, move the processing for the -W option out of the switch so it will be in the same loop as the other processing.
2014-07-13man/openrc-run.8: more updates and clarifications for checkpathWilliam Hubbs
X-Gentoo-Bug: 500606 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=500606
2014-07-13man/openrc.8: update checkpath documentationAlexander V Vershilov
X-GENTOO-BUG: 500606 X-GENTOO-BUG-URL: https://bugs.gentoo.org/show_bug.cgi?id=500606
2014-07-11typo fixAlexander V Vershilov
2014-07-11checkpath: fix error message in previous commitWilliam Hubbs
2014-07-11checkpath: report an error if required options were not specifiedWilliam Hubbs
Before this commit, not specifying -d, -f, -p or -W in a checkpath command meant the command exited successfully but actually did nothing. This is an error condition, so report it as such.
2014-07-10Style FixesWilliam Hubbs
2014-07-10cgroups: only run cgroup setup when starting a serviceAlexander V Vershilov
Status call should not set limits as it requires root permissions, also this is not safe, as current process may reach limitation. Solution is to set limits and move process to service cgroup only on start. X-GENTOO-BUG: 500364 X-GENTOO-BUG-URL: https://bugs.gentoo.org/show_bug.cgi?id=500364
2014-07-10FEATURE_REMOVAL_SCHEDULE: add entry for local_start/stopWilliam Hubbs
2014-07-09init.d/local: bring functioning more in line with how sysctl worksWilliam Hubbs
- remove the has_executables variable since it isn't used. - Convert the conditional calls to ewend/vewend to a single call to veend. - Always call eend after all scripts are executed passing the appropriate error code. Because of this change, you will see only an overall status when starting or stopping local unless you are using verbose mode.
2014-07-05Add support for verbose "local" service runscriptThomas D
With this patch, the "local" service runscript will be verbose like the "sysctl" service when 'rc_verbose="yes"' is set. Example output successful start: * Stopping local ... * Executing "/etc/local.d/00will-stop.stop" ... [ ok ] * Starting local ... * Executing "/etc/local.d/00will-start.start" ... [ ok ] * Executing "/etc/local.d/01 test.start" ... [ ok ] Example output with failing executables: * Stopping local ... * Executing "/etc/local.d/00will-stop.stop" ... [ ok ] * Executing "/etc/local.d/will-fail.stop" ... mount: can't find foo in /etc/fstab * Execution of "/etc/local.d/will-fail.stop" failed. [ !! ] * Starting local ... * Executing "/etc/local.d/00will-start.start" ... [ ok ] * Executing "/etc/local.d/01 test.start" ... [ ok ] * Executing "/etc/local.d/will-fail2.start" ... mount: can't find bar in /etc/fstab * Execution of "/etc/local.d/will-fail2.start" failed. [ !! ] * Executing "/etc/local.d/will-fail.start" ... mount: can't find foo in /etc/fstab * Execution of "/etc/local.d/will-fail.start" failed. [ !! ] X-Gentoo-Bug: 489274 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489274
2014-07-04sysctl.Linux.in: remove -lxc from keywordsKaarle Ritvanen
certain tunables can be set independently for each container X-Gentoo-Bug: 516050 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516050
2014-07-01Schedule removal of the opts variable from service scriptsWilliam Hubbs