[pulseaudio] 01/02: Add fchmod patch from upstream to avoid "fchmod denied" errors

David Henningsson diwic-guest at moszumanska.debian.org
Mon Feb 15 15:43:13 UTC 2016


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

diwic-guest pushed a commit to branch ubuntu-snappy
in repository pulseaudio.

commit 27e634e4df589ddea0294b30769a2c38ae3188af
Author: David Henningsson <david.henningsson at canonical.com>
Date:   Mon Feb 15 16:35:04 2016 +0100

    Add fchmod patch from upstream to avoid "fchmod denied" errors
    
    Signed-off-by: David Henningsson <david.henningsson at canonical.com>
---
 debian/patches/0103-fchmod.patch | 23 +++++++++++++++++++++++
 debian/patches/series            |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/0103-fchmod.patch b/debian/patches/0103-fchmod.patch
new file mode 100644
index 0000000..46fe203
--- /dev/null
+++ b/debian/patches/0103-fchmod.patch
@@ -0,0 +1,23 @@
+From c021bfc6e06035d6b913cc6a05df1ee7ee2588f2 Mon Sep 17 00:00:00 2001
+From: Julien Isorce <julien.isorce at gmail.com>
+Date: Sat, 10 Oct 2015 20:11:21 +0100
+Subject: core-util: avoid calling fchmod if already right mode
+
+fchmod is denied in chromium sandbox.
+
+diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
+index 278ad63..2099686 100644
+--- a/src/pulsecore/core-util.c
++++ b/src/pulsecore/core-util.c
+@@ -343,7 +343,7 @@ again:
+ #endif
+ 
+ #ifdef HAVE_FCHMOD
+-    if (fchmod(fd, m) < 0) {
++    if ((st.st_mode & 07777) != m && fchmod(fd, m) < 0) {
+         pa_assert_se(pa_close(fd) >= 0);
+         goto fail;
+     };
+-- 
+cgit v0.10.2
+
diff --git a/debian/patches/series b/debian/patches/series
index be9de78..f8b5de4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -13,6 +13,7 @@
 # Patches cherrypicked from upstream
 0101-conf-parser-add-support-for-.d-directories.patch
 0102-client-conf-daemon-conf-enable-.d-directories.patch
+0103-fchmod.patch
 
 # Ubuntu touch stuff
 0202-dont-probe-ucm.patch

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



More information about the pkg-pulseaudio-devel mailing list