2021-04-01 17:17:47 +02:00
|
|
|
# apparmor.d - Full set of apparmor profiles
|
|
|
|
# Copyright (C) 2019-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-07-09 15:23:22 +02:00
|
|
|
@{exec_path} = @{bin}/cfdisk
|
2020-09-12 17:19:23 +02:00
|
|
|
profile cfdisk @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/disks-write>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
capability sys_admin,
|
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
|
|
|
/etc/fstab r,
|
|
|
|
|
|
|
|
# A place for backups
|
|
|
|
owner @{HOME}/**.{bak,back} rwk,
|
2022-06-12 23:51:37 +02:00
|
|
|
owner @{MOUNTS}/**.{bak,back} rwk,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2023-02-08 00:15:18 +01:00
|
|
|
# A place for file images
|
|
|
|
owner @{user_img_dirs}/{,**} rwk,
|
|
|
|
|
2023-08-17 21:01:53 +02:00
|
|
|
owner @{run}/blkid/blkid.tab{,-@{rand6}} rw,
|
2023-02-08 00:15:18 +01:00
|
|
|
owner @{run}/blkid/blkid.tab.old rwl -> @{run}/blkid/blkid.tab,
|
|
|
|
|
|
|
|
@{PROC}/partitions r,
|
|
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/cfdisk>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|