Hi,

On Tuesday, November 23, 2021 1:37:36 PM CST Steve Grubb wrote:
> Hello,
> 
> I am preparing to migate a F35 system to new hardware and was sanity checking 
> the whole system. One thing I found was that there are a number of system 
> directories that that are not owned by the package that uses them:
> 
> /var/cache/ibus
> /var/cache/PackageKit
> /var/cache/cups
> /var/log/anaconda
> /var/lib/tpm2-tss
> /var/lib/machines
> /var/lib/hsqldb
> /var/lib/cs
> /var/lib/rpcbind
> /var/lib/portables
> /etc/module-build-service
> /etc/default
> /etc/pesign
> /etc/ipa
> /etc/ndctl
> /etc/flatpak

Yes,  I have also noticed issues with directory ownership. However, I am not 
sure what the rules are about packages owning directories under `/var/cache` or 
`/var` in general.  I can tell you that the `filesystem` package owns 
`/var/cache` itself:

```
$ rpm -qf /var/cache                                                            
                 
filesystem-3.14-7.fc35.x86_64
```

There are also some directories that are owned by multiple packages, e.g. shell 
completions packages[1,2], instead of none at all.

> Should there be a gating or other test that catches this?

I think there should be. For your reference, here[3,4] are the sections of the 
Fedora Packaging Guidelines surrounding directory ownership.

Thanks,
Maxwell

[1]: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/ZSXQBRTQ6YJGE4LIBZ32BFABE6BLIOW7/
[2]: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/ERPOO3YGBHUJAMNXCEIUXGGH6LWEA7LN/

[3]: 
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_file_and_directory_ownership
[4]: 
https://docs.fedoraproject.org/en-US/packaging-guidelines/UnownedDirectories/

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to