Milan Broz
e5405f2fd8
Use #if for HAVE*_H defines.
2025-01-27 11:05:08 +00:00
Milan Broz
8364178b38
Update copyright year.
2025-01-15 23:09:36 +01:00
Milan Broz
661f57def4
Use SPDX license identifiers.
...
This patch switches code to SPDX one-line license identifiers according to
https://spdx.dev/learn/handling-license-info/
and replacing long license text headers.
I used C++ format on the first line in style
// SPDX-License-Identifier: <id>
except exported libcryptsetup.h, when only C comments are used.
The only additional changes are:
- switch backend utf8.c from LGPL2+ to LGPL2.1+ (as in systemd)
- add some additional formatting lines.
2024-06-03 16:38:15 +00:00
Milan Broz
bd0ef58b3a
Update copyright notice to include 2024 year.
2024-01-23 16:10:44 +01:00
Ondrej Kozina
1d0680ce95
Drop unused crypt_read_lock helper.
2023-12-13 20:58:13 +00:00
Milan Broz
d209bb27b4
User more restrictive attributes for device file lock.
2023-03-09 16:55:46 +01:00
Milan Broz
72f799b393
Update Copyright year.
2023-02-09 17:11:18 +01:00
Milan Broz
c7bbae01a6
Fix some strings for translations.
...
No need to translate debug strings.
Fix spaces in key slot queries.
2022-11-20 12:36:26 +01:00
Ondrej Kozina
81c56a8395
Move assert include in internal header files.
2022-11-16 16:54:33 +01:00
Milan Broz
e921991ba5
Annotate LGTM TOCTOU condition.
...
The race here is not avoidable.
2022-06-05 20:38:22 +02:00
Milan Broz
ab975bc1c4
Update copyright year.
...
And unify format in several places.
2022-01-29 10:43:02 +01:00
Abhijit Menon-Sen
26a3f3b058
Fix typo ("Veryfing")
2021-11-02 08:08:28 +01:00
Milan Broz
4471452105
Remove some stale FIXME markings.
2021-02-11 11:12:11 +00:00
Milan Broz
d703301fe8
Mark or remove unused parameters.
...
Mark unused parameters with proper attribute where it is a part
of API or some internal logic.
And remove other unused parameters completely.
2021-02-11 11:12:11 +00:00
Milan Broz
e21e3b298a
Remove WARNING from the debug message.
2021-02-03 21:14:17 +01:00
Milan Broz
f47f6b7fb4
Remove redundant EOL in the previous patch.
2021-02-03 19:56:33 +01:00
Milan Broz
1e7521c056
Rephrase lockinging dir warning and move it to debug level.
...
System should later provide safe transition to tempdir configuration.
2021-02-03 19:37:33 +01:00
Milan Broz
d1d9dd8e20
Update Copyright year.
2021-01-25 22:00:25 +01:00
Milan Broz
b5fbd682f2
Move fcntl.h to internal defines and check for O_CLOEXEC.
2020-02-21 10:10:11 +01:00
Milan Broz
080566a1fd
Update copyright year.
2020-01-03 13:04:55 +01:00
Ondrej Kozina
96a87170f7
Return usage count from device locking functions.
2019-06-12 11:51:08 +02:00
Milan Broz
95bcd0c9d5
Fix previous patch locking to return EBUSY.
2019-04-10 14:27:42 +02:00
Milan Broz
23bada3c5a
Fix several issues found by Coverity scan.
2019-04-10 12:30:09 +02:00
Ondrej Kozina
29b94d6ba3
Add arbitrary resource locking (named locks).
...
It's complementary to current device locking. It'll be used
for mutual exclusion of two or more reencryption resume processes
2019-03-26 14:48:27 +01:00
Ondrej Kozina
9ddcfce915
Refactor locking code.
2019-03-25 11:37:32 +01:00
Ondrej Kozina
6ba358533b
Modify crypt lock handle internal structure.
...
makes it ready for future lock handle type
2019-03-25 11:37:32 +01:00
Ondrej Kozina
88b3924132
Update LUKS2 locks for atomic operations.
...
Atomic operation requires to hold a lock for longer period than
single metadata I/O. Update locks so that we can:
- lock a device more than once (lock ref counting)
- reaquire read lock on already held write lock (write lock
is stronger than read lock)
2019-03-05 17:07:31 +01:00
Milan Broz
a6f5ce8c7b
Update copyright year.
...
And unify name copyright format.
2019-01-25 09:45:57 +01:00
Milan Broz
a5a8467993
Use context in debug log messages.
...
To use per-context logging even for debug messages
we need to use the same macro as for error logging.
2018-11-27 13:37:20 +01:00
Rafael Fontenelle
f35ec9771e
Fix typos
...
A bunch of typos reported by codespell, most of them comments in the code
2018-07-21 07:24:25 -03:00
Milan Broz
b00a87d8fa
Remove trailing EOL for verbose and error messages.
2018-04-26 10:38:17 +02:00
Ondrej Kozina
106e441a61
Add error message explaining locking failure.
2018-02-28 10:36:34 +01:00
Ondrej Kozina
6d22ba9f87
Allow symbolic links in locking path.
...
Allow symbolic links in the initial part of locking path.
If /run/x/y/crypsetup is locking path, starting with
'run' anything may be symbolic link up to (including) 'y'.
2018-02-28 10:36:26 +01:00
Milan Broz
1fe014dbae
Update copyright year.
2018-01-20 17:55:21 +01:00
Andrea Gelmini
a97de38b6b
Fix typos.
2017-11-08 10:22:49 +01:00
Milan Broz
948006561a
Yet another fix for header strings.
2017-09-27 10:54:03 +02:00
Milan Broz
3ccbb8fe84
Fix some problems found by Coverity analysis.
2017-09-27 10:18:38 +02:00
Milan Broz
5536b3a58d
Add implementation of device/file locking for metadata.
...
To be used later.
2017-09-24 19:49:46 +02:00