feat(profile): upgrade cockpit profiles.

This commit is contained in:
Alexandre Pujol 2025-07-06 22:14:25 +02:00
parent bfc6c51821
commit af8c66e9bf
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
4 changed files with 9 additions and 1 deletions

View file

@ -21,6 +21,7 @@ profile cockpit-certificate-helper @{exec_path} {
@{bin}/openssl rix,
@{bin}/rm rix,
@{bin}/sscg rix,
@{bin}/sync rix,
@{bin}/tr rix,
/etc/machine-id r,

View file

@ -10,6 +10,8 @@ include <tunables/global>
profile cockpit-desktop @{exec_path} {
include <abstractions/base>
userns,
@{exec_path} mr,
include if exists <local/cockpit-desktop>

View file

@ -17,6 +17,9 @@ profile cockpit-tls @{exec_path} flags=(attach_disconnected) {
/etc/cockpit/ws-certs.d/{,**} r,
@{att}/@{run}/cockpit/wsinstance/https@@{hex64}.sock r,
@{att}/@{run}/cockpit/wsinstance/https-factory.sock rw,
owner @{run}/cockpit/tls/{,**} rw,
include if exists <local/cockpit-tls>

View file

@ -7,7 +7,7 @@ abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{lib}/cockpit/cockpit-ws
profile cockpit-ws @{exec_path} {
profile cockpit-ws @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
@ -21,6 +21,8 @@ profile cockpit-ws @{exec_path} {
/usr/share/pixmaps/{,**} r,
/etc/cockpit/ws-certs.d/ r,
@{run}/cockpit/wsinstance/https@@{hex64}.sock r,
owner @{PROC}/@{pid}/cgroup r,
owner @{PROC}/@{pid}/fd/ r,