feat(profile): general update.

This commit is contained in:
Alexandre Pujol 2023-12-06 20:00:40 +00:00
parent 1307250250
commit cc133e5f57
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
26 changed files with 49 additions and 106 deletions

View file

@ -102,8 +102,8 @@ profile arduino @{exec_path} {
@{sys}/class/tty/ r,
@{sys}/devices/pci[0-9]*/**/usb[0-9]/**/{idVendor,idProduct,manufacturer,serial,product} r,
/dev/ttyS[0-9]* rw,
/dev/ttyACM[0-9]* rw,
/dev/ttyS@{int} rw,
/dev/ttyACM@{int} rw,
# Silencer
deny /usr/share/arduino/** w,

View file

@ -14,5 +14,7 @@ profile cups-backend-serial @{exec_path} {
/etc/papersize r,
/dev/ttyS@{int} w,
include if exists <local/cups-backend-serial>
}

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = @{lib}/cups/backend/snmp
profile cups-backend-snmp @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
network inet dgram,
network inet6 dgram,

View file

@ -66,7 +66,7 @@ profile cupsd @{exec_path} flags=(attach_disconnected) {
@{lib}/cups/driver/* rix,
@{lib}/cups/filter/* rix,
@{lib}/cups/monitor/* rix,
@{lib}/cups/notifier/* rix,
@{lib}/cups/notifier/* rPx,
/usr/share/cups/{,**} r,
/usr/share/ghostscript/{,**} r,

View file

@ -63,8 +63,8 @@ profile fritzing @{exec_path} {
@{run}/udev/data/c5:@{int} r, # for /dev/tty, /dev/console, /dev/ptmx
@{run}/udev/data/c166:[0-9]* r, # for /dev/ttyACM[0-9]*
/dev/ttyS[0-9]* rw,
/dev/ttyACM[0-9]* rw,
/dev/ttyS@{int} rw,
/dev/ttyACM@{int} rw,
owner @{run}/lock/LCK..ttyACM[0-9]* rwk,