[Pkg-voip-commits] [asterisk] 01/01: suppress_warning_rasterisk.patch

tzafrir at debian.org tzafrir at debian.org
Fri Jan 3 23:26:44 UTC 2014


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master
in repository asterisk.

commit b2169bf94fbefa6de9cb65c07bf47d0efd74bcd2
Author: Tzafrir Cohen <tzafrir at debian.org>
Date:   Sat Jan 4 01:25:15 2014 +0200

    suppress_warning_rasterisk.patch
    
    Suppress a warning when rasterisk (asterisk -r) is run and
    live_dangerously was not disabled.
---
 debian/changelog                                |  7 +++++
 debian/patches/series                           |  1 +
 debian/patches/suppress_warning_rasterisk.patch | 42 +++++++++++++++++++++++++
 3 files changed, 50 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 690c525..aa4addd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+asterisk (1:11.7.0~dfsg-2) UNRELEASED; urgency=low
+
+  * suppress_warning_rasterisk.patch: rasterisk should not print a
+    warning.
+
+ -- Tzafrir Cohen <tzafrir at debian.org>  Sat, 04 Jan 2014 01:23:28 +0200
+
 asterisk (1:11.7.0~dfsg-1) unstable; urgency=high
 
   * New upstream security release (Closes: #732355).
diff --git a/debian/patches/series b/debian/patches/series
index 5f9376c..e10e909 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -31,3 +31,4 @@ hyphen
 reenable
 freeradius-client
 ignore_failed_channels.patch
+suppress_warning_rasterisk.patch
diff --git a/debian/patches/suppress_warning_rasterisk.patch b/debian/patches/suppress_warning_rasterisk.patch
new file mode 100644
index 0000000..e2020be
--- /dev/null
+++ b/debian/patches/suppress_warning_rasterisk.patch
@@ -0,0 +1,42 @@
+From: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
+Date: Fri, 3 Jan 2014 22:24:18 +0000
+Subject: suppress live_dangerously warning on rasterisk
+Bug: https://issues.asterisk.org/jira/browse/ASTERISK-23084
+Origin: http://svnview.digium.com/svn/asterisk?view=rev&rev=404888
+
+Even since the fixes of AST-2013-007, Asterisk prints the following
+warning on startup if the user decided to live dangerously:
+
+  Privilege escalation protection disabled!
+  See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
+
+This message is intended for the logs and interactive startup. No need
+for it to appear on a remote console. This commit removes it from there.
+
+Patch included upstream and wil be part of version 11.8.0 .
+
+Review: https://reviewboard.asterisk.org/r/3101/
+
+Merged revisions 404861 from http://svn.asterisk.org/svn/asterisk/branches/1.8
+---
+ main/asterisk.c |    4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/main/asterisk.c b/main/asterisk.c
+index 0ed1b2b..b8bd4be 100644
+--- a/main/asterisk.c
++++ b/main/asterisk.c
+@@ -3421,7 +3421,9 @@ static void ast_readconfig(void)
+ 			live_dangerously = ast_true(v->value);
+ 		}
+ 	}
+-	pbx_live_dangerously(live_dangerously);
++	if (!ast_opt_remote) {
++		pbx_live_dangerously(live_dangerously);
++	}
+ 	for (v = ast_variable_browse(cfg, "compat"); v; v = v->next) {
+ 		float version;
+ 		if (sscanf(v->value, "%30f", &version) != 1) {
+-- 
+1.7.10.4
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/asterisk.git



More information about the Pkg-voip-commits mailing list