Commit 34c8ae13 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by Zheng Zengkai
Browse files

Revert 95ebabde ("capabilities: Don't allow writing ambiguous v3 file capabilities")

stable inclusion
from stable-5.10.24
commit 5d5422a294e6c0756993288ec372ed445a2ccdfe
bugzilla: 51348

--------------------------------

commit 3b0c2d3e upstream.

It turns out that there are in fact userspace implementations that
care and this recent change caused a regression.

https://github.com/containers/buildah/issues/3071



As the motivation for the original change was future development,
and the impact is existing real world code just revert this change
and allow the ambiguity in v3 file caps.

Cc: stable@vger.kernel.org
Fixes: 95ebabde ("capabilities: Don't allow writing ambiguous v3 file capabilities")
Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatar  Weilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 1fad3c70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment