[sr-dev] git:3.3: pkg/kamailio/fedora/16: Updated .spec to set ownership of /etc/ kamailio to kamailio.kamailio

Peter Dunkley peter.dunkley at crocodile-rcs.com
Sat Oct 20 01:33:42 CEST 2012


Module: sip-router
Branch: 3.3
Commit: d1a8ba7f07c19bece6423b6a0cef63d7b284b5cd
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d1a8ba7f07c19bece6423b6a0cef63d7b284b5cd

Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Date:   Sat Oct 20 00:29:07 2012 +0100

pkg/kamailio/fedora/16: Updated .spec to set ownership of /etc/kamailio to kamailio.kamailio

- Means that file-based DB (e.g. sqlite) files kept in /etc/kamailio can be
  written to by processes (including kamailio itself) run by the kamailio user.
(cherry picked from commit eb45b8ccb4d859e7726889a4fae50941bd6c8e43)

---

 pkg/kamailio/fedora/16/kamailio.spec |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/pkg/kamailio/fedora/16/kamailio.spec b/pkg/kamailio/fedora/16/kamailio.spec
index 2bec890..a91366f 100644
--- a/pkg/kamailio/fedora/16/kamailio.spec
+++ b/pkg/kamailio/fedora/16/kamailio.spec
@@ -533,7 +533,7 @@ fi
 %doc %{_docdir}/kamailio/modules_k/README.usrloc
 %doc %{_docdir}/kamailio/modules_k/README.xlog
 
-%dir %{_sysconfdir}/kamailio
+%dir %attr(-,kamailio,kamailio) %{_sysconfdir}/kamailio
 %config(noreplace) %{_sysconfdir}/kamailio/*
 %if 0%{?fedora}
 %config %{_unitdir}/*
@@ -940,6 +940,8 @@ fi
 
 
 %changelog
+* Fri Oct 20 2012 Peter Dunkley <peter at dunkley.me.uk>
+  - Set ownership of /etc/kamailio to kamailio.kamailio
 * Tue Oct 16 2012 Peter Dunkley <peter at dunkley.me.uk>
   - Updated ver to 3.3.2
 * Fri Aug 3 2012 Peter Dunkley <peter at dunkley.me.uk>




More information about the sr-dev mailing list