-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
abi <abi/3.0>, | ||
|
||
include <tunables/global> | ||
|
||
@{exec_path} = @{bin}/e2scrub_all | ||
profile e2scrub_all @{exec_path} flags=(attach_disconnected) { | ||
include <abstractions/base> | ||
include <abstractions/disks-read> | ||
|
||
capability sys_admin, | ||
capability sys_rawio, | ||
|
||
@{exec_path} mr, | ||
|
||
@{bin}/{,ba,da}sh r, | ||
@{bin}/readlink rix, | ||
|
||
/etc/e2scrub.conf r, | ||
|
||
/dev/tty rw, | ||
|
||
include if exists <local/e2scrub_all> | ||
} |