Proper setting of %ghost file spec section in order to rpm -V to be silent wrt to mode differs ('M') change - handling db & log files

Zbigniew Jędrzejewski-Szmek zbyszek at
Thu Feb 5 19:01:42 UTC 2015

On Thu, Feb 05, 2015 at 04:57:13PM +0100, Vít Ondruch wrote:
> To fix this problem, you should use the %attr directive:
> %ghost %attr(644, root, root) %{gem_libdir}/bundler/vendor/thor

I wasn't able to get rpm to be silent about /var/log/journal, though,
because of the ACLs:

$ rpm -V systemd
.M.......    /var/log/journal
$ stat /var/log/journal
Access: (2755/drwxr-sr-x)  Uid: (    0/    root)   Gid: (  190/systemd-journal)
$ grep attr *spec
%dir %attr(2755,root,systemd-journal) %{_localstatedir}/log/journal


More information about the devel mailing list