2021-04-01 17:17:47 +02:00
|
|
|
# apparmor.d - Full set of apparmor profiles
|
|
|
|
# Copyright (C) 2021 Mikhail Morfikov
|
2024-02-07 00:16:21 +01:00
|
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
2021-04-01 17:17:47 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2021-02-13 15:00:16 +01:00
|
|
|
|
|
|
|
abi <abi/3.0>,
|
|
|
|
|
|
|
|
include <tunables/global>
|
|
|
|
|
2023-07-09 15:23:22 +02:00
|
|
|
@{exec_path} = @{bin}/arduino-builder
|
2021-02-13 15:00:16 +01:00
|
|
|
profile arduino-builder @{exec_path} {
|
|
|
|
include <abstractions/base>
|
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
2023-07-09 15:23:22 +02:00
|
|
|
@{bin}/ r,
|
|
|
|
@{bin}/avr-g++ rix,
|
|
|
|
@{bin}/avr-gcc rix,
|
|
|
|
@{bin}/avr-gcc-ar rix,
|
|
|
|
@{bin}/avr-size rix,
|
|
|
|
@{bin}/avrdude rix,
|
2023-08-18 18:09:53 +02:00
|
|
|
@{lib}/gcc/avr/@{int}/cc1plus rix,
|
|
|
|
@{lib}/gcc/avr/@{int}/cc1 rix,
|
|
|
|
@{lib}/gcc/avr/@{int}/collect2 rix,
|
|
|
|
@{lib}/gcc/avr/@{int}/lto-wrapper rix,
|
|
|
|
@{lib}/gcc/avr/@{int}/lto1 rix,
|
2023-07-09 15:23:22 +02:00
|
|
|
@{lib}/llvm-[0-9]*/bin/clang rix,
|
|
|
|
@{lib}/avr/bin/as rix,
|
|
|
|
@{lib}/avr/bin/ar rix,
|
|
|
|
@{lib}/avr/bin/ld rix,
|
|
|
|
@{lib}/avr/bin/objcopy rix,
|
|
|
|
|
|
|
|
@{bin}/arduino-ctags rPx,
|
2021-02-13 15:00:16 +01:00
|
|
|
|
|
|
|
/usr/share/arduino/{,**} r,
|
|
|
|
/usr/share/arduino-builder/{,**} r,
|
|
|
|
|
|
|
|
/usr/share/doc/arduino/{,**} r,
|
|
|
|
|
|
|
|
owner @{HOME}/Arduino/{,**} r,
|
|
|
|
|
|
|
|
/tmp/ r,
|
2024-05-02 23:12:02 +02:00
|
|
|
owner @{tmp}/cc* rw,
|
|
|
|
owner @{tmp}/untitled[0-9]*.tmp/{,**} rw,
|
|
|
|
owner @{tmp}/arduino_{build,cache}_[0-9]*/{,**} rw,
|
|
|
|
owner @{tmp}/arduino_modified_sketch_[0-9]*/{,**} rw,
|
2021-02-13 15:00:16 +01:00
|
|
|
|
|
|
|
include if exists <local/arduino-builder>
|
|
|
|
}
|
2024-06-15 16:13:21 +02:00
|
|
|
|
|
|
|
# vim:syntax=apparmor
|