Description of the patch:
This update for watchman fixes the following issues:
-
ship README.suse that explains how to use the template systemd units
-
add user writable bit for systemd service and socket files
-
properly handle state directory creation in /run/watchman/$USER-state. The
former approach was susceptible to a local privilege escalation using
symlinks (CVE-2022-21944, boo#1194470).
-
Added hardening to systemd service(s) (boo#1181400). Modified:
-
removed python2 bindings
-
enabled python3 bindings as python3-watchman
-
Changes in 4.8.0:
- New command
flush-subscriptions to synchronize subscriptions associated
with the current session.
- Enforce socket Unix groups more strongly — Watchman will now refuse to start
if it couldn't gain the right group memberships, as can happen for sites that
are experiencing intermittent LDAP connectivity problems.
- pywatchman now officially supports Python 3. pywatchman will return Unicode
strings (possibly with surrogate escapes) by default, but can optionally return
bytestrings. Note that on Python 3, pywatchman requires Watchman 4.8 and above.
The Python 2 interface and requirements remain unchanged.
- Prior to 4.8, methods on the Java WatchmanClient that returned
ListenableFutures would swallow exceptions and hang in an unfinished state
under situations like socket closure or thread death. This has been fixed, and
now ListenableFutures propagate exception conditions immediately. (Note that
this is typically unrecoverable, and users should create a new WatchmanClient
to re-establish communication with Watchman.) See #412.
- The minimum Java version for the Watchman Java client has always been 1.7,
but it was incorrectly described to be 1.6. The Java client's build file has
been fixed accordingly.
- Watchman was converted from C to C++. The conversion exposed several
concurrency…