Skip to content

Commit

Permalink
Add FIXME comment for the new code
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-costas committed Jun 6, 2024
1 parent 18012bf commit ad6d7bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions interfaces/builtin/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ func getDesktopFileRules(snapInstanceName string, spec *apparmor.Specification)
// Also, for security reasons, all these rules are removed if the desktop-launch interface
// is listed, thus only if it is really connected will the snap have any kind of access to
// these folders/files.
//
// FIXME: this is really an ugly trick, so a better and more general mechanism is required
// in the future to define priorities between AppArmor rules blocks.
if spec != nil {
for _, plug := range spec.SnapAppSet().Info().Plugs {
if plug.Interface == "desktop-launch" {
Expand Down

0 comments on commit ad6d7bf

Please sign in to comment.