freebsd-dev/libexec/rc
Xin LI 39e8c2a29a cleanvar: Be more careful when cleaning up /var.
The cleanvar script uses find -delete to remove stale files under /var,
which could lead to unwanted removal of files in some unusual scenarios.
For example, when a mounted fdescfs(5) is present under /var/run/samba/fd,
find(1) could descend into a directory that is out of /var/run and remove
files that should not be removed.

To mitigate this, modify the script to use find -x, which restricts the
find scope to one file system only instead of descending into mounted
file systems.

PR:		269213
MFC after:	1 week
2023-02-12 20:56:17 -08:00
..
rc.d cleanvar: Be more careful when cleaning up /var. 2023-02-12 20:56:17 -08:00
tests rc: Start testing the rc(8) framework (beginning with *_oomprotect) 2022-07-26 15:39:39 +02:00
Makefile rc.sendmail: remove unused script 2022-11-09 16:55:18 +01:00
netstart Retire synchronous PPP kernel driver sppp(4). 2021-10-22 11:41:36 -07:00
network.subr network.subr: Fix infinite loop 2023-01-02 10:20:05 -08:00
pccard_ether
rc rc: Allow the removal of firstboot_sentinel on read-only file systems 2022-02-10 12:43:19 -07:00
rc.bsdextended pkgbase: Really move rc.bsdextended 2019-05-22 07:39:59 +00:00
rc.conf utx: Allow disabling user accounting 2023-02-08 08:52:54 +01:00
rc.firewall rc.firewall: Merge two identical conditions into one. 2020-07-23 15:03:28 +00:00
rc.initdiskless rc.initdiskless: Fix a typo in a comment 2023-01-19 14:17:37 +01:00
rc.resume rcorder(8): add support for /etc/rc.resume, so it calls "rcorder -k resume" 2018-10-27 17:21:13 +00:00
rc.shutdown rc.shutdown: kill shutdown process after logging message 2019-12-07 00:33:08 +00:00
rc.subr rc.subr: Minor formatting fix for ac102a2a6 2022-12-28 16:00:56 -08:00
rc.suspend