Apparently there were gaps in my understanding. I came to realization that RC_TMPDIR, which I thought to be /lib/rc/tmp, turned out to be /run/openrc/tmp.
Thus, I can conclude /lib/rc/tmp should be safe to remove. With that said, there are other state data such as /lib/rc/{cache,console} that are better off under /var/lib instead. I'll be pursuing to make such changes upstreamed. On Thu, Aug 31, 2023, 4:09 PM Timothy Kenno Handojo <kenno...@gmail.com> wrote: > Package: openrc > Severity: normal > X-Debbugs-Cc: kenno...@gmail.com > > Dear Maintainer, > > I've began conducting my investigation on the temporary files within /lib > directory. > > Looking thru the source code itself, there's no mention of this directory > except for where it was defined & validated. > > There is a github issue discussing this: > https://github.com/OpenRC/openrc/issues/339 > > It appears to have been stale for a while. I am inciting further > discussion in hope we can move further. > > -- System Information: > Debian Release: trixie/sid > APT prefers unstable > APT policy: (500, 'unstable') > Architecture: amd64 (x86_64) > > Kernel: Linux 6.1.0-10-amd64 (SMP w/8 CPU threads; PREEMPT) > Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), > LANGUAGE=en_US:en > Shell: /bin/sh linked to /usr/bin/dash > Init: systemd (via /run/systemd/system) > LSM: AppArmor: enabled >