feat(profile): update kernerl-install.
This commit is contained in:
parent
44970624e6
commit
d8a37c728b
1 changed files with 17 additions and 11 deletions
|
|
@ -11,22 +11,19 @@ include <tunables/global>
|
||||||
profile kernel-install @{exec_path} {
|
profile kernel-install @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
|
include <abstractions/disks-read>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
|
capability sys_resource,
|
||||||
|
|
||||||
|
ptrace read peer=@{p_systemd},
|
||||||
|
|
||||||
@{exec_path} r,
|
@{exec_path} r,
|
||||||
@{sh_path} rix,
|
@{sh_path} rix,
|
||||||
|
@{coreutils_path} rix,
|
||||||
@{bin}/mountpoint rix,
|
|
||||||
@{bin}/sort rix,
|
|
||||||
@{bin}/rm rix,
|
|
||||||
@{bin}/mkdir rix,
|
|
||||||
@{bin}/cp rix,
|
|
||||||
@{bin}/chown rix,
|
|
||||||
@{bin}/chmod rix,
|
|
||||||
@{bin}/basename rix,
|
|
||||||
|
|
||||||
@{pager_path} rPx -> child-pager,
|
|
||||||
@{bin}/kmod rCx -> kmod,
|
@{bin}/kmod rCx -> kmod,
|
||||||
|
@{bin}/mountpoint rix,
|
||||||
|
@{pager_path} rPx -> child-pager,
|
||||||
|
|
||||||
@{lib}/kernel/install.d/ r,
|
@{lib}/kernel/install.d/ r,
|
||||||
@{lib}/kernel/install.d/@{int2}-*.install rix,
|
@{lib}/kernel/install.d/@{int2}-*.install rix,
|
||||||
|
|
@ -37,6 +34,7 @@ profile kernel-install @{exec_path} {
|
||||||
@{lib}/os-release r,
|
@{lib}/os-release r,
|
||||||
/etc/kernel/cmdline r,
|
/etc/kernel/cmdline r,
|
||||||
/etc/kernel/tries r,
|
/etc/kernel/tries r,
|
||||||
|
/etc/kernel/entry-token r,
|
||||||
/etc/machine-id r,
|
/etc/machine-id r,
|
||||||
/etc/os-release r,
|
/etc/os-release r,
|
||||||
/var/lib/dbus/machine-id r,
|
/var/lib/dbus/machine-id r,
|
||||||
|
|
@ -50,14 +48,22 @@ profile kernel-install @{exec_path} {
|
||||||
owner /boot/loader/entries/ rw,
|
owner /boot/loader/entries/ rw,
|
||||||
owner /boot/loader/entries/*.conf w,
|
owner /boot/loader/entries/*.conf w,
|
||||||
|
|
||||||
|
owner /tmp/kernel-install.staging.@{rand6}/{,**} rw,
|
||||||
|
|
||||||
owner @{tmp}/sh-thd.* rw,
|
owner @{tmp}/sh-thd.* rw,
|
||||||
|
|
||||||
|
@{PROC}/1/environ r,
|
||||||
@{PROC}/cmdline r,
|
@{PROC}/cmdline r,
|
||||||
|
@{PROC}/sys/kernel/osrelease r,
|
||||||
|
|
||||||
profile kmod {
|
profile kmod {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/app/kmod>
|
include <abstractions/app/kmod>
|
||||||
|
|
||||||
|
@{lib}/modules/*/modules.* w,
|
||||||
|
|
||||||
|
@{sys}/module/compression r,
|
||||||
|
|
||||||
include if exists <local/kernel-install_kmod>
|
include if exists <local/kernel-install_kmod>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue