Proposal: amend the packaging guidelines for %fillup_only
Hi list,
our packaging guidelines for %fillup_only [1] currently do not suggest
anything for the %files section for the files generated in
`/etc/sysconfig/`. I would like to suggest that we start adding the newly
generated file `/etc/sysconfig/$pkgname` as follows to the %files
section:
--8<---------------cut here---------------start------------->8---
%files
%ghost %config(noreplace) %attr(0600,root,root) /etc/sysconfig/%{name}
%dir /etc/sysconfig
--8<---------------cut here---------------end--------------->8---
This ensures that rpm is aware of the files as configuration files.
Thoughts, opinions?
Cheers,
Dan
Footnotes:
[1] https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#%fillup_on...
--
Dan Čermák
Aaron Puchert
Am 24.08.23 um 13:06 schrieb Dan Čermák via openSUSE Factory:
%files %ghost %config(noreplace) %attr(0600,root,root) /etc/sysconfig/%{name} %dir /etc/sysconfig
Not directly related, but all files in my /etc/sysconfig have mode 0644. Are you suggesting to change that?
Hm, I think we should leave the permissions up to the packager. There
are packages where you might put sensitive data into the config file and
hence having it world readable is not a good idea. For other packages it
might be required.
Cheers,
Dan
--
Dan Čermák
Hi, what happened to this proposal? I think it would be a good idea to track the generated files as being ghost owned by the respective package (users are more likely to `rpm -qf` the files in /etc/sysconfig as opposed to knowing /usr/share/fillup-templates/... needs to be queried instead), but it seems to currently not be allowed by "E: suse-filelist-forbidden-sysconfig (Badness: 10000)". Cheers, Georg
participants (3)
-
Aaron Puchert
-
Dan Čermák
-
Georg Pfuetzenreuter