Related: jira#RHEL-34216
Cherry-picked from Fedora Rawhide: https://src.fedoraproject.org/rpms/cockpit/c/8274674330 https://src.fedoraproject.org/rpms/cockpit/c/4590eb7340
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/cockpit#1fd0512356a037b7a9995076c57fdb2b103abb34