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}/openssl rix,
@{bin}/rm rix, @{bin}/rm rix,
@{bin}/sscg rix, @{bin}/sscg rix,
@{bin}/sync rix,
@{bin}/tr rix, @{bin}/tr rix,
/etc/machine-id r, /etc/machine-id r,

View file

@ -10,6 +10,8 @@ include <tunables/global>
profile cockpit-desktop @{exec_path} { profile cockpit-desktop @{exec_path} {
include <abstractions/base> include <abstractions/base>
userns,
@{exec_path} mr, @{exec_path} mr,
include if exists <local/cockpit-desktop> 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, /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, owner @{run}/cockpit/tls/{,**} rw,
include if exists <local/cockpit-tls> include if exists <local/cockpit-tls>

View file

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