# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_trusted_execution.yml ****************************************** 1 plays in /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml PLAY [Basic test for fapolicyd] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:2 Tuesday 05 December 2023 01:52:48 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [sut] META: ran handlers TASK [Create temp test directory] ********************************************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:23 Tuesday 05 December 2023 01:52:51 +0000 (0:00:02.968) 0:00:02.985 ****** changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/fapolicyd_p013xern", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Create directories for tests] ******************************************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:30 Tuesday 05 December 2023 01:52:51 +0000 (0:00:00.256) 0:00:03.241 ****** changed: [sut] => (item=/var/tmp/fapolicyd_p013xern) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_p013xern", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_p013xern", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } changed: [sut] => (item=/var/tmp/fapolicyd_p013xern/executables) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_p013xern/executables", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_p013xern/executables", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Create shell executables] ************************************************ task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:39 Tuesday 05 December 2023 01:52:52 +0000 (0:00:00.514) 0:00:03.756 ****** changed: [sut] => (item=/var/tmp/fapolicyd_p013xern/executables/exe1) => { "ansible_loop_var": "item", "changed": true, "checksum": "4d2c5ca6c86045f5e601c11b51b77b8212d358f2", "dest": "/var/tmp/fapolicyd_p013xern/executables/exe1", "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_p013xern/executables/exe1", "md5sum": "00bd30617f2b7d8ae3d3b708b00fb9c2", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 78, "src": "/root/.ansible/tmp/ansible-tmp-1701741172.493411-2277-88497873712725/source", "state": "file", "uid": 0 } changed: [sut] => (item=/var/tmp/fapolicyd_p013xern/executables/exe2) => { "ansible_loop_var": "item", "changed": true, "checksum": "c9ce63359bd136b34bac981dcc110aeda2e673ff", "dest": "/var/tmp/fapolicyd_p013xern/executables/exe2", "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_p013xern/executables/exe2", "md5sum": "a803694a0db15d85f73df27de25746d8", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 78, "src": "/root/.ansible/tmp/ansible-tmp-1701741173.1832073-2277-79686999413208/source", "state": "file", "uid": 0 } TASK [Create a new user] ******************************************************* task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:51 Tuesday 05 December 2023 01:52:53 +0000 (0:00:01.261) 0:00:05.017 ****** changed: [sut] => { "changed": true, "comment": "", "create_home": true, "group": 1001, "home": "/home/fapolicyd_test1_user", "name": "fapolicyd_test1_user", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1001 } TASK [Run the role] ************************************************************ task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:57 Tuesday 05 December 2023 01:52:54 +0000 (0:00:00.576) 0:00:05.594 ****** TASK [linux-system-roles.fapolicyd : Set platform/version specific variables] *** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:2 Tuesday 05 December 2023 01:52:54 +0000 (0:00:00.022) 0:00:05.616 ****** included: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml for sut TASK [linux-system-roles.fapolicyd : Ensure ansible_facts used by role] ******** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:2 Tuesday 05 December 2023 01:52:54 +0000 (0:00:00.017) 0:00:05.633 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Check if system is ostree] **************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:11 Tuesday 05 December 2023 01:52:54 +0000 (0:00:00.021) 0:00:05.655 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.fapolicyd : Set flag to indicate system is ostree] **** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:16 Tuesday 05 December 2023 01:52:54 +0000 (0:00:00.211) 0:00:05.867 ****** ok: [sut] => { "ansible_facts": { "__fapolicyd_is_ostree": false }, "changed": false } TASK [linux-system-roles.fapolicyd : Set platform/version specific variables] *** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:20 Tuesday 05 December 2023 01:52:54 +0000 (0:00:00.025) 0:00:05.892 ****** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_37.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_37.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_37.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_37.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Set fapolicyd feature facts for OS versions] *** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:41 Tuesday 05 December 2023 01:52:54 +0000 (0:00:00.037) 0:00:05.929 ****** ok: [sut] => { "ansible_facts": { "__fapolicyd_configcheck_supported": true, "__fapolicyd_integrity_supported": true, "__fapolicyd_selinux_supported": true, "__fapolicyd_supported": true, "__fapolicyd_syslog_format_supported": true, "__fapolicyd_trust_supported": true, "__fapolicyd_trustfiles_supported": true, "__fapolicyd_watch_fs_supported": true }, "changed": false } TASK [linux-system-roles.fapolicyd : System check] ***************************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:5 Tuesday 05 December 2023 01:52:54 +0000 (0:00:00.061) 0:00:05.990 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Check trust compatibility] **************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:13 Tuesday 05 December 2023 01:52:54 +0000 (0:00:00.020) 0:00:06.011 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Check integrity compatibility] ************ task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:24 Tuesday 05 December 2023 01:52:54 +0000 (0:00:00.023) 0:00:06.034 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Check trust files compatibility] ********** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:35 Tuesday 05 December 2023 01:52:54 +0000 (0:00:00.023) 0:00:06.058 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Check failed conditions] ****************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:46 Tuesday 05 December 2023 01:52:54 +0000 (0:00:00.024) 0:00:06.083 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Install fapolicyd packages] *************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:52 Tuesday 05 December 2023 01:52:54 +0000 (0:00:00.021) 0:00:06.105 ****** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: rpm-sign-libs-4.18.2-1.fc37.x86_64", "Installed: rpm-4.18.2-1.fc37.x86_64", "Installed: python3-rpm-4.18.2-1.fc37.x86_64", "Installed: rpm-build-libs-4.18.2-1.fc37.x86_64", "Installed: rpm-libs-4.18.2-1.fc37.x86_64", "Installed: policycoreutils-python-utils-3.5-1.fc37.noarch", "Installed: rpm-plugin-fapolicyd-4.18.2-1.fc37.x86_64", "Installed: fapolicyd-1.3.2-1.fc37.x86_64", "Installed: rpm-plugin-selinux-4.18.2-1.fc37.x86_64", "Installed: rpm-plugin-systemd-inhibit-4.18.2-1.fc37.x86_64", "Installed: fapolicyd-selinux-1.3.2-1.fc37.noarch", "Removed: python3-rpm-4.18.1-2.fc37.x86_64", "Removed: rpm-4.18.1-2.fc37.x86_64", "Removed: rpm-build-libs-4.18.1-2.fc37.x86_64", "Removed: rpm-libs-4.18.1-2.fc37.x86_64", "Removed: rpm-plugin-selinux-4.18.1-2.fc37.x86_64", "Removed: rpm-plugin-systemd-inhibit-4.18.1-2.fc37.x86_64", "Removed: rpm-sign-libs-4.18.1-2.fc37.x86_64" ] } TASK [linux-system-roles.fapolicyd : Copy fapolicyd configuration file] ******** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:62 Tuesday 05 December 2023 01:53:13 +0000 (0:00:19.174) 0:00:25.279 ****** changed: [sut] => { "changed": true, "checksum": "d79d7424d2f9daf8e9e018c5750ecd06d3beba55", "dest": "/etc/fapolicyd/fapolicyd.conf", "gid": 992, "group": "fapolicyd", "md5sum": "769ccbfa27940a69973575df5fa87cdf", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:fapolicyd_config_t:s0", "size": 509, "src": "/root/.ansible/tmp/ansible-tmp-1701741194.0166104-2326-138845477707289/source", "state": "file", "uid": 0 } TASK [linux-system-roles.fapolicyd : Run fapolicyd configuration check] ******** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:71 Tuesday 05 December 2023 01:53:14 +0000 (0:00:00.593) 0:00:25.873 ****** ok: [sut] => { "changed": false, "cmd": [ "fapolicyd-cli", "--check-config" ], "delta": "0:00:00.005545", "end": "2023-12-05 01:53:14.834445", "rc": 0, "start": "2023-12-05 01:53:14.828900" } STDOUT: Daemon config is OK TASK [linux-system-roles.fapolicyd : Start fapolicyd service] ****************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:79 Tuesday 05 December 2023 01:53:14 +0000 (0:00:00.298) 0:00:26.171 ****** changed: [sut] => { "changed": true, "enabled": true, "name": "fapolicyd.service", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice local-fs.target systemd-tmpfiles-setup.service systemd-journald.socket", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "ControlGroupId": "0", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "File Access Policy Daemon", "DevicePolicy": "auto", "Documentation": "\"man:fapolicyd(8)\"", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartPre": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartPreEx": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/fapolicyd.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "fapolicyd.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "14732", "LimitNPROCSoft": "14732", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14732", "LimitSIGPENDINGSoft": "14732", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "fapolicyd.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "-1000", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/fapolicyd.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice", "Restart": "on-abnormal", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "4419", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [linux-system-roles.fapolicyd : Restart fapolicyd service] **************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:88 Tuesday 05 December 2023 01:53:15 +0000 (0:00:01.049) 0:00:27.221 ****** changed: [sut] => { "changed": true, "enabled": true, "name": "fapolicyd.service", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2023-12-05 01:53:15 UTC", "ActiveEnterTimestampMonotonic": "1200845245", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "local-fs.target systemd-tmpfiles-setup.service system.slice systemd-journald.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2023-12-05 01:53:15 UTC", "AssertTimestampMonotonic": "1200796906", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "844351000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2023-12-05 01:53:15 UTC", "ConditionTimestampMonotonic": "1200796902", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/fapolicyd.service", "ControlGroupId": "6592", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "File Access Policy Daemon", "DevicePolicy": "auto", "Documentation": "\"man:fapolicyd(8)\"", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "6140", "ExecMainStartTimestamp": "Tue 2023-12-05 01:53:15 UTC", "ExecMainStartTimestampMonotonic": "1200845143", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; ignore_errors=no ; start_time=[Tue 2023-12-05 01:53:15 UTC] ; stop_time=[Tue 2023-12-05 01:53:15 UTC] ; pid=6139 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; flags= ; start_time=[Tue 2023-12-05 01:53:15 UTC] ; stop_time=[Tue 2023-12-05 01:53:15 UTC] ; pid=6139 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; ignore_errors=no ; start_time=[Tue 2023-12-05 01:53:15 UTC] ; stop_time=[Tue 2023-12-05 01:53:15 UTC] ; pid=6115 ; code=exited ; status=0 }", "ExecStartPreEx": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; flags= ; start_time=[Tue 2023-12-05 01:53:15 UTC] ; stop_time=[Tue 2023-12-05 01:53:15 UTC] ; pid=6115 ; code=exited ; status=0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/fapolicyd.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "fapolicyd.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2023-12-05 01:53:15 UTC", "InactiveExitTimestampMonotonic": "1200804947", "InvocationID": "55a0b79953ae4053be12a4754a076dcd", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "14732", "LimitNPROCSoft": "14732", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14732", "LimitSIGPENDINGSoft": "14732", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "6140", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "20189184", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "fapolicyd.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "-1000", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/fapolicyd.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice", "Restart": "on-abnormal", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2023-12-05 01:53:15 UTC", "StateChangeTimestampMonotonic": "1200845245", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "4419", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.fapolicyd : Check fapolicyd logs] ********************* task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:99 Tuesday 05 December 2023 01:53:19 +0000 (0:00:03.899) 0:00:31.120 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Trustdb cleanup] ************************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:106 Tuesday 05 December 2023 01:53:19 +0000 (0:00:00.024) 0:00:31.144 ****** changed: [sut] => { "changed": true, "cmd": [ "fapolicyd-cli", "--file", "delete", "/" ], "delta": "0:00:00.008228", "end": "2023-12-05 01:53:20.113541", "failed_when_result": false, "rc": 1, "start": "2023-12-05 01:53:20.105313" } STDERR: / is not in the trust database MSG: non-zero return code TASK [linux-system-roles.fapolicyd : Add file to trustdb] ********************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:111 Tuesday 05 December 2023 01:53:20 +0000 (0:00:00.310) 0:00:31.455 ****** changed: [sut] => (item=/etc/passwd) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/etc/passwd" ], "delta": "0:00:00.010856", "end": "2023-12-05 01:53:20.445597", "item": "/etc/passwd", "rc": 0, "start": "2023-12-05 01:53:20.434741" } changed: [sut] => (item=/etc/fapolicyd/fapolicyd.conf) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/etc/fapolicyd/fapolicyd.conf" ], "delta": "0:00:00.009458", "end": "2023-12-05 01:53:20.691601", "item": "/etc/fapolicyd/fapolicyd.conf", "rc": 0, "start": "2023-12-05 01:53:20.682143" } changed: [sut] => (item=/etc/krb5.conf) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/etc/krb5.conf" ], "delta": "0:00:00.009718", "end": "2023-12-05 01:53:20.935290", "item": "/etc/krb5.conf", "rc": 0, "start": "2023-12-05 01:53:20.925572" } changed: [sut] => (item=/var/tmp/fapolicyd_p013xern/executables/exe1) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/var/tmp/fapolicyd_p013xern/executables/exe1" ], "delta": "0:00:00.009465", "end": "2023-12-05 01:53:21.177224", "item": "/var/tmp/fapolicyd_p013xern/executables/exe1", "rc": 0, "start": "2023-12-05 01:53:21.167759" } TASK [linux-system-roles.fapolicyd : Update fapolicyd db] ********************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:128 Tuesday 05 December 2023 01:53:21 +0000 (0:00:01.061) 0:00:32.517 ****** changed: [sut] => { "changed": true, "cmd": "set -euo pipefail\n# get current journal cursor\ncursor=\"\"\nwhile [ -z \"$cursor\" ]; do\n sleep 1\n cursor=\"$(journalctl -u fapolicyd -n 0 --show-cursor |\n awk '/^-- cursor:/ {print $3}')\" || :\ndone\nsystemctl restart fapolicyd\nsearch_str='fapolicyd[^:\\ ]*:\\ Starting to listen for events$'\n# wait until we see the search_str - wait up to 30 seconds\nwaittime=30 # seconds\nendtime=\"$(expr \"$(date +%s)\" + \"$waittime\")\"\nset +o pipefail # the read will always return a failure code at EOF\njournalctl -u fapolicyd --no-tail -f --after-cursor \"$cursor\" | \\\nwhile read -r line; do\n if [[ \"$line\" =~ $search_str ]]; then\n echo INFO: trustdb is updated\n exit 0\n fi\ndone & pid=$!\nwhile ps -p \"$pid\"; do\n if [ \"$(date +%s)\" -gt \"$endtime\" ]; then\n echo ERROR: failed to update the trustdb\n exit 1\n fi\n sleep 1\ndone\necho INFO: trustdb is updated\nexit 0 # success\n", "delta": "0:00:03.106505", "end": "2023-12-05 01:53:24.535961", "rc": 0, "start": "2023-12-05 01:53:21.429456" } STDOUT: PID TTY TIME CMD 6335 ? 00:00:00 sh INFO: trustdb is updated PID TTY TIME CMD INFO: trustdb is updated TASK [linux-system-roles.fapolicyd : Making sure fapolicyd does not run if it was set so] *** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:164 Tuesday 05 December 2023 01:53:24 +0000 (0:00:03.358) 0:00:35.875 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run trusted binary exe1] ************************************************* task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:69 Tuesday 05 December 2023 01:53:24 +0000 (0:00:00.022) 0:00:35.897 ****** ok: [sut] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_p013xern/executables/exe1" ], "delta": "0:00:00.691022", "end": "2023-12-05 01:53:25.503002", "rc": 0, "start": "2023-12-05 01:53:24.811980" } TASK [Replace binary exe1 with exe2] ******************************************* task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:75 Tuesday 05 December 2023 01:53:25 +0000 (0:00:00.944) 0:00:36.842 ****** changed: [sut] => { "changed": true, "checksum": "c9ce63359bd136b34bac981dcc110aeda2e673ff", "dest": "/var/tmp/fapolicyd_p013xern/executables/exe1", "gid": 0, "group": "root", "md5sum": "a803694a0db15d85f73df27de25746d8", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 78, "src": "/var/tmp/fapolicyd_p013xern/executables/exe2", "state": "file", "uid": 0 } TASK [Run untrusted binary exe2] *********************************************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:82 Tuesday 05 December 2023 01:53:25 +0000 (0:00:00.404) 0:00:37.246 ****** ok: [sut] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_p013xern/executables/exe2" ], "delta": "0:00:00.065492", "end": "2023-12-05 01:53:26.239542", "failed_when_result": false, "rc": 126, "start": "2023-12-05 01:53:26.174050" } STDERR: -bash: line 1: /var/tmp/fapolicyd_p013xern/executables/exe2: Operation not permitted MSG: non-zero return code TASK [Check now untrusted exe1 after replacement] ****************************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:90 Tuesday 05 December 2023 01:53:26 +0000 (0:00:00.330) 0:00:37.576 ****** ok: [sut] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_p013xern/executables/exe1" ], "delta": "0:00:00.064057", "end": "2023-12-05 01:53:26.553740", "failed_when_result": false, "rc": 126, "start": "2023-12-05 01:53:26.489683" } STDERR: -bash: line 1: /var/tmp/fapolicyd_p013xern/executables/exe1: Operation not permitted MSG: non-zero return code TASK [Run the role again without test file] ************************************ task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:98 Tuesday 05 December 2023 01:53:26 +0000 (0:00:00.314) 0:00:37.890 ****** TASK [linux-system-roles.fapolicyd : Set platform/version specific variables] *** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:2 Tuesday 05 December 2023 01:53:26 +0000 (0:00:00.027) 0:00:37.918 ****** included: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml for sut TASK [linux-system-roles.fapolicyd : Ensure ansible_facts used by role] ******** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:2 Tuesday 05 December 2023 01:53:26 +0000 (0:00:00.017) 0:00:37.935 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Check if system is ostree] **************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:11 Tuesday 05 December 2023 01:53:26 +0000 (0:00:00.022) 0:00:37.957 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Set flag to indicate system is ostree] **** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:16 Tuesday 05 December 2023 01:53:26 +0000 (0:00:00.021) 0:00:37.979 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Set platform/version specific variables] *** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:20 Tuesday 05 December 2023 01:53:26 +0000 (0:00:00.021) 0:00:38.000 ****** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_37.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_37.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_37.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_37.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Set fapolicyd feature facts for OS versions] *** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:41 Tuesday 05 December 2023 01:53:26 +0000 (0:00:00.036) 0:00:38.037 ****** ok: [sut] => { "ansible_facts": { "__fapolicyd_configcheck_supported": true, "__fapolicyd_integrity_supported": true, "__fapolicyd_selinux_supported": true, "__fapolicyd_supported": true, "__fapolicyd_syslog_format_supported": true, "__fapolicyd_trust_supported": true, "__fapolicyd_trustfiles_supported": true, "__fapolicyd_watch_fs_supported": true }, "changed": false } TASK [linux-system-roles.fapolicyd : System check] ***************************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:5 Tuesday 05 December 2023 01:53:26 +0000 (0:00:00.063) 0:00:38.101 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Check trust compatibility] **************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:13 Tuesday 05 December 2023 01:53:26 +0000 (0:00:00.021) 0:00:38.122 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Check integrity compatibility] ************ task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:24 Tuesday 05 December 2023 01:53:26 +0000 (0:00:00.022) 0:00:38.145 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Check trust files compatibility] ********** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:35 Tuesday 05 December 2023 01:53:26 +0000 (0:00:00.023) 0:00:38.169 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Check failed conditions] ****************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:46 Tuesday 05 December 2023 01:53:26 +0000 (0:00:00.020) 0:00:38.189 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Install fapolicyd packages] *************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:52 Tuesday 05 December 2023 01:53:26 +0000 (0:00:00.020) 0:00:38.210 ****** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.fapolicyd : Copy fapolicyd configuration file] ******** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:62 Tuesday 05 December 2023 01:53:29 +0000 (0:00:02.712) 0:00:40.922 ****** ok: [sut] => { "changed": false, "checksum": "d79d7424d2f9daf8e9e018c5750ecd06d3beba55", "dest": "/etc/fapolicyd/fapolicyd.conf", "gid": 992, "group": "fapolicyd", "mode": "0644", "owner": "root", "path": "/etc/fapolicyd/fapolicyd.conf", "secontext": "system_u:object_r:fapolicyd_config_t:s0", "size": 509, "state": "file", "uid": 0 } TASK [linux-system-roles.fapolicyd : Run fapolicyd configuration check] ******** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:71 Tuesday 05 December 2023 01:53:30 +0000 (0:00:00.652) 0:00:41.575 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Start fapolicyd service] ****************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:79 Tuesday 05 December 2023 01:53:30 +0000 (0:00:00.023) 0:00:41.599 ****** ok: [sut] => { "changed": false, "enabled": true, "name": "fapolicyd.service", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2023-12-05 01:53:23 UTC", "ActiveEnterTimestampMonotonic": "1208524847", "ActiveExitTimestamp": "Tue 2023-12-05 01:53:22 UTC", "ActiveExitTimestampMonotonic": "1207486527", "ActiveState": "active", "After": "local-fs.target systemd-tmpfiles-setup.service system.slice systemd-journald.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2023-12-05 01:53:23 UTC", "AssertTimestampMonotonic": "1208471142", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "931202000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2023-12-05 01:53:23 UTC", "ConditionTimestampMonotonic": "1208471137", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/fapolicyd.service", "ControlGroupId": "6674", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "File Access Policy Daemon", "DevicePolicy": "auto", "Documentation": "\"man:fapolicyd(8)\"", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "6331", "ExecMainStartTimestamp": "Tue 2023-12-05 01:53:23 UTC", "ExecMainStartTimestampMonotonic": "1208524733", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; ignore_errors=no ; start_time=[Tue 2023-12-05 01:53:23 UTC] ; stop_time=[Tue 2023-12-05 01:53:23 UTC] ; pid=6330 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; flags= ; start_time=[Tue 2023-12-05 01:53:23 UTC] ; stop_time=[Tue 2023-12-05 01:53:23 UTC] ; pid=6330 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; ignore_errors=no ; start_time=[Tue 2023-12-05 01:53:23 UTC] ; stop_time=[Tue 2023-12-05 01:53:23 UTC] ; pid=6306 ; code=exited ; status=0 }", "ExecStartPreEx": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; flags= ; start_time=[Tue 2023-12-05 01:53:23 UTC] ; stop_time=[Tue 2023-12-05 01:53:23 UTC] ; pid=6306 ; code=exited ; status=0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/fapolicyd.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "fapolicyd.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2023-12-05 01:53:23 UTC", "InactiveEnterTimestampMonotonic": "1208470461", "InactiveExitTimestamp": "Tue 2023-12-05 01:53:23 UTC", "InactiveExitTimestampMonotonic": "1208482539", "InvocationID": "dd4afd137d6f4321ba639a4a1fa08e13", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "14732", "LimitNPROCSoft": "14732", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14732", "LimitSIGPENDINGSoft": "14732", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "6331", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "25534464", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "fapolicyd.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "-1000", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/fapolicyd.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice", "Restart": "on-abnormal", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2023-12-05 01:53:23 UTC", "StateChangeTimestampMonotonic": "1208524847", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "4", "TasksMax": "4419", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.fapolicyd : Restart fapolicyd service] **************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:88 Tuesday 05 December 2023 01:53:30 +0000 (0:00:00.647) 0:00:42.246 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Check fapolicyd logs] ********************* task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:99 Tuesday 05 December 2023 01:53:30 +0000 (0:00:00.022) 0:00:42.269 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Trustdb cleanup] ************************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:106 Tuesday 05 December 2023 01:53:30 +0000 (0:00:00.021) 0:00:42.291 ****** changed: [sut] => { "changed": true, "cmd": [ "fapolicyd-cli", "--file", "delete", "/" ], "delta": "0:00:00.007607", "end": "2023-12-05 01:53:31.199913", "failed_when_result": false, "rc": 0, "start": "2023-12-05 01:53:31.192306" } TASK [linux-system-roles.fapolicyd : Add file to trustdb] ********************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:111 Tuesday 05 December 2023 01:53:31 +0000 (0:00:00.246) 0:00:42.538 ****** TASK [linux-system-roles.fapolicyd : Update fapolicyd db] ********************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:128 Tuesday 05 December 2023 01:53:31 +0000 (0:00:00.020) 0:00:42.558 ****** changed: [sut] => { "changed": true, "cmd": "set -euo pipefail\n# get current journal cursor\ncursor=\"\"\nwhile [ -z \"$cursor\" ]; do\n sleep 1\n cursor=\"$(journalctl -u fapolicyd -n 0 --show-cursor |\n awk '/^-- cursor:/ {print $3}')\" || :\ndone\nsystemctl restart fapolicyd\nsearch_str='fapolicyd[^:\\ ]*:\\ Starting to listen for events$'\n# wait until we see the search_str - wait up to 30 seconds\nwaittime=30 # seconds\nendtime=\"$(expr \"$(date +%s)\" + \"$waittime\")\"\nset +o pipefail # the read will always return a failure code at EOF\njournalctl -u fapolicyd --no-tail -f --after-cursor \"$cursor\" | \\\nwhile read -r line; do\n if [[ \"$line\" =~ $search_str ]]; then\n echo INFO: trustdb is updated\n exit 0\n fi\ndone & pid=$!\nwhile ps -p \"$pid\"; do\n if [ \"$(date +%s)\" -gt \"$endtime\" ]; then\n echo ERROR: failed to update the trustdb\n exit 1\n fi\n sleep 1\ndone\necho INFO: trustdb is updated\nexit 0 # success\n", "delta": "0:00:02.660971", "end": "2023-12-05 01:53:34.132947", "rc": 0, "start": "2023-12-05 01:53:31.471976" } STDOUT: PID TTY TIME CMD 6722 ? 00:00:00 sh INFO: trustdb is updated PID TTY TIME CMD INFO: trustdb is updated TASK [linux-system-roles.fapolicyd : Making sure fapolicyd does not run if it was set so] *** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:164 Tuesday 05 December 2023 01:53:34 +0000 (0:00:02.913) 0:00:45.472 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run untrusted exe1 after removing from trustdb] ************************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:106 Tuesday 05 December 2023 01:53:34 +0000 (0:00:00.021) 0:00:45.493 ****** ok: [sut] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_p013xern/executables/exe1" ], "delta": "0:00:00.151238", "end": "2023-12-05 01:53:34.558068", "failed_when_result": false, "rc": 126, "start": "2023-12-05 01:53:34.406830" } STDERR: -bash: line 1: /var/tmp/fapolicyd_p013xern/executables/exe1: Operation not permitted MSG: non-zero return code TASK [Shutdown fapolicyd] ****************************************************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:114 Tuesday 05 December 2023 01:53:34 +0000 (0:00:00.402) 0:00:45.895 ****** changed: [sut] => { "changed": true, "enabled": false, "name": "fapolicyd", "state": "stopped", "status": { "ActiveEnterTimestamp": "Tue 2023-12-05 01:53:33 UTC", "ActiveEnterTimestampMonotonic": "1218126235", "ActiveExitTimestamp": "Tue 2023-12-05 01:53:32 UTC", "ActiveExitTimestampMonotonic": "1217528949", "ActiveState": "active", "After": "local-fs.target systemd-tmpfiles-setup.service system.slice systemd-journald.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2023-12-05 01:53:33 UTC", "AssertTimestampMonotonic": "1218077126", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "708726000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2023-12-05 01:53:33 UTC", "ConditionTimestampMonotonic": "1218077122", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/fapolicyd.service", "ControlGroupId": "6756", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "File Access Policy Daemon", "DevicePolicy": "auto", "Documentation": "\"man:fapolicyd(8)\"", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "6718", "ExecMainStartTimestamp": "Tue 2023-12-05 01:53:33 UTC", "ExecMainStartTimestampMonotonic": "1218126122", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; ignore_errors=no ; start_time=[Tue 2023-12-05 01:53:33 UTC] ; stop_time=[Tue 2023-12-05 01:53:33 UTC] ; pid=6717 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; flags= ; start_time=[Tue 2023-12-05 01:53:33 UTC] ; stop_time=[Tue 2023-12-05 01:53:33 UTC] ; pid=6717 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; ignore_errors=no ; start_time=[Tue 2023-12-05 01:53:33 UTC] ; stop_time=[Tue 2023-12-05 01:53:33 UTC] ; pid=6693 ; code=exited ; status=0 }", "ExecStartPreEx": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; flags= ; start_time=[Tue 2023-12-05 01:53:33 UTC] ; stop_time=[Tue 2023-12-05 01:53:33 UTC] ; pid=6693 ; code=exited ; status=0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/fapolicyd.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "fapolicyd.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2023-12-05 01:53:33 UTC", "InactiveEnterTimestampMonotonic": "1218076424", "InactiveExitTimestamp": "Tue 2023-12-05 01:53:33 UTC", "InactiveExitTimestampMonotonic": "1218084531", "InvocationID": "386d7d0e4d8748a3aefa76628440f432", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "14732", "LimitNPROCSoft": "14732", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14732", "LimitSIGPENDINGSoft": "14732", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "6718", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "21082112", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "fapolicyd.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "-1000", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/fapolicyd.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice", "Restart": "on-abnormal", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2023-12-05 01:53:33 UTC", "StateChangeTimestampMonotonic": "1218126235", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "4", "TasksMax": "4419", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [Clean up temp directory] ************************************************* task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:120 Tuesday 05 December 2023 01:53:36 +0000 (0:00:02.137) 0:00:48.032 ****** changed: [sut] => { "changed": true, "path": "/var/tmp/fapolicyd_p013xern", "state": "absent" } TASK [Remove test user] ******************************************************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:125 Tuesday 05 December 2023 01:53:36 +0000 (0:00:00.221) 0:00:48.254 ****** changed: [sut] => { "attempts": 1, "changed": true, "force": false, "name": "fapolicyd_test1_user", "remove": false, "state": "absent" } TASK [Debug test user removal failure] ***************************************** task path: /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:135 Tuesday 05 December 2023 01:53:37 +0000 (0:00:00.358) 0:00:48.612 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=32 changed=17 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Tuesday 05 December 2023 01:53:37 +0000 (0:00:00.020) 0:00:48.632 ****** =============================================================================== linux-system-roles.fapolicyd : Install fapolicyd packages -------------- 19.17s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:52 linux-system-roles.fapolicyd : Restart fapolicyd service ---------------- 3.90s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:88 linux-system-roles.fapolicyd : Update fapolicyd db ---------------------- 3.36s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:128 Gathering Facts --------------------------------------------------------- 2.97s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:2 ----- linux-system-roles.fapolicyd : Update fapolicyd db ---------------------- 2.91s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:128 linux-system-roles.fapolicyd : Install fapolicyd packages --------------- 2.71s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:52 Shutdown fapolicyd ------------------------------------------------------ 2.14s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:114 --- Create shell executables ------------------------------------------------ 1.26s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:39 ---- linux-system-roles.fapolicyd : Add file to trustdb ---------------------- 1.06s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:111 linux-system-roles.fapolicyd : Start fapolicyd service ------------------ 1.05s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:79 Run trusted binary exe1 ------------------------------------------------- 0.94s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:69 ---- linux-system-roles.fapolicyd : Copy fapolicyd configuration file -------- 0.65s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:62 linux-system-roles.fapolicyd : Start fapolicyd service ------------------ 0.65s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:79 linux-system-roles.fapolicyd : Copy fapolicyd configuration file -------- 0.59s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:62 Create a new user ------------------------------------------------------- 0.58s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:51 ---- Create directories for tests -------------------------------------------- 0.51s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:30 ---- Replace binary exe1 with exe2 ------------------------------------------- 0.40s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:75 ---- Run untrusted exe1 after removing from trustdb -------------------------- 0.40s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:106 --- Remove test user -------------------------------------------------------- 0.36s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:125 --- Run untrusted binary exe2 ----------------------------------------------- 0.33s /WORKDIR/git-fix-test-cleanupmcg58aan/tests/tests_trusted_execution.yml:82 ---- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [WARNING]: Consider using 'become', 'become_method', and 'become_user' rather than running su ---^---^---^---^---^---