]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Drop support for "Sandboxing off" when running as root on OS X.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Thu, 29 Jan 2015 20:25:06 +0000 (20:25 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Thu, 29 Jan 2015 20:25:06 +0000 (20:25 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12445 a1ca3aef-8c08-0410-bb20-df032aa958be

man/cups-files.conf.man.in
scheduler/conf.c

index 0c63e5441b65194db0bf641717dcda5e2a7803a6..71d952ff1400f9117b8fc3ad2b5e7bb29a0bcdd4 100644 (file)
@@ -157,8 +157,6 @@ Specifies the directory that contains print jobs and other HTTP request data.
 The default is "/var/spool/cups".
 .\"#Sandboxing
 .TP 5
-\fBSandboxing off\fR
-.TP 5
 \fBSandboxing relaxed\fR
 .TP 5
 \fBSandboxing strict\fR
index 352546e850999fcf29ee8afbe30544678b0cf768..78b36943911ed035c433f5f91d0ff31f8b66e475 100644 (file)
@@ -3470,7 +3470,7 @@ read_cups_files_conf(cups_file_t *fp)     /* I - File to read from */
       * Level of sandboxing?
       */
 
-      if (!_cups_strcasecmp(value, "off"))
+      if (!_cups_strcasecmp(value, "off") && getuid())
       {
         Sandboxing = CUPSD_SANDBOXING_OFF;
         cupsdLogMessage(CUPSD_LOG_WARN, "Disabling sandboxing is not recommended (line %d of %s)", linenum, CupsFilesFile);