go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/providers/os/resources/processes/testdata/debian.toml (about)

     1  [commands."uname -r"]
     2  stdout = "4.19.76-linuxkit"
     3  
     4  [commands."uname -s"]
     5  stdout = "Linux"
     6  
     7  [commands."uname -m"]
     8  stdout = "x86_64"
     9  
    10  [files."/etc/os-release"]
    11  content = """
    12  PRETTY_NAME="Debian GNU/Linux 10 (buster)"
    13  NAME="Debian GNU/Linux"
    14  VERSION_ID="10"
    15  VERSION="10 (buster)"
    16  VERSION_CODENAME=buster
    17  ID=debian
    18  HOME_URL="https://www.debian.org/"
    19  SUPPORT_URL="https://www.debian.org/support"
    20  BUG_REPORT_URL="https://bugs.debian.org/"
    21  """
    22  
    23  [files."/proc"]
    24  mode = 555
    25  
    26  [files."/proc/1"]
    27  mode = 555
    28  
    29  # PID 3987 is really a ps output where the COMMAND column is blank
    30  [commands."ps axo pid,pcpu,pmem,vsz,rss,tty,stat,stime,time,uid,command"]
    31  stdout = """  PID %CPU %MEM    VSZ   RSS TT       STAT STIME     TIME   UID COMMAND
    32      1 0.0  0.1  12124  3232  pts/0    Ss   07:48   00:00:00     0 /bin/bash
    33     46 0.0  0.0  41836  1900  pts/0    R+   10:02   00:00:00     0 ps axo pid,pcpu,pmem,vsz,rss,tty,stat,stime,time,uid,command
    34   3987 0.0  0.0 147712  6080  ?        Sl   Mar10   00:00:00     0 
    35  """
    36  
    37  [files."/proc/1/cmdline"]
    38  content = """/sbin/init"""
    39  
    40  [files."/proc/1/status"]
    41  content = """Name:	systemd
    42  Umask:	0000
    43  State:	S (sleeping)
    44  Tgid:	1
    45  Ngid:	0
    46  Pid:	1
    47  PPid:	0
    48  TracerPid:	0
    49  Uid:	0	0	0	0
    50  Gid:	0	0	0	0
    51  FDSize:	128
    52  Groups:
    53  NStgid:	1
    54  NSpid:	1
    55  NSpgid:	1
    56  NSsid:	1
    57  VmPeak:	  230536 kB
    58  VmSize:	  165000 kB
    59  VmLck:	       0 kB
    60  VmPin:	       0 kB
    61  VmHWM:	   10804 kB
    62  VmRSS:	   10804 kB
    63  RssAnon:	    2584 kB
    64  RssFile:	    8220 kB
    65  RssShmem:	       0 kB
    66  VmData:	   18808 kB
    67  VmStk:	     132 kB
    68  VmExe:	     848 kB
    69  VmLib:	    8576 kB
    70  VmPTE:	      88 kB
    71  VmSwap:	       0 kB
    72  HugetlbPages:	       0 kB
    73  CoreDumping:	0
    74  THP_enabled:	1
    75  Threads:	1
    76  SigQ:	0/128147
    77  SigPnd:	0000000000000000
    78  ShdPnd:	0000000000000000
    79  SigBlk:	7be3c0fe28014a03
    80  SigIgn:	0000000000001000
    81  SigCgt:	00000001800004ec
    82  CapInh:	0000000000000000
    83  CapPrm:	000001ffffffffff
    84  CapEff:	000001ffffffffff
    85  CapBnd:	000001ffffffffff
    86  CapAmb:	0000000000000000
    87  NoNewPrivs:	0
    88  Seccomp:	0
    89  Seccomp_filters:	0
    90  Speculation_Store_Bypass:	thread vulnerable
    91  SpeculationIndirectBranch:	conditional enabled
    92  Cpus_allowed:	00000fff
    93  Cpus_allowed_list:	0-11
    94  Mems_allowed:	00000001
    95  Mems_allowed_list:	0
    96  voluntary_ctxt_switches:	5681
    97  nonvoluntary_ctxt_switches:	116
    98  """
    99  
   100  [files."/proc/218021"]
   101  mode = 555
   102  
   103  [files."/proc/218021/cmdline"]
   104  content = """zsh"""
   105  
   106  [files."/proc/218021/status"]
   107  content = """Name:	zsh
   108  Umask:	0022
   109  State:	S (sleeping)
   110  Tgid:	218021
   111  Ngid:	0
   112  Pid:	218021
   113  PPid:	2043
   114  TracerPid:	0
   115  Uid:	1000	1000	1000	1000
   116  Gid:	1000	1000	1000	1000
   117  FDSize:	64
   118  Groups:	970 985 1000
   119  NStgid:	218021
   120  NSpid:	218021
   121  NSpgid:	218021
   122  NSsid:	218021
   123  VmPeak:	   13164 kB
   124  VmSize:	   12860 kB
   125  VmLck:	       0 kB
   126  VmPin:	       0 kB
   127  VmHWM:	    8868 kB
   128  VmRSS:	    8644 kB
   129  RssAnon:	    4416 kB
   130  RssFile:	    4228 kB
   131  RssShmem:	       0 kB
   132  VmData:	    4144 kB
   133  VmStk:	     308 kB
   134  VmExe:	     592 kB
   135  VmLib:	    2788 kB
   136  VmPTE:	      64 kB
   137  VmSwap:	       0 kB
   138  HugetlbPages:	       0 kB
   139  CoreDumping:	0
   140  THP_enabled:	1
   141  Threads:	1
   142  SigQ:	0/128147
   143  SigPnd:	0000000000000000
   144  ShdPnd:	0000000000000000
   145  SigBlk:	0000000000000002
   146  SigIgn:	0000000000384000
   147  SigCgt:	0000000008013003
   148  CapInh:	0000000000000000
   149  CapPrm:	0000000000000000
   150  CapEff:	0000000000000000
   151  CapBnd:	000001ffffffffff
   152  CapAmb:	0000000000000000
   153  NoNewPrivs:	0
   154  Seccomp:	0
   155  Seccomp_filters:	0
   156  Speculation_Store_Bypass:	thread vulnerable
   157  SpeculationIndirectBranch:	conditional enabled
   158  Cpus_allowed:	00000fff
   159  Cpus_allowed_list:	0-11
   160  Mems_allowed:	00000001
   161  Mems_allowed_list:	0
   162  voluntary_ctxt_switches:	58
   163  nonvoluntary_ctxt_switches:	3"""