Skip to content

Commit

Permalink
adjust query lsblk and crypsetup to get better output (#166)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Münch <[email protected]>
  • Loading branch information
atomic111 authored Oct 2, 2024
1 parent 8ace3f8 commit 54aecd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions core/mondoo-linux-inventory.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
packs:
- uid: mondoo-linux-inventory
name: Linux Inventory Pack
version: 1.6.1
version: 1.7.0
license: BUSL-1.1
authors:
- name: Mondoo, Inc
Expand Down Expand Up @@ -152,14 +152,14 @@ packs:
asset.family.contains('linux')
packages.where(name == /xorg|xserver|wayland/i).any(installed)
mql: |
lsblk.list.where(fstype == /crypt/) {command('cryptsetup luksDump /dev/' + name).stdout}
lsblk.list.where(fstype == /crypt/) {parse.json(content: command('cryptsetup --dump-json-metadata luksDump /dev/' + name).stdout).params}
- uid: mondoo-linux-workstation-security-disk-encryption-metadata
title: Disk encryption metadata
filters: |
asset.family.contains('linux')
packages.where(name == /xorg|xserver|wayland/i).any(installed)
mql: |
command('lsblk').stdout
parse.json(content: command('lsblk --json').stdout).params
- uid: mondoo-linux-logged-in-users
title: Logged-in users
mql: command('users').stdout
mql: command('w -h').stdout
4 changes: 2 additions & 2 deletions core/mondoo-macos-inventory.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
packs:
- uid: mondoo-macos-inventory
name: macOS Inventory Pack
version: 1.5.0
version: 1.6.0
license: BUSL-1.1
authors:
- name: Mondoo, Inc
Expand Down Expand Up @@ -131,7 +131,7 @@ packs:
parse.json(content: command('system_profiler SPConfigurationProfileDataType -json').stdout).params
- uid: mondoo-macos-logged-in-users
title: Logged-in users
mql: command('users').stdout
mql: command('w -h').stdout
- uid: mondoo-macos-system-extensions
title: macOS System Extensions
mql: macos.systemExtensions { active enabled identifier state version }

0 comments on commit 54aecd6

Please sign in to comment.