diff --git a/apparmor.d/profiles-a-f/btrfs b/apparmor.d/profiles-a-f/btrfs index 8f43838b9..f4988db8f 100644 --- a/apparmor.d/profiles-a-f/btrfs +++ b/apparmor.d/profiles-a-f/btrfs @@ -8,7 +8,7 @@ abi , include @{exec_path} = @{bin}/{btrfs,btrfsck} -profile btrfs @{exec_path} { +profile btrfs @{exec_path} flags=(attach_disconnected) { include include include @@ -47,9 +47,9 @@ profile btrfs @{exec_path} { @{PROC}/partitions r, owner @{PROC}/@{pid}/mounts r, - /dev/btrfs-control rw, - /dev/tty@{int} rw, - owner /dev/pts/@{int} rw, + /dev/btrfs-control rw, + /dev/tty@{int} rw, + /dev/pts/@{int} rw, include if exists