Skip to content

Commit

Permalink
Merge pull request #37 from tim-devel/apparmor
Browse files Browse the repository at this point in the history
Add apparmor.txt
  • Loading branch information
tim-devel authored Jan 29, 2022
2 parents 24be140 + 252e473 commit 10c2f5a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions ebusd/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- IMPROVE: Add poll interval option
- IMPROVE: Improve option descriptions
- IMPROVE: Improve logic in run.sh
- IMPROVE: Add apparmour.txt
- FIX: Change MQTT log area to OTHER

## 0.86
Expand Down
26 changes: 26 additions & 0 deletions ebusd/apparmor.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include <tunables/global>
profile ebusd flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>

# Capabilities
file, signal,
# S6-Overlay
/init rix, /bin/** ix, /usr/bin/** ix, /etc/s6/** rix, /run/s6/**
rwix, /etc/services.d/** rwix, /etc/cont-init.d/** rwix,
/etc/cont-finish.d/** rwix, /run/** rwk,
# Bashio
/usr/lib/bashio/** ix, /tmp/** rw,
# Access to options.json and other files within your addon
/data/** rw,

# Start new profile for service
/usr/bin/myprogram cx,

profile /usr/bin/ebusd flags=(attach_disconnected,mediate_deleted)
{
#include <abstractions/base>

# Receive signals from S6-Overlay
signal receive,
}
}

0 comments on commit 10c2f5a

Please sign in to comment.