Skip to content

Generated Seatbelt profile contains many duplicates #74

@dwt

Description

@dwt

This is probably not problematic, but ti does make the --debug output much harder to read than necessary.

Some examples:

(deny file-write-unlink
  (subpath "/Users/dwt/.pypirc")
  (with message "CMD64_cGk=_END_cfe05cd74_SBX"))
(deny file-write-unlink
  (literal "/Users/dwt")
  (with message "CMD64_cGk=_END_cfe05cd74_SBX"))
(deny file-write-unlink
  (literal "/Users")
  (with message "CMD64_cGk=_END_cfe05cd74_SBX"))
(deny file-write-unlink
  (subpath "/Users/dwt/.netrc")
  (with message "CMD64_cGk=_END_cfe05cd74_SBX"))
(deny file-write-unlink
  (literal "/Users/dwt")
  (with message "CMD64_cGk=_END_cfe05cd74_SBX"))
(deny file-write-unlink
  (literal "/Users")

This looks like a generic "follow up the directory trail" logic generating the same entries regardless of whether they already exist. Perhaps adding the rules to a set before generating them could be a good workaround here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions