mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
feat(profile): add initial structure some snap tools.
This commit is contained in:
parent
cc133e5f57
commit
a777161846
16
apparmor.d/profiles-s-z/snap-bootstrap
Normal file
16
apparmor.d/profiles-s-z/snap-bootstrap
Normal file
@ -0,0 +1,16 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{lib}/snapd/snap-bootstrap
|
||||
profile snap-bootstrap @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/snap-bootstrap>
|
||||
}
|
16
apparmor.d/profiles-s-z/snap-repair
Normal file
16
apparmor.d/profiles-s-z/snap-repair
Normal file
@ -0,0 +1,16 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{lib}/snapd/snap-repair
|
||||
profile snap-repair @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/snap-repair>
|
||||
}
|
22
apparmor.d/profiles-s-z/snapd-aa-prompt-listener
Normal file
22
apparmor.d/profiles-s-z/snapd-aa-prompt-listener
Normal file
@ -0,0 +1,22 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{lib_dirs} = @{lib}/ /snap/snapd/@{int}@{lib}
|
||||
|
||||
@{exec_path} = @{lib_dirs}/snapd/snapd-aa-prompt-listener
|
||||
profile snapd-aa-prompt-listener @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{lib_dirs}/snapd/info r,
|
||||
|
||||
@{PROC}/cmdline r,
|
||||
|
||||
include if exists <local/snapd-aa-prompt-listener>
|
||||
}
|
20
apparmor.d/profiles-s-z/snapd-aa-prompt-ui
Normal file
20
apparmor.d/profiles-s-z/snapd-aa-prompt-ui
Normal file
@ -0,0 +1,20 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{lib}/snapd/snapd-aa-prompt-ui
|
||||
profile snapd-aa-prompt-ui @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/snap/snapd/@{int}@{lib}/snapd/info r,
|
||||
|
||||
@{PROC}/cmdline r,
|
||||
|
||||
include if exists <local/snapd-aa-prompt-ui>
|
||||
}
|
16
apparmor.d/profiles-s-z/snapd-core-fixup
Normal file
16
apparmor.d/profiles-s-z/snapd-core-fixup
Normal file
@ -0,0 +1,16 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{lib}/snapd/snapd.core-fixup.sh
|
||||
profile snapd-core-fixup @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/snapd-core-fixup>
|
||||
}
|
Loading…
Reference in New Issue
Block a user