feat(profile): add initial structure some snap tools.

This commit is contained in:
Alexandre Pujol 2023-12-06 20:02:15 +00:00
parent cc133e5f57
commit a777161846
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
5 changed files with 90 additions and 0 deletions

View 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>
}

View 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>
}

View 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>
}

View 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>
}

View 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>
}