Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37543419
en ru br
ALT Linux repositórios
S:2.4.7-alt1
5.0: 1.3.10-alt1
4.1: 1.3.10-alt0.M41.4
+updates:1.3.9-alt1.M41.1
4.0: 1.2.12-alt6.M40.9
+updates:1.2.12-alt6.M40.8
3.0: 1.1.20-alt14.1

Group :: Sistema/Servidores
RPM: cups

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: ALT-lspp-context-via-tcp.patch
Download


MLS context can be transferred by TCP, not only by unix socket
--- cups/scheduler/client.c	2019-04-05 13:09:49.166885653 +0000
+++ cups/scheduler/client.c	2019-04-05 13:10:04.790358141 +0000
@@ -287,12 +287,9 @@
       */
       if ((con->auid = client_pid_to_auid(cr.pid)) == -1)
       {
-        httpClose(con->http);
-        cupsdLogClient(con, CUPSD_LOG_ERROR,
+        cupsdLogClient(con, CUPSD_LOG_INFO,
 		       "Unable to determine client auid for client pid=%d",
 		       cr.pid);
-        free(con);
-        return;
       }
       cupsdLogClient(con, CUPSD_LOG_INFO,
 		     "peer's pid=%d, uid=%d, gid=%d, auid=%d",
@@ -308,10 +308,8 @@
     */
     if (getpeercon(httpGetFd(con->http), &con->scon))
     {
-      httpClose(con->http);
+      cupsdSetString(&con->scon, UNKNOWN_SL);
       cupsdLogClient(con, CUPSD_LOG_ERROR, "getpeercon() failed");
-      free(con);
-      return; 
     }
 
     cupsdLogClient(con, CUPSD_LOG_INFO, "client context=%s", con->scon);
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009