Skip to content

Commit

Permalink
feat(profile): improve opensuse integration.
Browse files Browse the repository at this point in the history
See #208
  • Loading branch information
roddhjav committed Oct 20, 2023
1 parent 4276ede commit aa7fe16
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apparmor.d/groups/kde/dolphin
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ profile dolphin @{exec_path} {
/usr/share/mime/ r,

/etc/fstab r,
/etc/xdg/arkrc r,
/etc/machine-id r,
/etc/xdg/arkrc r,
/etc/xdg/dolphinrc r,

# Full access to user's data
/ r,
Expand Down
1 change: 1 addition & 0 deletions apparmor.d/groups/kde/plasmashell
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ profile plasmashell @{exec_path} flags=(mediate_deleted) {
ptrace (read) peer=akonadi*,
ptrace (read) peer=kalendarac,
ptrace (read) peer=kded5,
ptrace (read) peer=kwin_x11,
ptrace (read) peer=libreoffice*,
ptrace (read) peer=pinentry-qt,

Expand Down
2 changes: 1 addition & 1 deletion apparmor.d/profiles-a-f/aa-enforce
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ profile aa-enforce @{exec_path} {
/etc/apparmor/logprof.conf r,
/etc/apparmor.d/{,**} rw,

/etc/inputrc r,
@{etc_ro}/inputrc r,

owner /snap/core@{int}/@{int}/etc/apparmor.d/{,**} rw,
owner /var/lib/snapd/apparmor/{,**} rw,
Expand Down
1 change: 1 addition & 0 deletions apparmor.d/profiles-g-l/git
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ profile git @{exec_path} {
/usr/share/git{,-core}/{,**} r,
/usr/share/terminfo/x/xterm-256color r,

/etc/gitconfig r,
/etc/mailname r,

owner @{user_projects_dirs}/ rw,
Expand Down
2 changes: 2 additions & 0 deletions apparmor.d/profiles-g-l/host
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ profile host @{exec_path} {
include <abstractions/nameservice-strict>
include <abstractions/openssl>

capability ipc_lock,

network inet dgram,
network inet6 dgram,
network inet stream,
Expand Down

0 comments on commit aa7fe16

Please sign in to comment.