diff options
Diffstat (limited to 'debian/patches/0030-Do-not-mess-with-the-permissions-of-cupsd.conf.patch')
-rw-r--r-- | debian/patches/0030-Do-not-mess-with-the-permissions-of-cupsd.conf.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/0030-Do-not-mess-with-the-permissions-of-cupsd.conf.patch b/debian/patches/0030-Do-not-mess-with-the-permissions-of-cupsd.conf.patch new file mode 100644 index 000000000..2057a4856 --- /dev/null +++ b/debian/patches/0030-Do-not-mess-with-the-permissions-of-cupsd.conf.patch @@ -0,0 +1,26 @@ +From: Martin Pitt <mpitt@debian.org> +Date: Tue, 9 Aug 2016 18:11:41 +0200 +Subject: Do not mess with the permissions of cupsd.conf. + +Patch-Name: confdirperms.patch +--- + scheduler/conf.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/scheduler/conf.c b/scheduler/conf.c +index b73d33f..31eedbf 100644 +--- a/scheduler/conf.c ++++ b/scheduler/conf.c +@@ -1135,10 +1135,12 @@ cupsdReadConfiguration(void) + Group, 1, 1) < 0 || + cupsdCheckPermissions(ServerRoot, "ssl", 0700, RunUser, + Group, 1, 0) < 0 || ++ /* Never alter permissions of central conffile + cupsdCheckPermissions(ConfigurationFile, NULL, ConfigFilePerm, RunUser, + Group, 0, 0) < 0 || + cupsdCheckPermissions(CupsFilesFile, NULL, ConfigFilePerm, RunUser, + Group, 0, 0) < 0 || ++ */ + cupsdCheckPermissions(ServerRoot, "classes.conf", 0600, RunUser, + Group, 0, 0) < 0 || + cupsdCheckPermissions(ServerRoot, "printers.conf", 0600, RunUser, |