2021-04-01 17:17:47 +02:00
|
|
|
# apparmor.d - Full set of apparmor profiles
|
|
|
|
# Copyright (C) 2018-2021 Mikhail Morfikov
|
2024-02-07 00:16:21 +01:00
|
|
|
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
|
2021-04-01 17:17:47 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
abi <abi/3.0>,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <tunables/global>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2023-08-23 00:23:47 +02:00
|
|
|
@{exec_path} = @{bin}/dumpe2fs @{bin}/e2mmpstatus
|
2020-09-12 17:19:23 +02:00
|
|
|
profile dumpe2fs @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/disks-read>
|
|
|
|
include <abstractions/nameservice-strict>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
2023-02-08 00:15:18 +01:00
|
|
|
# Image files
|
|
|
|
owner @{user_img_dirs}/{,**} r,
|
|
|
|
|
2023-08-17 21:01:53 +02:00
|
|
|
owner @{run}/blkid/blkid.tab{,-@{rand6}} rw,
|
2020-10-25 10:23:34 +01:00
|
|
|
owner @{run}/blkid/blkid.tab.old rwl -> @{run}/blkid/blkid.tab,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2023-08-18 18:09:53 +02:00
|
|
|
/dev/tty@{int} rw,
|
2023-03-07 18:57:57 +01:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/dumpe2fs>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|