]>
git.ipfire.org Git - thirdparty/cups.git/log
Michael R Sweet [Fri, 16 May 2025 22:31:29 +0000 (18:31 -0400)]
Remove old files/targets.
Michael R Sweet [Fri, 16 May 2025 22:29:09 +0000 (18:29 -0400)]
OAuth/OpenID improvements/bug fixes:
- Add cupsOAuthGetUserId and start caching user_id tokens with the access_token.
- Support sharing of client_id, client_secret, server metadata, and server JWKS
from the sysconfig directory (typically /etc/cups).
Michael R Sweet [Fri, 16 May 2025 22:28:38 +0000 (18:28 -0400)]
Update cupsJWTNew to accept a claims argument with the initial JSON claims.
Michael R Sweet [Fri, 16 May 2025 22:28:19 +0000 (18:28 -0400)]
Add support for CUPS_USERCONFIG and CUPS_SYSCONFIG environment variables.
Michael R Sweet [Fri, 16 May 2025 22:27:20 +0000 (18:27 -0400)]
Refactor "add new printers" template to look better with new buttons.
Michael R Sweet [Wed, 14 May 2025 16:36:02 +0000 (12:36 -0400)]
Changelog and update configure script.
Michael R Sweet [Wed, 14 May 2025 16:34:38 +0000 (12:34 -0400)]
Merge pull request #1258 from MaxKellermann/at_secure
cups/globals: use getauxval(AT_SECURE) for SUID check
Michael R Sweet [Wed, 14 May 2025 16:19:43 +0000 (12:19 -0400)]
Sanitize requesting-user-name as needed (Issue #1145)
Michael R Sweet [Wed, 14 May 2025 16:15:50 +0000 (12:15 -0400)]
Sanitize requesting-user-name as needed (Issue #1145)
Michael R Sweet [Wed, 14 May 2025 11:25:55 +0000 (07:25 -0400)]
Fix apparent cupsd freeze with zombie clients (Issue #1264)
Michael R Sweet [Tue, 13 May 2025 14:56:47 +0000 (10:56 -0400)]
Use locale-insensitive decoding of real numbers (Issue #1263)
Michael R Sweet [Sun, 11 May 2025 14:43:04 +0000 (10:43 -0400)]
Send printer-added/modified events after creating and installing IPP Everywhere PPDs (Issue #1244)
Michael R Sweet [Sun, 11 May 2025 14:31:35 +0000 (10:31 -0400)]
Stop trying to CI an i386 build of CUPS - always fails.
Michael R Sweet [Sat, 10 May 2025 22:22:53 +0000 (18:22 -0400)]
Fix header.tmpl and associated makefiles for updated language stuff.
Max Kellermann [Sat, 10 May 2025 20:54:48 +0000 (22:54 +0200)]
cups/globals: use getauxval(AT_SECURE) for SUID check
Comparing effective and real uid/gid is not a proper way to check for
SUID execution:
1. this does not consider file capabilities
2. this check breaks when NO_NEW_PRIVS is used as the Linux kernel
resets effective ids during execve(); this means the check is
false, but the process still has raised capabilities
For more details about the NO_NEW_PRIVS problem, check this post and
the surrounding thread:
https://lore.kernel.org/lkml/
20250509184105 .840928-1-max.kellermann@ionos.com/
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Michael R Sweet [Fri, 9 May 2025 12:30:56 +0000 (08:30 -0400)]
Merge pull request #1255 from OpenPrinting/oauth-web-ui
Integrate OAuth Web UI changes to master.
Michael R Sweet [Fri, 9 May 2025 12:29:31 +0000 (08:29 -0400)]
Disable new 'guarded free' warning. This is not an error...
Michael R Sweet [Wed, 7 May 2025 15:50:50 +0000 (11:50 -0400)]
Use printer-modified event when changing the default printer (Issue #1246)
Michael R Sweet [Wed, 7 May 2025 15:40:51 +0000 (11:40 -0400)]
Fix NuGet dependency on LibreSSL 4.0.0.
Michael R Sweet [Wed, 7 May 2025 15:38:18 +0000 (11:38 -0400)]
Fix testppd unit test - wrong fullbleed size name.
Michael R Sweet [Wed, 7 May 2025 14:34:32 +0000 (10:34 -0400)]
Fix IPP/PPD names with period and underscore (Issue #1249)
Michael R Sweet [Tue, 6 May 2025 01:12:32 +0000 (21:12 -0400)]
Update cups-x509 and cups-oauth commands to be consistent with man pages.
Michael R Sweet [Tue, 6 May 2025 01:00:00 +0000 (21:00 -0400)]
Update cups-oauth and cups-x509 man pages.
Michael R Sweet [Mon, 5 May 2025 22:42:18 +0000 (18:42 -0400)]
Sync up with libcups code (minor changes).
Michael R Sweet [Mon, 5 May 2025 12:07:52 +0000 (08:07 -0400)]
Move CUPS_SID to cgi.h and use it as the state string for OAuth.
Increase buffer sizes to allow for very large JWTs.
Michael R Sweet [Mon, 5 May 2025 12:07:39 +0000 (08:07 -0400)]
Add support for JWKS URL.
Michael R Sweet [Fri, 2 May 2025 18:21:44 +0000 (14:21 -0400)]
Save work on OAuth login/logout workflow (still having some difficulties)
Michael R Sweet [Fri, 2 May 2025 18:19:18 +0000 (14:19 -0400)]
Fix default client_id for MS Entrada ID in cupsOAuthGetTokens.
Michael R Sweet [Fri, 2 May 2025 17:56:55 +0000 (13:56 -0400)]
Add some debugging to HTTP field APIs.
Provide the same default scopes for both authorization APIs.
Michael R Sweet [Thu, 1 May 2025 23:09:25 +0000 (19:09 -0400)]
Save the new cookie pointer.
Michael R Sweet [Thu, 1 May 2025 22:43:53 +0000 (18:43 -0400)]
Update httpSetCookie to support multiple Set-Cookie values.
Michael R Sweet [Thu, 1 May 2025 19:21:19 +0000 (15:21 -0400)]
Wire up support for CUPS_BEARER cookie in authentication, and add
REMOTE_USER (username/sub), REMOTE_NAME (real name), and REMOTE_EMAIL
(email address) environment variables that get copied from the JWT or
GECOS data.
Michael R Sweet [Thu, 1 May 2025 18:27:38 +0000 (14:27 -0400)]
Cookie handling support:
- Add httpGetCookieValue API.
- Increase CGI cookie value size limit to 2k.
Michael R Sweet [Wed, 30 Apr 2025 19:25:01 +0000 (15:25 -0400)]
Make home page another CGI - we'll need it for OAuth login/logout and
that will allow us to provide whole-server search and simple dashboard
alert functionality..
Michael R Sweet [Wed, 30 Apr 2025 17:26:03 +0000 (13:26 -0400)]
Bump copyright.
Michael R Sweet [Wed, 30 Apr 2025 17:24:48 +0000 (13:24 -0400)]
Fix typo in ipptool man page.
Michael R Sweet [Fri, 25 Apr 2025 14:51:04 +0000 (10:51 -0400)]
Fix user URIs.
Michael R Sweet [Thu, 17 Apr 2025 19:29:03 +0000 (15:29 -0400)]
Only enable and accept jobs for temporary queues once IPP Everywhere PPD is created (Issue #1235)
Michael R Sweet [Thu, 17 Apr 2025 19:09:10 +0000 (15:09 -0400)]
Fix VC++ ippeveprinter project.
Michael R Sweet [Thu, 17 Apr 2025 19:02:06 +0000 (15:02 -0400)]
Fix typo.
Michael R Sweet [Thu, 17 Apr 2025 18:56:07 +0000 (14:56 -0400)]
Fix dbus notifier (Issue #1235)
Michael R Sweet [Thu, 17 Apr 2025 18:34:53 +0000 (14:34 -0400)]
Add rwlock to Subscriptions and subscription objects since we send
events from a background thread.
Michael R Sweet [Thu, 17 Apr 2025 17:51:03 +0000 (13:51 -0400)]
Coverity fixes to new tools.
Michael R Sweet [Wed, 16 Apr 2025 20:50:36 +0000 (16:50 -0400)]
Fix coverity-detected issues.
Michael R Sweet [Wed, 16 Apr 2025 19:14:38 +0000 (15:14 -0400)]
Merge pull request #1234 from AZero13/okds
Add missing commas in list
Rose [Wed, 16 Apr 2025 17:30:01 +0000 (13:30 -0400)]
Add missing commas in list
Michael R Sweet [Wed, 16 Apr 2025 16:49:00 +0000 (12:49 -0400)]
Use HTTP_AUTHORIZATION in CGI programs (Issue #246)
Michael R Sweet [Wed, 16 Apr 2025 16:37:46 +0000 (12:37 -0400)]
Add CUPS_OAUTH_SCOPES, CUPS_OAUTH_SERVER, and HTTP_AUTHORIZATION environment
variables for CGI programs (Issue #246)
Michael R Sweet [Wed, 16 Apr 2025 16:30:32 +0000 (12:30 -0400)]
Clear realname, email, and autherror fields between requests (Issue #246)
Michael R Sweet [Wed, 16 Apr 2025 16:29:03 +0000 (12:29 -0400)]
Set job-originating-user-xxx attributes using OAuth values when possible (Issue #246)
Michael R Sweet [Wed, 16 Apr 2025 16:22:08 +0000 (12:22 -0400)]
Add OAuth support to cupsdIsAuthorized (Issue #246)
Michael R Sweet [Wed, 16 Apr 2025 15:59:38 +0000 (11:59 -0400)]
More OAuth additions (Issue #246):
- Make cupsOAuthGetJWKS a public API (previously just a static function) since
any service will need it for validating JWTs.
- Implement OAuth support in cupsdAuthorize().
- Add OAuthJWKS global and manage it in cupsdReadConfiguration().
Michael R Sweet [Wed, 16 Apr 2025 14:35:20 +0000 (10:35 -0400)]
Add -a option to lookup and report addresses, and --help option to show all of the things you can do with testhttp...
Michael R Sweet [Tue, 15 Apr 2025 17:51:22 +0000 (13:51 -0400)]
Update client code to issue proper Bearer response, potentially with an error
message. Still need to hook everything up...
Michael R Sweet [Tue, 15 Apr 2025 15:41:33 +0000 (11:41 -0400)]
Add OAuth directives.
Michael R Sweet [Tue, 15 Apr 2025 14:52:10 +0000 (10:52 -0400)]
Fix potential memory leak.
Michael R Sweet [Tue, 15 Apr 2025 00:10:23 +0000 (20:10 -0400)]
Address some clang-reported warnings.
Michael R Sweet [Mon, 14 Apr 2025 23:43:44 +0000 (19:43 -0400)]
Add default client ID for MS Entrada ID.
Michael R Sweet [Mon, 14 Apr 2025 23:40:49 +0000 (19:40 -0400)]
Move hostname change logic (not sure why git didn't commit this earlier...
Michael R Sweet [Mon, 14 Apr 2025 14:40:41 +0000 (10:40 -0400)]
Fix DNS-SD sharing issues (Issue #1217)
- Follow mDNS hostname changes unless explicitly configured with the
DNSSDHostName directive.
- Add DNSSDComputerName directive to control the "@ computer name" suffix on
share names.
- Update registrations whenever we detect a conflict or a hostname change.
- Add RWLock for Printers array so that we can iterate over the printers list
in the registration callback (separate thread).
- Update cupsd.conf man page.
Michael R Sweet [Fri, 11 Apr 2025 14:39:53 +0000 (10:39 -0400)]
Fix loop in fix for httpClose (Issue #1223)
Michael R Sweet [Fri, 11 Apr 2025 13:51:00 +0000 (09:51 -0400)]
Fix memory leak in httpClose (Issue #1223)
Michael R Sweet [Thu, 10 Apr 2025 20:44:48 +0000 (16:44 -0400)]
Merge pull request #1216 from zdohnal/idleexittimout-noondemand
cupsd.conf: Remove IdleExitTimeout if no ondemand support
Zdenek Dohnal [Thu, 10 Apr 2025 06:14:04 +0000 (08:14 +0200)]
cupsd.conf: Remove IdleExitTimeout if no ondemand support
There are distributions using CUPS without ondemand support, where
IdleExitTimeout in cupsd.conf causes error in logs...
Related #1215
Michael R Sweet [Mon, 7 Apr 2025 19:19:30 +0000 (15:19 -0400)]
Add httpGetSecurity API.
Michael R Sweet [Mon, 7 Apr 2025 14:30:52 +0000 (10:30 -0400)]
Mirror ippfind timeout fix from 2.4.x.
Michael R Sweet [Mon, 7 Apr 2025 12:26:08 +0000 (08:26 -0400)]
Update fix for ippDateToTime.
Michael R Sweet [Fri, 4 Apr 2025 16:35:28 +0000 (12:35 -0400)]
Fix code formatting.
Michael R Sweet [Fri, 4 Apr 2025 15:31:49 +0000 (11:31 -0400)]
Bump copyright.
Michael R Sweet [Fri, 4 Apr 2025 15:26:37 +0000 (11:26 -0400)]
Fix copy/paste error in Avahi cupsDNSSDBrowseNew code.
Use cupsGetClock API in ippfind to measure time, and timeout if nothing
comes in after 2.5 seconds in "forever" mode.
Michael R Sweet [Tue, 21 May 2024 19:09:56 +0000 (15:09 -0400)]
Fix snapshot version number.
Michael R Sweet [Thu, 3 Apr 2025 15:27:24 +0000 (11:27 -0400)]
Update localizations and fix issues.
Michael R Sweet [Thu, 3 Apr 2025 14:52:49 +0000 (10:52 -0400)]
Fix conditional to match.
Michael R Sweet [Thu, 3 Apr 2025 14:45:27 +0000 (10:45 -0400)]
Use cupsGetClock for cupsEnumDests (Issue #1084)
Michael R Sweet [Thu, 3 Apr 2025 01:24:54 +0000 (21:24 -0400)]
Fix language tests on macOS.
Michael R Sweet [Thu, 3 Apr 2025 00:53:00 +0000 (20:53 -0400)]
Temporarily disable string tests on macOS - need to remove bundle localization code.
Michael R Sweet [Wed, 2 Apr 2025 20:05:03 +0000 (16:05 -0400)]
Log debug history if the backend fails (Issue #1205)
Michael R Sweet [Wed, 2 Apr 2025 19:41:28 +0000 (15:41 -0400)]
Use cupsdCreateConfFile and friends when updating a PPD file (Issue #1109)
Michael R Sweet [Wed, 2 Apr 2025 19:27:36 +0000 (15:27 -0400)]
Ignore PageSize, PageRegion, InputSlot, and MediaType when media is specified (Issue #1125)
Michael R Sweet [Wed, 2 Apr 2025 19:22:39 +0000 (15:22 -0400)]
Allow media to override PageSize, InputSlot, and MediaType (Issue #1125)
Michael R Sweet [Wed, 2 Apr 2025 19:13:05 +0000 (15:13 -0400)]
Drop non-keyword characters from PPD names (Issue #1118)
Michael R Sweet [Wed, 2 Apr 2025 15:31:08 +0000 (11:31 -0400)]
Update new Swedish templates for latest web interface changes.
Michael R Sweet [Wed, 2 Apr 2025 15:24:39 +0000 (11:24 -0400)]
Changelog for translation updates.
Michael R Sweet [Wed, 2 Apr 2025 15:24:16 +0000 (11:24 -0400)]
Merge pull request #1153 from multi-stager/patch-1
Update Dockerfile to Multi-Stage
Michael R Sweet [Wed, 2 Apr 2025 15:22:22 +0000 (11:22 -0400)]
Merge pull request #1161 from Matthaiks/pl
Update Polish translation
Michael R Sweet [Wed, 2 Apr 2025 15:21:53 +0000 (11:21 -0400)]
Merge branch 'master' into pl
Michael R Sweet [Wed, 2 Apr 2025 15:20:46 +0000 (11:20 -0400)]
Merge pull request #1164 from EkaterinePapava/master
locale: Add Georgian translation
Michael R Sweet [Wed, 2 Apr 2025 15:19:31 +0000 (11:19 -0400)]
Merge pull request #1146 from yeager/master
Adding Swedish translation
Michael R Sweet [Wed, 2 Apr 2025 15:17:57 +0000 (11:17 -0400)]
Merge pull request #1120 from zdohnal/no-queue-override
libcups: Don't overwrite permanent queue with network during discovery
Michael R Sweet [Wed, 2 Apr 2025 15:17:35 +0000 (11:17 -0400)]
Merge branch 'master' into no-queue-override
Michael R Sweet [Wed, 2 Apr 2025 14:11:14 +0000 (10:11 -0400)]
Fix job-completed event notifications for jobs that are canceled before they are started (Issue #1209)
Michael R Sweet [Tue, 1 Apr 2025 23:33:30 +0000 (19:33 -0400)]
More web interface tweaks (Issue #1207)
Michael R Sweet [Tue, 1 Apr 2025 23:29:50 +0000 (19:29 -0400)]
Fix heading spacing on the home page.
Michael R Sweet [Tue, 1 Apr 2025 23:25:32 +0000 (19:25 -0400)]
More logging cleanup.
Michael R Sweet [Tue, 1 Apr 2025 21:57:20 +0000 (17:57 -0400)]
More web interface cleanup (Issue #1207)
Michael R Sweet [Tue, 1 Apr 2025 18:53:22 +0000 (14:53 -0400)]
Avoid double make strings (Make Make Model)
Michael R Sweet [Tue, 1 Apr 2025 17:45:37 +0000 (13:45 -0400)]
Multiple fixes:
- Fix encryption support (new httpSetEncryption function returns true on success)
- Demote many developer messages to debug2 log level.
- Adopt cupsdLogPrinter in a few places.
- Normalize a few other messages.
Michael R Sweet [Tue, 1 Apr 2025 17:29:54 +0000 (13:29 -0400)]
Publish DNS-SD services and normalize log messages.
Michael R Sweet [Tue, 1 Apr 2025 17:29:28 +0000 (13:29 -0400)]
Add cupsdLogPrinter function.
Michael R Sweet [Sun, 30 Mar 2025 23:32:07 +0000 (19:32 -0400)]
Update Xcode/VC++ config.h headers.