feat(abs): add udevadm app abstraction.
This commit is contained in:
parent
39bfa9a40b
commit
035e1da7b2
14 changed files with 51 additions and 178 deletions
|
|
@ -37,26 +37,12 @@ profile f3fix @{exec_path} {
|
|||
|
||||
profile udevadm {
|
||||
include <abstractions/base>
|
||||
include <abstractions/app/udevadm>
|
||||
include <abstractions/disks-write>
|
||||
|
||||
ptrace (read),
|
||||
|
||||
@{bin}/udevadm mr,
|
||||
|
||||
/etc/udev/udev.conf r,
|
||||
|
||||
owner @{PROC}/@{pid}/stat r,
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
@{PROC}/cmdline r,
|
||||
@{PROC}/1/sched r,
|
||||
@{PROC}/1/environ r,
|
||||
@{PROC}/sys/kernel/osrelease r,
|
||||
@{PROC}/sys/kernel/random/boot_id r,
|
||||
|
||||
@{sys}/firmware/efi/efivars/SecureBoot-@{uuid} r,
|
||||
|
||||
# file_inherit
|
||||
/dev/sd[a-z]* rw,
|
||||
ptrace read,
|
||||
|
||||
include if exists <local/f3fix_udevadm>
|
||||
}
|
||||
|
||||
include if exists <local/f3fix>
|
||||
|
|
|
|||
|
|
@ -36,26 +36,10 @@ profile fatresize @{exec_path} {
|
|||
|
||||
profile udevadm {
|
||||
include <abstractions/base>
|
||||
include <abstractions/app/udevadm>
|
||||
include <abstractions/disks-write>
|
||||
|
||||
ptrace (read),
|
||||
|
||||
@{bin}/udevadm mr,
|
||||
|
||||
/etc/udev/udev.conf r,
|
||||
|
||||
owner @{PROC}/@{pid}/stat r,
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
@{PROC}/cmdline r,
|
||||
@{PROC}/1/sched r,
|
||||
@{PROC}/1/environ r,
|
||||
@{PROC}/sys/kernel/osrelease r,
|
||||
@{PROC}/sys/kernel/random/boot_id r,
|
||||
|
||||
@{sys}/firmware/efi/efivars/SecureBoot-@{uuid} r,
|
||||
|
||||
# file_inherit
|
||||
/dev/{s,v}d[a-z]* rw,
|
||||
|
||||
include if exists <local/fatresize_udevadm>
|
||||
}
|
||||
|
||||
include if exists <local/fatresize>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue