summaryrefslogtreecommitdiff
path: root/debian/patches/0160-fix_tighten_default_umask.patch
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-26 19:32:34 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-26 19:32:34 +0100
commit665bbcae09168c39c73117e04c5f14d09e25b50c (patch)
tree7f49401e0ee6b9fed693e764fb1e96a7801f2115 /debian/patches/0160-fix_tighten_default_umask.patch
parenta67d929a8725f0a0ee722bd49f698602d33b6a77 (diff)
Rename and refresh the patches
Diffstat (limited to 'debian/patches/0160-fix_tighten_default_umask.patch')
-rw-r--r--debian/patches/0160-fix_tighten_default_umask.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/0160-fix_tighten_default_umask.patch b/debian/patches/0160-fix_tighten_default_umask.patch
new file mode 100644
index 0000000..96e6342
--- /dev/null
+++ b/debian/patches/0160-fix_tighten_default_umask.patch
@@ -0,0 +1,20 @@
+Description: Change default XSane umask from 0007 to 0077
+ A default umask of 0007 can be mildly insecure in a multiuser environment,
+ so tighten things up a bit and go with 0077 instead.
+Author: Adrien Thebo
+Bug-Debian: http://bugs.debian.org/592972
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/611950
+
+Index: xsane-0.998/src/xsane.h
+===================================================================
+--- xsane-0.998.orig/src/xsane.h 2011-02-04 19:50:32.653016002 +0100
++++ xsane-0.998/src/xsane.h 2011-06-02 15:26:56.869664052 +0200
+@@ -104,7 +104,7 @@
+ #define XSANE_DEBUG_ENVIRONMENT "XSANE_DEBUG"
+
+ #define XSANE_PROGRESS_BAR_MIN_DELTA_PERCENT 0.025
+-#define XSANE_DEFAULT_UMASK 0007
++#define XSANE_DEFAULT_UMASK 0077
+ #define XSANE_HOLD_TIME 200
+ #define XSANE_CONTINUOUS_HOLD_TIME 10
+ #define XSANE_DEFAULT_DEVICE "SANE_DEFAULT_DEVICE"