]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: improve error messages in ID-mapping hook
authorKarel Zak <kzak@redhat.com>
Tue, 28 Jan 2025 12:23:15 +0000 (13:23 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 3 Feb 2025 11:34:41 +0000 (12:34 +0100)
commit1760fd11641bc60d1a0f62583c9e5b63ddd7d8f2
tree790edf10dbf6eb39db8bdf7cd1d7ef1e8201c12e
parent8369f2a7c46df5b4813f39c5f2f1e60c35500f75
libmount: improve error messages in ID-mapping hook

* save failed syscall status
* allow to read messages from kernel
* add proper error messages if kernel is silent

OLD:
  mount: /foo: mount failed: Unknown error 5013.
NEW:
  mount: /foo: mount_setattr() failed: cannot set ID-mapping: Operation not permitted.

Addresses: https://github.com/util-linux/util-linux/issues/3373
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/hook_idmap.c