Debian: Do not alter the permissions of cupsd.conf, ever

Origin: vendor
Bug: https://github.com/OpenPrinting/cups/pull/36
This commit is contained in:
Martin Pitt 2016-08-09 18:11:41 +02:00 committed by su-fang
parent 80ded4e934
commit bc32b6771a
1 changed files with 2 additions and 0 deletions

View File

@ -1132,10 +1132,12 @@ cupsdReadConfiguration(void)
Group, 1, 1) < 0 || Group, 1, 1) < 0 ||
cupsdCheckPermissions(ServerRoot, "ssl", 0700, RunUser, cupsdCheckPermissions(ServerRoot, "ssl", 0700, RunUser,
Group, 1, 0) < 0 || Group, 1, 0) < 0 ||
/* Never alter permissions of central conffile
cupsdCheckPermissions(ConfigurationFile, NULL, ConfigFilePerm, RunUser, cupsdCheckPermissions(ConfigurationFile, NULL, ConfigFilePerm, RunUser,
Group, 0, 0) < 0 || Group, 0, 0) < 0 ||
cupsdCheckPermissions(CupsFilesFile, NULL, ConfigFilePerm, RunUser, cupsdCheckPermissions(CupsFilesFile, NULL, ConfigFilePerm, RunUser,
Group, 0, 0) < 0 || Group, 0, 0) < 0 ||
*/
cupsdCheckPermissions(ServerRoot, "classes.conf", 0600, RunUser, cupsdCheckPermissions(ServerRoot, "classes.conf", 0600, RunUser,
Group, 0, 0) < 0 || Group, 0, 0) < 0 ||
cupsdCheckPermissions(ServerRoot, "printers.conf", 0600, RunUser, cupsdCheckPermissions(ServerRoot, "printers.conf", 0600, RunUser,