feat(profiles): ensure bin, sbin compatibility for (u)mount.
This commit is contained in:
parent
779853dc7f
commit
24056c8cd1
5 changed files with 15 additions and 13 deletions
|
|
@ -6,7 +6,7 @@ abi <abi/3.0>,
|
||||||
|
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = /{usr/,}bin/mount
|
@{exec_path} = /{usr/,}{s,}bin/mount
|
||||||
profile mount @{exec_path} flags=(complain) {
|
profile mount @{exec_path} flags=(complain) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
# apparmor.d - Full set of apparmor profiles
|
# apparmor.d - Full set of apparmor profiles
|
||||||
# Copyright (C) 2020-2021 Mikhail Morfikov
|
# Copyright (C) 2020-2022 Mikhail Morfikov
|
||||||
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
abi <abi/3.0>,
|
abi <abi/3.0>,
|
||||||
|
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = /{usr/,}sbin/mount.cifs
|
@{exec_path} = /{usr/,}{s,}bin/mount.cifs
|
||||||
profile mount-cifs @{exec_path} flags=(complain) {
|
profile mount-cifs @{exec_path} flags=(complain) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
# apparmor.d - Full set of apparmor profiles
|
# apparmor.d - Full set of apparmor profiles
|
||||||
# Copyright (C) 2019-2021 Mikhail Morfikov
|
# Copyright (C) 2019-2022 Mikhail Morfikov
|
||||||
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
abi <abi/3.0>,
|
abi <abi/3.0>,
|
||||||
|
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = /{usr/,}sbin/mount.nfs
|
@{exec_path} = /{usr/,}{s,}bin/mount.nfs
|
||||||
profile mount-nfs @{exec_path} flags=(complain) {
|
profile mount-nfs @{exec_path} flags=(complain) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
|
|
@ -26,11 +27,11 @@ profile mount-nfs @{exec_path} flags=(complain) {
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/{usr/,}bin/{,ba,da}sh rix,
|
/{usr/,}{s,}bin/start-statd rix,
|
||||||
/{usr/,}sbin/start-statd rix,
|
/{usr/,}bin/{,ba,da}sh rix,
|
||||||
/{usr/,}bin/flock rix,
|
/{usr/,}bin/flock rix,
|
||||||
|
|
||||||
/usr/bin/systemctl rPx -> child-systemctl,
|
/usr/bin/systemctl rPx -> child-systemctl,
|
||||||
|
|
||||||
/etc/fstab r,
|
/etc/fstab r,
|
||||||
/etc/netconfig r,
|
/etc/netconfig r,
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ profile spectre-meltdown-checker @{exec_path} {
|
||||||
/{usr/,}bin/{,@{multiarch}-}objdump rix,
|
/{usr/,}bin/{,@{multiarch}-}objdump rix,
|
||||||
/{usr/,}{s,}bin/iucode_tool rix,
|
/{usr/,}{s,}bin/iucode_tool rix,
|
||||||
/{usr/,}bin/dmesg rix,
|
/{usr/,}bin/dmesg rix,
|
||||||
/{usr/,}bin/mount rix,
|
/{usr/,}{s,}bin/mount rix,
|
||||||
/{usr/,}bin/find rix,
|
/{usr/,}bin/find rix,
|
||||||
/{usr/,}bin/xargs rix,
|
/{usr/,}bin/xargs rix,
|
||||||
/{usr/,}bin/readlink rix,
|
/{usr/,}bin/readlink rix,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ abi <abi/3.0>,
|
||||||
|
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = /{usr/,}bin/umount
|
@{exec_path} = /{usr/,}{s,}bin/umount
|
||||||
profile umount @{exec_path} flags=(complain) {
|
profile umount @{exec_path} flags=(complain) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
|
|
@ -26,8 +26,8 @@ profile umount @{exec_path} flags=(complain) {
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/{usr/,}sbin/umount.* rPx,
|
/{usr/,}{s,}bin/umount.* rPx,
|
||||||
/{usr/,}sbin/mount.* rPx,
|
/{usr/,}{s,}bin/mount.* rPx,
|
||||||
|
|
||||||
# Mount points
|
# Mount points
|
||||||
@{HOME}/ r,
|
@{HOME}/ r,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue