libct: remove deprecated APIs#5141
Conversation
|
The only remaining deprecation marked with |
|
All CI is failing with: |
|
Yeah I need to fix that, but I just realised that a better solution would be to just go ahead with @kolyshkin's suggestion and move |
|
Makes sense. But IMHO I wouldn't block 1.5.0-rc.1 on that being merged. |
0a002b2 to
c3eac91
Compare
|
I've split that bit out to a separate commit, let me move it to another PR... |
c3eac91 to
8c6f52b
Compare
Ref: a412bd9 ("libct/utils: remove Deprecated functions") Signed-off-by: Aleksa Sarai <[email protected]>
These were all marked deprecated in commit a75076b ("Switch to opencontainers/cgroups") when we switched maintenance of our cgroup code to opencontainers/cgroups. Users have had ample time to switch to opencontainers/cgroups themselves, so we can finally remove this. Signed-off-by: Aleksa Sarai <[email protected]>
This was deprecated in commit e6a4870e4ac40 ("libct: better errors for
hooks"), and users have had ample time to migrate to Hooks.Run since.
Signed-off-by: Aleksa Sarai <[email protected]>
8c6f52b to
0bb11d8
Compare
These were inadvertently added to our exported APIs by commit
eeda7bdf80cca ("Add memory policy support"). We couldn't remove them
from runc 1.4.x, but we deprecated them in commit 3741f91
("libct/configs: mark MPOL_* constants as deprecated") and marked them
for removal in runc 1.5. Users should never have used these in the first
place.
Signed-off-by: Aleksa Sarai <[email protected]>
These were all marked deprecated in commit a75076b ("Switch to opencontainers/cgroups") when we switched maintenance of our cgroup code to opencontainers/cgroups. Users have had ample time to switch to opencontainers/cgroups themselves, so we can finally remove this. Note that the whole libcontainer/devices package will be moved to moby/sys in the near future, so this whole package will be marked deprecated soon. Signed-off-by: Aleksa Sarai <[email protected]>
This was a really ugly hack to try to reduce the impact of our original set of CVE-2019-5736 mitigations, but unfortunately had too many caveats to its use to ever be really useful. In addition, it was completely obsoleted by the migration to using an detached overlayfs mount in commit 515f09f ("dmz: use overlayfs to write-protect /proc/self/exe if possible"). Signed-off-by: Aleksa Sarai <[email protected]>
This comment was marked as resolved.
This comment was marked as resolved.
0bb11d8 to
e67725c
Compare
libcontainer/configs/cgroup_deprecated.golibcontainer/devices/device_deprecated.goconfigs.HooksList.RunHooksconfigs.MPOL_*Fixes #5120
Signed-off-by: Aleksa Sarai [email protected]