Skip to content

Commit

Permalink
Added iOS and Android as supported operating system (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-slin authored May 18, 2024
1 parent 4ea1e76 commit 85ea189
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions artifacts/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@
TYPE_INDICATOR_WINDOWS_REGISTRY_VALUE = 'REGISTRY_VALUE'
TYPE_INDICATOR_WMI_QUERY = 'WMI'

SUPPORTED_OS_ANDROID = 'Android'
SUPPORTED_OS_DARWIN = 'Darwin'
SUPPORTED_OS_ESXI = 'ESXi'
SUPPORTED_OD_IOS = 'iOS'
SUPPORTED_OS_LINUX = 'Linux'
SUPPORTED_OS_WINDOWS = 'Windows'

SUPPORTED_OS = frozenset([
SUPPORTED_OS_ANDROID,
SUPPORTED_OS_DARWIN,
SUPPORTED_OS_ESXI,
SUPPORTED_OD_IOS,
SUPPORTED_OS_LINUX,
SUPPORTED_OS_WINDOWS])

Expand Down
8 changes: 6 additions & 2 deletions docs/sources/Format-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ Commonly used prefixes:
Prefix | Description
--- | ---
Android | Android operating system specific artifact definition.
Darwin | Mac OS (or Darwin) operating system specific artifact definition.
iOS | iOS operating system specific artifact definition.
Linux | Linux operating system specific artifact definition.
Shell | Shell user-interface specific artifact definition.
User | User specific artifact definition.
Expand Down Expand Up @@ -286,18 +288,20 @@ Since operating system (OS) are a very common constraint, this has been provided
as a separate option "supported_os" to simplify syntax. For supported_os no
quotes are required. The currently supported operating systems are:

* Android
* Darwin (also used for Mac OS X)
* iOS
* Linux
* Windows

```yaml
supported_os: [Darwin, Linux, Windows]
supported_os: [Android, Darwin, iOS, Linux, Windows]
```

This can be translated to objectfilter as:

```yaml
["os =='Darwin'" OR "os=='Linux'" OR "os == 'Windows'"]
["os =='Android'" OR "os =='Darwin'" OR "os =='iOS'" "os=='Linux'" OR "os == 'Windows'"]
```

## Parameter expansion and globs
Expand Down

0 comments on commit 85ea189

Please sign in to comment.