linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] cifs-utils: update the cap bounding set only when CAP_SETPCAP is given
@ 2020-11-21 11:11 Jonas Witschel
  2020-11-21 11:11 ` [PATCH 1/2] mount.cifs: " Jonas Witschel
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jonas Witschel @ 2020-11-21 11:11 UTC (permalink / raw)
  To: linux-cifs; +Cc: Jonas Witschel

libcap-ng 0.8.1 tightened the error checking on capng_apply [1], returning an
error of -4 [2] when trying to update the capability bounding set without
having the CAP_SETPCAP capability to be able to do so.

Existing applications need to accommodate these changes [3], see e.g. the
corresponding changes in GNOME Keyring [4].

This patch series fixes mount.cifs and cifs.upall to work with libcapn-ng
0.8.1, while maintaining backwards compatibility with previous versions.

[1] https://github.com/stevegrubb/libcap-ng/commit/6a24a9c5e2f3af1d56430417ee8c9a04ead38e6c
[2] https://github.com/stevegrubb/libcap-ng/commit/2ab6a03b78cfa7620641c772d13ddbf3b405576b
[3] https://github.com/stevegrubb/libcap-ng/issues/21
[4] https://gitlab.gnome.org/GNOME/gnome-keyring/-/commit/ebc7bc9efacc17049e54da8d96a4a29943621113

Jonas Witschel (2):
  mount.cifs: update the cap bounding set only when CAP_SETPCAP is given
  cifs.upall: update the cap bounding set only when CAP_SETPCAP is given

 cifs.upcall.c | 7 ++++++-
 mount.cifs.c  | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

-- 
2.29.2

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-12-09 19:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-21 11:11 [PATCH 0/2] cifs-utils: update the cap bounding set only when CAP_SETPCAP is given Jonas Witschel
2020-11-21 11:11 ` [PATCH 1/2] mount.cifs: " Jonas Witschel
2020-11-21 11:11 ` [PATCH 2/2] cifs.upall: " Jonas Witschel
2020-11-24 12:11 ` [PATCH 0/2] cifs-utils: " Aurélien Aptel
2020-11-24 13:37   ` Jonas Witschel
2020-11-27 10:01     ` Aurélien Aptel
2020-12-09 19:15       ` Pavel Shilovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).