feat(profile): update apt profiles.
This commit is contained in:
parent
17d9df3e27
commit
c2633c2fae
4 changed files with 31 additions and 28 deletions
|
|
@ -13,7 +13,6 @@ profile apt @{exec_path} flags=(attach_disconnected) {
|
|||
include <abstractions/common/apt>
|
||||
include <abstractions/bus-system>
|
||||
include <abstractions/bus/org.freedesktop.login1>
|
||||
include <abstractions/bus/org.freedesktop.PackageKit>
|
||||
include <abstractions/bus/org.freedesktop.PolicyKit1>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
|
@ -37,11 +36,22 @@ profile apt @{exec_path} flags=(attach_disconnected) {
|
|||
unix bind type=stream addr=@@{udbus}/bus/apt-get/system,
|
||||
unix bind type=stream addr=@@{udbus}/bus/apt/system,
|
||||
|
||||
unix type=stream peer=(label=snap),
|
||||
unix (send, receive) type=stream peer=(label=apt-esm-json-hook),
|
||||
unix (send, receive) type=stream peer=(label=snapd),
|
||||
|
||||
#aa:dbus own bus=system name=org.debian.apt
|
||||
|
||||
#aa:dbus talk bus=system name=org.freedesktop.PackageKit label=packagekitd
|
||||
dbus send bus=system path=/org/freedesktop/PackageKit
|
||||
interface=org.freedesktop.DBus.Introspectable
|
||||
member=Introspect
|
||||
peer=(name=org.freedesktop.PackageKit),
|
||||
dbus send bus=system path=/org/freedesktop/PackageKit
|
||||
interface=org.freedesktop.PackageKit
|
||||
member=StateHasChanged
|
||||
peer=(name=org.freedesktop.PackageKit),
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/DBus/Bus
|
||||
interface=org.freedesktop.DBus
|
||||
member={GetConnectionUnixProcessID,GetConnectionUnixUser}
|
||||
|
|
|
|||
|
|
@ -17,15 +17,16 @@ profile command-not-found @{exec_path} {
|
|||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/python>
|
||||
|
||||
capability dac_read_search,
|
||||
|
||||
@{exec_path} r,
|
||||
@{python_path} r,
|
||||
|
||||
@{bin}/lsb_release rPx -> lsb_release,
|
||||
@{bin}/snap rPx,
|
||||
|
||||
@{lib}/@{python_name}/dist-packages/CommandNotFound/**/__pycache__/*.cpython-@{int}.pyc.@{int} w,
|
||||
@{bin}/lsb_release rPx -> lsb_release,
|
||||
@{bin}/snap rPx,
|
||||
|
||||
@{lib}/ r,
|
||||
@{lib}/@{python_name}/dist-packages/CommandNotFound/{,**/}__pycache__/*.cpython-@{int}.pyc.@{int} w,
|
||||
|
||||
/usr/share/command-not-found/{,**} r,
|
||||
|
||||
|
|
|
|||
|
|
@ -21,34 +21,26 @@ profile dpkg @{exec_path} {
|
|||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sh_path} rix,
|
||||
@{bin}/cat rix,
|
||||
@{bin}/rm rix,
|
||||
@{sh_path} rix,
|
||||
@{bin}/cat rix,
|
||||
@{bin}/deb-systemd-helper rix,
|
||||
@{bin}/deb-systemd-invoke rix,
|
||||
@{bin}/rm rix,
|
||||
|
||||
@{bin}/deb-systemd-helper rix,
|
||||
@{bin}/deb-systemd-invoke rix,
|
||||
@{bin}/dpkg-deb rpx,
|
||||
@{bin}/dpkg-query rpx,
|
||||
@{bin}/dpkg-split rPx,
|
||||
@{bin}/systemctl rCx -> systemctl,
|
||||
@{lib}/needrestart/dpkg-status rPx,
|
||||
@{bin}/dpkg-deb rpx,
|
||||
@{bin}/dpkg-query rpx,
|
||||
@{bin}/dpkg-split rpx,
|
||||
@{bin}/systemctl rCx -> systemctl,
|
||||
@{lib}/needrestart/dpkg-status rPx,
|
||||
/usr/share/debian-security-support/check-support-status.hook rPx,
|
||||
|
||||
@{pager_path} rPx -> child-pager,
|
||||
|
||||
# Package maintainer's scripts
|
||||
/var/lib/dpkg/info/*.{config,templates} rPUx,
|
||||
/var/lib/dpkg/info/*.{preinst,postinst} rPUx,
|
||||
/var/lib/dpkg/info/*.{prerm,postrm} rPUx,
|
||||
/var/lib/dpkg/tmp.ci/{config,templates} rPUx,
|
||||
/var/lib/dpkg/tmp.ci/{preinst,postinst} rPUx,
|
||||
/var/lib/dpkg/tmp.ci/{prerm,postrm} rPUx,
|
||||
#/var/lib/dpkg/info/*.{config,templates} rCx -> scripts,
|
||||
#/var/lib/dpkg/info/*.{preinst,postinst} rCx -> scripts,
|
||||
#/var/lib/dpkg/info/*.{prerm,postrm} rCx -> scripts,
|
||||
#/var/lib/dpkg/tmp.ci/{config,templates} rCx -> scripts,
|
||||
#/var/lib/dpkg/tmp.ci/{preinst,postinst} rCx -> scripts,
|
||||
#/var/lib/dpkg/tmp.ci/{prerm,postrm} rCx -> scripts,
|
||||
/var/lib/dpkg/info/*.@{dpkg_script_ext} rPUx,
|
||||
/var/lib/dpkg/info/*.control r,
|
||||
|
||||
/var/lib/dpkg/tmp.ci/@{dpkg_script_ext} rPUx,
|
||||
|
||||
# For shell pwd
|
||||
/root/ r,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ abi <abi/4.0>,
|
|||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/dpkg
|
||||
profile child-dpkg {
|
||||
profile child-dpkg flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue