feat(abs): add the app/kmod abstraction.
This commit is contained in:
parent
cb4f3af58e
commit
13b35b156e
14 changed files with 53 additions and 105 deletions
|
|
@ -48,13 +48,7 @@ profile sensors-detect @{exec_path} {
|
|||
|
||||
profile kmod {
|
||||
include <abstractions/base>
|
||||
|
||||
@{bin}/kmod mr,
|
||||
|
||||
@{lib}/modprobe.d/{,*.conf} r,
|
||||
/etc/modprobe.d/{,*.conf} r,
|
||||
|
||||
@{PROC}/cmdline r,
|
||||
include <abstractions/app/kmod>
|
||||
|
||||
include if exists <local/sensors-detect_udevadm>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -168,20 +168,13 @@ profile spectre-meltdown-checker @{exec_path} {
|
|||
|
||||
profile kmod {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/app/kmod>
|
||||
|
||||
capability sys_module,
|
||||
|
||||
owner @{sys}/module/cpuid/** r,
|
||||
owner @{sys}/module/msr/** r,
|
||||
|
||||
@{bin}/kmod mr,
|
||||
|
||||
/etc/modprobe.d/ r,
|
||||
/etc/modprobe.d/*.conf r,
|
||||
|
||||
@{PROC}/cmdline r,
|
||||
|
||||
include if exists <local/spectre-meltdown-checker_kmod>
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue