Compare commits
10 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| a005b52758 | |||
| a7eff275ce | |||
| e9511a53d6 | |||
| c2f3f5ecde | |||
| b2ff2fd029 | |||
| 4a64c892ad | |||
| 7469842c8b | |||
| 54c9059814 | |||
| 48824c5482 | |||
| 70a977d77d |
@@ -1,14 +0,0 @@
|
||||
Index: filelock-3.18.0/src/filelock/_unix.py
|
||||
===================================================================
|
||||
--- filelock-3.18.0.orig/src/filelock/_unix.py
|
||||
+++ filelock-3.18.0/src/filelock/_unix.py
|
||||
@@ -39,6 +39,9 @@ else: # pragma: win32 no cover
|
||||
def _acquire(self) -> None:
|
||||
ensure_directory_exists(self.lock_file)
|
||||
open_flags = os.O_RDWR | os.O_TRUNC
|
||||
+ o_nofollow = getattr(os, "O_NOFOLLOW", None)
|
||||
+ if o_nofollow is not None:
|
||||
+ open_flags |= o_nofollow
|
||||
if not Path(self.lock_file).exists():
|
||||
open_flags |= os.O_CREAT
|
||||
fd = os.open(self.lock_file, open_flags, self._context.mode)
|
||||
@@ -1,8 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 7 09:12:08 UTC 2026 - Nico Krapp <nico.krapp@suse.com>
|
||||
|
||||
- Add CVE-2025-68146.patch to fix CVE-2025-68146 (bsc#1255244)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 19 07:44:21 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
|
||||
@@ -33,8 +33,6 @@ Summary: Platform Independent File Lock in Python
|
||||
License: Unlicense
|
||||
URL: https://github.com/tox-dev/py-filelock
|
||||
Source: https://files.pythonhosted.org/packages/source/f/filelock/filelock-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM CVE-2025-68146.patch bsc#1255244 (gh#tox-dev/filelock/pulls/461, gh#tox-dev/filelock/pulls/463)
|
||||
Patch0: CVE-2025-68146.patch
|
||||
BuildRequires: %{python_module asyncio}
|
||||
BuildRequires: %{python_module hatch_vcs}
|
||||
BuildRequires: %{python_module hatchling}
|
||||
@@ -61,7 +59,7 @@ independent file lock in Python, which provides a simple way of
|
||||
inter-process communication.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n filelock-%{version}
|
||||
%setup -q -n filelock-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
Reference in New Issue
Block a user