]> git.pld-linux.org Git - packages/unbound.git/commitdiff
restrict access to /etc/unbound/{,unbound.conf}
authorJan Palus <atler@pld-linux.org>
Sat, 8 Apr 2023 16:38:42 +0000 (18:38 +0200)
committerJan Palus <atler@pld-linux.org>
Sat, 8 Apr 2023 16:38:42 +0000 (18:38 +0200)
/etc/unbound dir:
- own by unbound user
- allow only exec bit for others

/etc/unbound/unbound.conf file:
- own by unbound user
- disallow access for others

unbound.spec

index 7419bf93c4b6a4f547857ebdb09cd9669fb4038e..abf4d4cfb53cbdae5829a7ee04f9133a58d05d02 100644 (file)
@@ -220,8 +220,8 @@ fi
 %doc doc/{CREDITS,Changelog,FEATURES,LICENSE,README,TODO,control_proto_spec.txt,example.conf,ietf67-design-02.pdf,requirements.txt}
 %attr(754,root,root) /etc/rc.d/init.d/unbound
 %{systemdunitdir}/%{name}.service
-%dir %{_sysconfdir}/%{name}
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/unbound.conf
+%attr(751,unbound,root) %dir %{_sysconfdir}/%{name}
+%attr(640,unbound,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/unbound.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/named.cache
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/icannbundle.pem
 %attr(755,root,root) %{_sbindir}/unbound
This page took 0.057842 seconds and 4 git commands to generate.