Skip to content

[Bug Report] Auto-generated regexps for appimage /tmp paths duplicate the a-z character class #1587

Description

@tredondo

To Reproduce:

  1. Download an AppImage, e.g. Handy

  2. Launch it so it makes a request

  3. Allow the request

  4. Check the "From this executable" path that was created

    ^/tmp/\.mount_handy_[0-9a-za-z]+\/.*handy$
    
  5. Check the name of the rule - it will have the same duplication.

Expected behavior (optional):

The regexp should presumably include [0-9a-zA-Z], but OpenSnitch may pass the operand lowercase (even for paths, which may not be correct on case-sensitive filesystems, but that'd be a separate issue)

Screenshots:

Image

See also

#1392 (comment)

This was so easy to miss that I ended up with tens of rules containing a-za-z:

Image

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions