[HEADS-UP] Moving /var/run and /var/lock to tmpfs in Rawhide

Frank Ch. Eigler fche at redhat.com
Wed Dec 1 04:38:32 UTC 2010


Daniel J Walsh <dwalsh at redhat.com> writes:

> [...]
> So if you create a directory in the postinstall of an rpm, the directory
> will be created as var_run_t (rule 1),  rpm has SELinux intelligence
> built in, but since you did this in postinstall, rpm command does not
> know you did it.  You will have to run restorecon. [...]

If the directories were listed in %files, as %ghost or whatever, rpm
could figure it out, no?  Could we have a single early rpm-based
initscript that creates all /var/run & /var/lock subdirs owned by
installed packages, and selinux-labels them?

- FChE


More information about the devel mailing list