feat(profile): small general upgrade.
This commit is contained in:
parent
f8250f7e0c
commit
0572688c59
18 changed files with 57 additions and 34 deletions
|
|
@ -17,6 +17,7 @@ profile dmesg.service flags=(attach_disconnected) {
|
|||
|
||||
capability chown,
|
||||
capability fsetid,
|
||||
capability sys_admin,
|
||||
|
||||
ptrace read peer=@{p_systemd},
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# ExecStart=+/usr/bin/install -d -o man -g man -m 0755 /var/cache/man
|
||||
# ExecStart=/usr/bin/find /var/cache/man -type f -name *.gz -atime +6 -delete
|
||||
# ExecStart=/usr/bin/mandb --quiet
|
||||
|
||||
abi <abi/4.0>,
|
||||
|
|
@ -13,6 +14,7 @@ profile man-db.service flags=(attach_disconnected) {
|
|||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
@{bin}/find ix,
|
||||
@{bin}/install ix,
|
||||
@{bin}/mandb r,
|
||||
|
||||
|
|
|
|||
19
apparmor.d/groups/ubuntu/esm_cache
Normal file
19
apparmor.d/groups/ubuntu/esm_cache
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/4.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /usr/lib/ubuntu-advantage/esm_cache.py
|
||||
profile esm_cache @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/python>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/esm_cache>
|
||||
}
|
||||
|
||||
# vim:syntax=apparmor
|
||||
|
|
@ -51,9 +51,9 @@ profile update-manager @{exec_path} flags=(attach_disconnected) {
|
|||
@{bin}/uname rix,
|
||||
@{lib}/apt/methods/http{,s} rPx,
|
||||
|
||||
@{lib}/@{python_name}/dist-packages/UpdateManager/{,**/}__pycache__/*.cpython-@{int}.pyc.@{int} rw,
|
||||
@{lib}/@{python_name}/dist-packages/gi/{,**/}__pycache__/*.cpython-@{int}.pyc.@{int} rw,
|
||||
@{lib}/@{python_name}/dist-packages/uaclient/{,**/}__pycache__/*.cpython-@{int}.pyc.@{int} rw,
|
||||
@{lib}/@{python_name}/dist-packages/UpdateManager/{,**/}__pycache__/*.cpython-@{int}.pyc.@{u64} rw,
|
||||
@{lib}/@{python_name}/dist-packages/gi/{,**/}__pycache__/*.cpython-@{int}.pyc.@{u64} rw,
|
||||
@{lib}/@{python_name}/dist-packages/uaclient/{,**/}__pycache__/*.cpython-@{int}.pyc.@{u64} rw,
|
||||
|
||||
/usr/share/distro-info/{,**} r,
|
||||
/usr/share/ubuntu-release-upgrader/{,**} r,
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ profile lsusb @{exec_path} {
|
|||
|
||||
/etc/udev/hwdb.bin r,
|
||||
|
||||
/dev/bus/usb/@{int}/@{int} w,
|
||||
|
||||
include if exists <local/lsusb>
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ profile sdwdate @{exec_path} flags=(attach_disconnected) {
|
|||
@{bin}/touch rix,
|
||||
@{lib}/helper-scripts/* rix,
|
||||
@{bin}/url_to_unixtime rix,
|
||||
@{bin}/{,e}grep rix,
|
||||
@{bin}/{,e}grep rix,
|
||||
|
||||
@{lib}/helper-scripts/ r,
|
||||
@{lib}/sdwdate/ r,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue