[DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ansible-playbook [core 2.17.3] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-zC9 executable location = /usr/local/bin/ansible-playbook python version = 3.12.4 (main, Jun 7 2024, 00:00:00) [GCC 13.3.1 20240522 (Red Hat 13.3.1-1)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_trusted_execution.yml ****************************************** 1 plays in /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml PLAY [Basic test for fapolicyd] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:2 Wednesday 21 August 2024 21:47:10 -0400 (0:00:00.009) 0:00:00.009 ****** [WARNING]: Platform linux on host managed_node3 is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed_node3] TASK [Create temp test directory] ********************************************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:24 Wednesday 21 August 2024 21:47:14 -0400 (0:00:03.575) 0:00:03.585 ****** changed: [managed_node3] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/fapolicyd_vakrt6r2", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Create directories for tests] ******************************************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:31 Wednesday 21 August 2024 21:47:15 -0400 (0:00:00.554) 0:00:04.139 ****** changed: [managed_node3] => (item=/var/tmp/fapolicyd_vakrt6r2) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_vakrt6r2", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_vakrt6r2", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } changed: [managed_node3] => (item=/var/tmp/fapolicyd_vakrt6r2/executables) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_vakrt6r2/executables", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_vakrt6r2/executables", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Create shell executables] ************************************************ task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:40 Wednesday 21 August 2024 21:47:16 -0400 (0:00:00.940) 0:00:05.079 ****** changed: [managed_node3] => (item=/var/tmp/fapolicyd_vakrt6r2/executables/exe1) => { "ansible_loop_var": "item", "changed": true, "checksum": "ee536a68104625ed876519314454c23612787b34", "dest": "/var/tmp/fapolicyd_vakrt6r2/executables/exe1", "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_vakrt6r2/executables/exe1", "md5sum": "9f5b601d55929c5707e32ecdfff8d96f", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 105, "src": "/root/.ansible/tmp/ansible-tmp-1724291236.077244-3193-263428157922056/.source", "state": "file", "uid": 0 } changed: [managed_node3] => (item=/var/tmp/fapolicyd_vakrt6r2/executables/exe2) => { "ansible_loop_var": "item", "changed": true, "checksum": "8f647b86e8ff21aec0f8dd1771c74a2f4a5f7cb2", "dest": "/var/tmp/fapolicyd_vakrt6r2/executables/exe2", "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_vakrt6r2/executables/exe2", "md5sum": "69fe1ac376d6351560ebea773f8ccd42", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 105, "src": "/root/.ansible/tmp/ansible-tmp-1724291236.9795237-3193-196284121945425/.source", "state": "file", "uid": 0 } TASK [Create a new user] ******************************************************* task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:55 Wednesday 21 August 2024 21:47:17 -0400 (0:00:01.680) 0:00:06.759 ****** changed: [managed_node3] => { "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: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:61 Wednesday 21 August 2024 21:47:18 -0400 (0:00:01.074) 0:00:07.834 ****** included: fedora.linux_system_roles.fapolicyd for managed_node3 TASK [fedora.linux_system_roles.fapolicyd : Set platform/version specific variables] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:2 Wednesday 21 August 2024 21:47:18 -0400 (0:00:00.041) 0:00:07.876 ****** included: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml for managed_node3 TASK [fedora.linux_system_roles.fapolicyd : Ensure ansible_facts used by role] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:2 Wednesday 21 August 2024 21:47:18 -0400 (0:00:00.028) 0:00:07.904 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "__fapolicyd_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check if system is ostree] ********* task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:10 Wednesday 21 August 2024 21:47:18 -0400 (0:00:00.037) 0:00:07.942 ****** ok: [managed_node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.fapolicyd : Set flag to indicate system is ostree] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:15 Wednesday 21 August 2024 21:47:19 -0400 (0:00:00.363) 0:00:08.305 ****** ok: [managed_node3] => { "ansible_facts": { "__fapolicyd_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.fapolicyd : Set platform/version specific variables] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:19 Wednesday 21 August 2024 21:47:19 -0400 (0:00:00.025) 0:00:08.331 ****** skipping: [managed_node3] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.fapolicyd : Set fapolicyd feature facts for OS versions] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:40 Wednesday 21 August 2024 21:47:19 -0400 (0:00:00.036) 0:00:08.367 ****** ok: [managed_node3] => { "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 [fedora.linux_system_roles.fapolicyd : System check] ********************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:5 Wednesday 21 August 2024 21:47:19 -0400 (0:00:00.082) 0:00:08.449 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "not __fapolicyd_supported", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check trust compatibility] ********* task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:13 Wednesday 21 August 2024 21:47:19 -0400 (0:00:00.021) 0:00:08.470 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "not __fapolicyd_trust_supported", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check integrity compatibility] ***** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:24 Wednesday 21 August 2024 21:47:19 -0400 (0:00:00.036) 0:00:08.506 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "not __fapolicyd_integrity_supported", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check trust files compatibility] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:35 Wednesday 21 August 2024 21:47:19 -0400 (0:00:00.036) 0:00:08.543 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "not __fapolicyd_trustfiles_supported", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check failed conditions] *********** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:46 Wednesday 21 August 2024 21:47:19 -0400 (0:00:00.036) 0:00:08.579 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "__failed_check_trust is failed or __failed_check_integrity is failed or __failed_check_trusted_file is failed", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Install fapolicyd packages] ******** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:51 Wednesday 21 August 2024 21:47:19 -0400 (0:00:00.019) 0:00:08.599 ****** changed: [managed_node3] => { "changed": true, "rc": 0, "results": [ "Installed: rpm-plugin-fapolicyd-4.19.1.1-1.fc39.x86_64", "Installed: fapolicyd-1.3.3-1.fc39.x86_64", "Installed: fapolicyd-selinux-1.3.3-1.fc39.noarch", "Installed: policycoreutils-python-utils-3.5-8.fc39.noarch" ] } TASK [fedora.linux_system_roles.fapolicyd : Copy fapolicyd configuration file] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:59 Wednesday 21 August 2024 21:48:34 -0400 (0:01:14.737) 0:01:23.336 ****** changed: [managed_node3] => { "changed": true, "checksum": "d79d7424d2f9daf8e9e018c5750ecd06d3beba55", "dest": "/etc/fapolicyd/fapolicyd.conf", "gid": 993, "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-1724291314.3113995-3749-115279523288775/.source.conf", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.fapolicyd : Run fapolicyd configuration check] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:68 Wednesday 21 August 2024 21:48:35 -0400 (0:00:01.260) 0:01:24.597 ****** ok: [managed_node3] => { "changed": false, "cmd": [ "fapolicyd-cli", "--check-config" ], "delta": "0:00:00.005415", "end": "2024-08-21 21:48:36.056624", "rc": 0, "start": "2024-08-21 21:48:36.051209" } STDOUT: Daemon config is OK TASK [fedora.linux_system_roles.fapolicyd : Start fapolicyd service] *********** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:76 Wednesday 21 August 2024 21:48:36 -0400 (0:00:00.580) 0:01:25.178 ****** changed: [managed_node3] => { "changed": true, "enabled": true, "name": "fapolicyd.service", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:fapolicyd_unit_file_t:s0", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice systemd-journald.socket -.mount local-fs.target systemd-tmpfiles-setup.service", "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", "CanClean": "runtime", "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", "DefaultStartupMemoryLow": "0", "Delegate": "no", "Description": "File Access Policy Daemon", "DevicePolicy": "auto", "Documentation": "\"man:fapolicyd(8)\"", "DropInPaths": "/usr/lib/systemd/system/service.d/10-timeout-abort.conf", "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", "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FileDescriptorStorePreserve": "restart", "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": "14752", "LimitNPROCSoft": "14752", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14752", "LimitSIGPENDINGSoft": "14752", "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", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapMax": "infinity", "MemoryZSwapMax": "infinity", "MountAPIVFS": "no", "MountImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "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", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice -.mount", "RequiresMountsFor": "/run/fapolicyd", "Restart": "on-abnormal", "RestartKillSignal": "15", "RestartMaxDelayUSec": "infinity", "RestartMode": "normal", "RestartSteps": "0", "RestartUSec": "100ms", "RestartUSecNext": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RootEphemeral": "no", "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "RuntimeDirectory": "fapolicyd", "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]", "StartupMemoryHigh": "18446744073709551615", "StartupMemoryLow": "0", "StartupMemoryMax": "18446744073709551615", "StartupMemorySwapMax": "18446744073709551615", "StartupMemoryZSwapMax": "18446744073709551615", "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": "4425", "TimeoutAbortUSec": "45s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "45s", "TimeoutStopFailureMode": "abort", "TimeoutStopUSec": "45s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [fedora.linux_system_roles.fapolicyd : Restart fapolicyd service] ********* task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:85 Wednesday 21 August 2024 21:48:37 -0400 (0:00:01.310) 0:01:26.488 ****** changed: [managed_node3] => { "changed": true, "enabled": true, "name": "fapolicyd.service", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:fapolicyd_unit_file_t:s0", "ActiveEnterTimestamp": "Wed 2024-08-21 21:48:37 EDT", "ActiveEnterTimestampMonotonic": "327688899", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-tmpfiles-setup.service local-fs.target systemd-journald.socket system.slice -.mount", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Wed 2024-08-21 21:48:37 EDT", "AssertTimestampMonotonic": "327629307", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "832352000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanClean": "runtime", "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": "Wed 2024-08-21 21:48:37 EDT", "ConditionTimestampMonotonic": "327629303", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/fapolicyd.service", "ControlGroupId": "5047", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DefaultStartupMemoryLow": "0", "Delegate": "no", "Description": "File Access Policy Daemon", "DevicePolicy": "auto", "Documentation": "\"man:fapolicyd(8)\"", "DropInPaths": "/usr/lib/systemd/system/service.d/10-timeout-abort.conf", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "4788", "ExecMainStartTimestamp": "Wed 2024-08-21 21:48:37 EDT", "ExecMainStartTimestampMonotonic": "327688802", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; ignore_errors=no ; start_time=[Wed 2024-08-21 21:48:37 EDT] ; stop_time=[Wed 2024-08-21 21:48:37 EDT] ; pid=4786 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; flags= ; start_time=[Wed 2024-08-21 21:48:37 EDT] ; stop_time=[Wed 2024-08-21 21:48:37 EDT] ; pid=4786 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; ignore_errors=no ; start_time=[Wed 2024-08-21 21:48:37 EDT] ; stop_time=[Wed 2024-08-21 21:48:37 EDT] ; pid=4762 ; code=exited ; status=0 }", "ExecStartPreEx": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; flags= ; start_time=[Wed 2024-08-21 21:48:37 EDT] ; stop_time=[Wed 2024-08-21 21:48:37 EDT] ; pid=4762 ; code=exited ; status=0 }", "ExitType": "main", "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FileDescriptorStorePreserve": "restart", "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": "Wed 2024-08-21 21:48:37 EDT", "InactiveExitTimestampMonotonic": "327637930", "InvocationID": "11db294a237e43e2aa8f10c24209b13b", "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": "14752", "LimitNPROCSoft": "14752", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14752", "LimitSIGPENDINGSoft": "14752", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "4788", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "18898944", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapMax": "infinity", "MemoryZSwapMax": "infinity", "MountAPIVFS": "no", "MountImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "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", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice -.mount", "RequiresMountsFor": "/run/fapolicyd", "Restart": "on-abnormal", "RestartKillSignal": "15", "RestartMaxDelayUSec": "infinity", "RestartMode": "normal", "RestartSteps": "0", "RestartUSec": "100ms", "RestartUSecNext": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RootEphemeral": "no", "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "RuntimeDirectory": "fapolicyd", "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]", "StartupMemoryHigh": "18446744073709551615", "StartupMemoryLow": "0", "StartupMemoryMax": "18446744073709551615", "StartupMemorySwapMax": "18446744073709551615", "StartupMemoryZSwapMax": "18446744073709551615", "StateChangeTimestamp": "Wed 2024-08-21 21:48:37 EDT", "StateChangeTimestampMonotonic": "327688899", "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": "4425", "TimeoutAbortUSec": "45s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "45s", "TimeoutStopFailureMode": "abort", "TimeoutStopUSec": "45s", "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 [fedora.linux_system_roles.fapolicyd : Check fapolicyd logs] ************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:96 Wednesday 21 August 2024 21:48:41 -0400 (0:00:04.136) 0:01:30.625 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "__fapolicyd_start is failed or __fapolicyd_restart is failed", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Trustdb cleanup] ******************* task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:103 Wednesday 21 August 2024 21:48:41 -0400 (0:00:00.019) 0:01:30.645 ****** changed: [managed_node3] => { "changed": true, "cmd": [ "fapolicyd-cli", "--file", "delete", "/" ], "delta": "0:00:00.007703", "end": "2024-08-21 21:48:42.030005", "failed_when_result": false, "rc": 1, "start": "2024-08-21 21:48:42.022302" } STDERR: 08/21/24 21:48:42 [ ERROR ]: / is not in the trust database MSG: non-zero return code TASK [fedora.linux_system_roles.fapolicyd : Add file to trustdb] *************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:108 Wednesday 21 August 2024 21:48:42 -0400 (0:00:00.519) 0:01:31.165 ****** changed: [managed_node3] => (item=/etc/passwd) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/etc/passwd" ], "delta": "0:00:00.008763", "end": "2024-08-21 21:48:42.520940", "item": "/etc/passwd", "rc": 0, "start": "2024-08-21 21:48:42.512177" } changed: [managed_node3] => (item=/etc/fapolicyd/fapolicyd.conf) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/etc/fapolicyd/fapolicyd.conf" ], "delta": "0:00:00.008396", "end": "2024-08-21 21:48:42.960835", "item": "/etc/fapolicyd/fapolicyd.conf", "rc": 0, "start": "2024-08-21 21:48:42.952439" } changed: [managed_node3] => (item=/etc/krb5.conf) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/etc/krb5.conf" ], "delta": "0:00:00.008263", "end": "2024-08-21 21:48:43.401777", "item": "/etc/krb5.conf", "rc": 0, "start": "2024-08-21 21:48:43.393514" } changed: [managed_node3] => (item=/var/tmp/fapolicyd_vakrt6r2/executables/exe1) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/var/tmp/fapolicyd_vakrt6r2/executables/exe1" ], "delta": "0:00:00.008494", "end": "2024-08-21 21:48:43.990459", "item": "/var/tmp/fapolicyd_vakrt6r2/executables/exe1", "rc": 0, "start": "2024-08-21 21:48:43.981965" } TASK [fedora.linux_system_roles.fapolicyd : Update fapolicyd db] *************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:124 Wednesday 21 August 2024 21:48:44 -0400 (0:00:01.956) 0:01:33.121 ****** changed: [managed_node3] => { "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:04.722894", "end": "2024-08-21 21:48:49.181970", "rc": 0, "start": "2024-08-21 21:48:44.459076" } STDOUT: PID TTY TIME CMD 5628 pts/0 00:00:00 sh INFO: trustdb is updated PID TTY TIME CMD INFO: trustdb is updated TASK [fedora.linux_system_roles.fapolicyd : Making sure fapolicyd does not run if it was set so] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:160 Wednesday 21 August 2024 21:48:49 -0400 (0:00:05.192) 0:01:38.314 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "not fapolicyd_setup_enable_service", "skip_reason": "Conditional result was False" } TASK [Run trusted binary exe1] ************************************************* task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:73 Wednesday 21 August 2024 21:48:49 -0400 (0:00:00.018) 0:01:38.332 ****** ok: [managed_node3] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_vakrt6r2/executables/exe1" ], "delta": "0:00:00.954422", "end": "2024-08-21 21:48:50.635514", "rc": 0, "start": "2024-08-21 21:48:49.681092" } TASK [Replace binary exe1 with exe2] ******************************************* task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:79 Wednesday 21 August 2024 21:48:50 -0400 (0:00:01.434) 0:01:39.767 ****** changed: [managed_node3] => { "changed": true, "checksum": "8f647b86e8ff21aec0f8dd1771c74a2f4a5f7cb2", "dest": "/var/tmp/fapolicyd_vakrt6r2/executables/exe1", "gid": 0, "group": "root", "md5sum": "69fe1ac376d6351560ebea773f8ccd42", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 105, "src": "/var/tmp/fapolicyd_vakrt6r2/executables/exe2", "state": "file", "uid": 0 } TASK [Run untrusted binary exe2] *********************************************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:86 Wednesday 21 August 2024 21:48:51 -0400 (0:00:00.482) 0:01:40.249 ****** ok: [managed_node3] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_vakrt6r2/executables/exe2" ], "delta": "0:00:00.056695", "end": "2024-08-21 21:48:51.649930", "failed_when_result": false, "rc": 126, "start": "2024-08-21 21:48:51.593235" } STDERR: -bash: line 1: /var/tmp/fapolicyd_vakrt6r2/executables/exe2: Operation not permitted MSG: non-zero return code TASK [Check now untrusted exe1 after replacement] ****************************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:94 Wednesday 21 August 2024 21:48:51 -0400 (0:00:00.531) 0:01:40.780 ****** ok: [managed_node3] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_vakrt6r2/executables/exe1" ], "delta": "0:00:00.055920", "end": "2024-08-21 21:48:52.177575", "failed_when_result": false, "rc": 126, "start": "2024-08-21 21:48:52.121655" } STDERR: -bash: line 1: /var/tmp/fapolicyd_vakrt6r2/executables/exe1: Operation not permitted MSG: non-zero return code TASK [Run the role again without test file] ************************************ task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:102 Wednesday 21 August 2024 21:48:52 -0400 (0:00:00.527) 0:01:41.308 ****** included: fedora.linux_system_roles.fapolicyd for managed_node3 TASK [fedora.linux_system_roles.fapolicyd : Set platform/version specific variables] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:2 Wednesday 21 August 2024 21:48:52 -0400 (0:00:00.048) 0:01:41.357 ****** included: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml for managed_node3 TASK [fedora.linux_system_roles.fapolicyd : Ensure ansible_facts used by role] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:2 Wednesday 21 August 2024 21:48:52 -0400 (0:00:00.025) 0:01:41.382 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "__fapolicyd_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check if system is ostree] ********* task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:10 Wednesday 21 August 2024 21:48:52 -0400 (0:00:00.039) 0:01:41.422 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "not __fapolicyd_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Set flag to indicate system is ostree] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:15 Wednesday 21 August 2024 21:48:52 -0400 (0:00:00.019) 0:01:41.442 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "not __fapolicyd_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Set platform/version specific variables] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:19 Wednesday 21 August 2024 21:48:52 -0400 (0:00:00.020) 0:01:41.462 ****** skipping: [managed_node3] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.fapolicyd : Set fapolicyd feature facts for OS versions] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:40 Wednesday 21 August 2024 21:48:52 -0400 (0:00:00.035) 0:01:41.497 ****** ok: [managed_node3] => { "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 [fedora.linux_system_roles.fapolicyd : System check] ********************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:5 Wednesday 21 August 2024 21:48:52 -0400 (0:00:00.087) 0:01:41.585 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "not __fapolicyd_supported", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check trust compatibility] ********* task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:13 Wednesday 21 August 2024 21:48:52 -0400 (0:00:00.014) 0:01:41.600 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "not __fapolicyd_trust_supported", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check integrity compatibility] ***** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:24 Wednesday 21 August 2024 21:48:52 -0400 (0:00:00.035) 0:01:41.635 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "not __fapolicyd_integrity_supported", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check trust files compatibility] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:35 Wednesday 21 August 2024 21:48:52 -0400 (0:00:00.035) 0:01:41.671 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "fapolicyd_add_trusted_file | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check failed conditions] *********** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:46 Wednesday 21 August 2024 21:48:52 -0400 (0:00:00.034) 0:01:41.706 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "__failed_check_trust is failed or __failed_check_integrity is failed or __failed_check_trusted_file is failed", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Install fapolicyd packages] ******** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:51 Wednesday 21 August 2024 21:48:52 -0400 (0:00:00.019) 0:01:41.725 ****** ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.fapolicyd : Copy fapolicyd configuration file] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:59 Wednesday 21 August 2024 21:48:54 -0400 (0:00:01.878) 0:01:43.603 ****** ok: [managed_node3] => { "changed": false, "checksum": "d79d7424d2f9daf8e9e018c5750ecd06d3beba55", "dest": "/etc/fapolicyd/fapolicyd.conf", "gid": 993, "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 [fedora.linux_system_roles.fapolicyd : Run fapolicyd configuration check] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:68 Wednesday 21 August 2024 21:48:55 -0400 (0:00:00.904) 0:01:44.507 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "__fapolicy_conf is changed", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Start fapolicyd service] *********** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:76 Wednesday 21 August 2024 21:48:55 -0400 (0:00:00.036) 0:01:44.544 ****** ok: [managed_node3] => { "changed": false, "enabled": true, "name": "fapolicyd.service", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:fapolicyd_unit_file_t:s0", "ActiveEnterTimestamp": "Wed 2024-08-21 21:48:48 EDT", "ActiveEnterTimestampMonotonic": "338474714", "ActiveExitTimestamp": "Wed 2024-08-21 21:48:45 EDT", "ActiveExitTimestampMonotonic": "335832740", "ActiveState": "active", "After": "systemd-tmpfiles-setup.service local-fs.target systemd-journald.socket system.slice -.mount", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Wed 2024-08-21 21:48:48 EDT", "AssertTimestampMonotonic": "338422517", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "1145592000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanClean": "runtime", "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": "Wed 2024-08-21 21:48:48 EDT", "ConditionTimestampMonotonic": "338422513", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/fapolicyd.service", "ControlGroupId": "5145", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DefaultStartupMemoryLow": "0", "Delegate": "no", "Description": "File Access Policy Daemon", "DevicePolicy": "auto", "Documentation": "\"man:fapolicyd(8)\"", "DropInPaths": "/usr/lib/systemd/system/service.d/10-timeout-abort.conf", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "5623", "ExecMainStartTimestamp": "Wed 2024-08-21 21:48:48 EDT", "ExecMainStartTimestampMonotonic": "338474619", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; ignore_errors=no ; start_time=[Wed 2024-08-21 21:48:48 EDT] ; stop_time=[Wed 2024-08-21 21:48:48 EDT] ; pid=5622 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; flags= ; start_time=[Wed 2024-08-21 21:48:48 EDT] ; stop_time=[Wed 2024-08-21 21:48:48 EDT] ; pid=5622 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; ignore_errors=no ; start_time=[Wed 2024-08-21 21:48:48 EDT] ; stop_time=[Wed 2024-08-21 21:48:48 EDT] ; pid=5597 ; code=exited ; status=0 }", "ExecStartPreEx": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; flags= ; start_time=[Wed 2024-08-21 21:48:48 EDT] ; stop_time=[Wed 2024-08-21 21:48:48 EDT] ; pid=5597 ; code=exited ; status=0 }", "ExitType": "main", "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FileDescriptorStorePreserve": "restart", "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": "Wed 2024-08-21 21:48:48 EDT", "InactiveEnterTimestampMonotonic": "338421686", "InactiveExitTimestamp": "Wed 2024-08-21 21:48:48 EDT", "InactiveExitTimestampMonotonic": "338429471", "InvocationID": "dd20bd25ecd44a2cbe690a412ff6f79a", "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": "14752", "LimitNPROCSoft": "14752", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14752", "LimitSIGPENDINGSoft": "14752", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "5623", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "30810112", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapMax": "infinity", "MemoryZSwapMax": "infinity", "MountAPIVFS": "no", "MountImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "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", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice -.mount", "RequiresMountsFor": "/run/fapolicyd", "Restart": "on-abnormal", "RestartKillSignal": "15", "RestartMaxDelayUSec": "infinity", "RestartMode": "normal", "RestartSteps": "0", "RestartUSec": "100ms", "RestartUSecNext": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RootEphemeral": "no", "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "RuntimeDirectory": "fapolicyd", "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]", "StartupMemoryHigh": "18446744073709551615", "StartupMemoryLow": "0", "StartupMemoryMax": "18446744073709551615", "StartupMemorySwapMax": "18446744073709551615", "StartupMemoryZSwapMax": "18446744073709551615", "StateChangeTimestamp": "Wed 2024-08-21 21:48:48 EDT", "StateChangeTimestampMonotonic": "338474714", "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": "4425", "TimeoutAbortUSec": "45s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "45s", "TimeoutStopFailureMode": "abort", "TimeoutStopUSec": "45s", "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 [fedora.linux_system_roles.fapolicyd : Restart fapolicyd service] ********* task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:85 Wednesday 21 August 2024 21:48:56 -0400 (0:00:00.671) 0:01:45.215 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "__fapolicy_conf is changed", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check fapolicyd logs] ************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:96 Wednesday 21 August 2024 21:48:56 -0400 (0:00:00.036) 0:01:45.252 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "__fapolicyd_start is failed or __fapolicyd_restart is failed", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Trustdb cleanup] ******************* task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:103 Wednesday 21 August 2024 21:48:56 -0400 (0:00:00.019) 0:01:45.271 ****** changed: [managed_node3] => { "changed": true, "cmd": [ "fapolicyd-cli", "--file", "delete", "/" ], "delta": "0:00:00.006993", "end": "2024-08-21 21:48:56.594736", "failed_when_result": false, "rc": 0, "start": "2024-08-21 21:48:56.587743" } TASK [fedora.linux_system_roles.fapolicyd : Add file to trustdb] *************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:108 Wednesday 21 August 2024 21:48:56 -0400 (0:00:00.453) 0:01:45.725 ****** skipping: [managed_node3] => { "changed": false, "skipped_reason": "No items in the list" } TASK [fedora.linux_system_roles.fapolicyd : Update fapolicyd db] *************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:124 Wednesday 21 August 2024 21:48:56 -0400 (0:00:00.038) 0:01:45.763 ****** changed: [managed_node3] => { "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:04.745851", "end": "2024-08-21 21:49:01.843484", "rc": 0, "start": "2024-08-21 21:48:57.097633" } STDOUT: PID TTY TIME CMD 6763 pts/0 00:00:00 sh INFO: trustdb is updated PID TTY TIME CMD INFO: trustdb is updated TASK [fedora.linux_system_roles.fapolicyd : Making sure fapolicyd does not run if it was set so] *** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:160 Wednesday 21 August 2024 21:49:01 -0400 (0:00:05.213) 0:01:50.976 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "not fapolicyd_setup_enable_service", "skip_reason": "Conditional result was False" } TASK [Run untrusted exe1 after removing from trustdb] ************************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:110 Wednesday 21 August 2024 21:49:01 -0400 (0:00:00.019) 0:01:50.996 ****** ok: [managed_node3] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_vakrt6r2/executables/exe1" ], "delta": "0:00:00.139625", "end": "2024-08-21 21:49:02.485663", "failed_when_result": false, "rc": 126, "start": "2024-08-21 21:49:02.346038" } STDERR: -bash: line 1: /var/tmp/fapolicyd_vakrt6r2/executables/exe1: Operation not permitted MSG: non-zero return code TASK [Shutdown fapolicyd] ****************************************************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:118 Wednesday 21 August 2024 21:49:02 -0400 (0:00:00.621) 0:01:51.617 ****** changed: [managed_node3] => { "changed": true, "enabled": false, "name": "fapolicyd", "state": "stopped", "status": { "AccessSELinuxContext": "system_u:object_r:fapolicyd_unit_file_t:s0", "ActiveEnterTimestamp": "Wed 2024-08-21 21:49:00 EDT", "ActiveEnterTimestampMonotonic": "351150667", "ActiveExitTimestamp": "Wed 2024-08-21 21:48:58 EDT", "ActiveExitTimestampMonotonic": "348470913", "ActiveState": "active", "After": "systemd-tmpfiles-setup.service local-fs.target systemd-journald.socket system.slice -.mount", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Wed 2024-08-21 21:49:00 EDT", "AssertTimestampMonotonic": "351095691", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "821237000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanClean": "runtime", "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": "Wed 2024-08-21 21:49:00 EDT", "ConditionTimestampMonotonic": "351095687", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/fapolicyd.service", "ControlGroupId": "5231", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DefaultStartupMemoryLow": "0", "Delegate": "no", "Description": "File Access Policy Daemon", "DevicePolicy": "auto", "Documentation": "\"man:fapolicyd(8)\"", "DropInPaths": "/usr/lib/systemd/system/service.d/10-timeout-abort.conf", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "6758", "ExecMainStartTimestamp": "Wed 2024-08-21 21:49:00 EDT", "ExecMainStartTimestampMonotonic": "351150577", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; ignore_errors=no ; start_time=[Wed 2024-08-21 21:49:00 EDT] ; stop_time=[Wed 2024-08-21 21:49:00 EDT] ; pid=6757 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; flags= ; start_time=[Wed 2024-08-21 21:49:00 EDT] ; stop_time=[Wed 2024-08-21 21:49:00 EDT] ; pid=6757 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; ignore_errors=no ; start_time=[Wed 2024-08-21 21:49:00 EDT] ; stop_time=[Wed 2024-08-21 21:49:00 EDT] ; pid=6731 ; code=exited ; status=0 }", "ExecStartPreEx": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; flags= ; start_time=[Wed 2024-08-21 21:49:00 EDT] ; stop_time=[Wed 2024-08-21 21:49:00 EDT] ; pid=6731 ; code=exited ; status=0 }", "ExitType": "main", "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FileDescriptorStorePreserve": "restart", "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": "Wed 2024-08-21 21:49:00 EDT", "InactiveEnterTimestampMonotonic": "351094983", "InactiveExitTimestamp": "Wed 2024-08-21 21:49:00 EDT", "InactiveExitTimestampMonotonic": "351103433", "InvocationID": "fdc46b34bd8340878bbc181dbb46fb34", "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": "14752", "LimitNPROCSoft": "14752", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14752", "LimitSIGPENDINGSoft": "14752", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "6758", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "24641536", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapMax": "infinity", "MemoryZSwapMax": "infinity", "MountAPIVFS": "no", "MountImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "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", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice -.mount", "RequiresMountsFor": "/run/fapolicyd", "Restart": "on-abnormal", "RestartKillSignal": "15", "RestartMaxDelayUSec": "infinity", "RestartMode": "normal", "RestartSteps": "0", "RestartUSec": "100ms", "RestartUSecNext": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RootEphemeral": "no", "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "RuntimeDirectory": "fapolicyd", "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]", "StartupMemoryHigh": "18446744073709551615", "StartupMemoryLow": "0", "StartupMemoryMax": "18446744073709551615", "StartupMemorySwapMax": "18446744073709551615", "StartupMemoryZSwapMax": "18446744073709551615", "StateChangeTimestamp": "Wed 2024-08-21 21:49:00 EDT", "StateChangeTimestampMonotonic": "351150667", "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": "4425", "TimeoutAbortUSec": "45s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "45s", "TimeoutStopFailureMode": "abort", "TimeoutStopUSec": "45s", "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: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:124 Wednesday 21 August 2024 21:49:04 -0400 (0:00:01.931) 0:01:53.549 ****** changed: [managed_node3] => { "changed": true, "path": "/var/tmp/fapolicyd_vakrt6r2", "state": "absent" } TASK [Remove test user] ******************************************************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:129 Wednesday 21 August 2024 21:49:04 -0400 (0:00:00.382) 0:01:53.932 ****** changed: [managed_node3] => { "attempts": 1, "changed": true, "force": false, "name": "fapolicyd_test1_user", "remove": false, "state": "absent" } TASK [Debug test user removal failure] ***************************************** task path: /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:139 Wednesday 21 August 2024 21:49:05 -0400 (0:00:00.934) 0:01:54.867 ****** skipping: [managed_node3] => { "changed": false, "false_condition": "__result is failed", "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* managed_node3 : ok=34 changed=17 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Wednesday 21 August 2024 21:49:05 -0400 (0:00:00.028) 0:01:54.895 ****** =============================================================================== fedora.linux_system_roles.fapolicyd : Install fapolicyd packages ------- 74.74s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:51 fedora.linux_system_roles.fapolicyd : Update fapolicyd db --------------- 5.21s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:124 fedora.linux_system_roles.fapolicyd : Update fapolicyd db --------------- 5.19s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:124 fedora.linux_system_roles.fapolicyd : Restart fapolicyd service --------- 4.14s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:85 Gathering Facts --------------------------------------------------------- 3.58s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:2 fedora.linux_system_roles.fapolicyd : Add file to trustdb --------------- 1.96s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:108 Shutdown fapolicyd ------------------------------------------------------ 1.93s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:118 fedora.linux_system_roles.fapolicyd : Install fapolicyd packages -------- 1.88s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:51 Create shell executables ------------------------------------------------ 1.68s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:40 Run trusted binary exe1 ------------------------------------------------- 1.43s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:73 fedora.linux_system_roles.fapolicyd : Start fapolicyd service ----------- 1.31s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:76 fedora.linux_system_roles.fapolicyd : Copy fapolicyd configuration file --- 1.26s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:59 Create a new user ------------------------------------------------------- 1.07s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:55 Create directories for tests -------------------------------------------- 0.94s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:31 Remove test user -------------------------------------------------------- 0.93s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:129 fedora.linux_system_roles.fapolicyd : Copy fapolicyd configuration file --- 0.90s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:59 fedora.linux_system_roles.fapolicyd : Start fapolicyd service ----------- 0.67s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:76 Run untrusted exe1 after removing from trustdb -------------------------- 0.62s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:110 fedora.linux_system_roles.fapolicyd : Run fapolicyd configuration check --- 0.58s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:68 Create temp test directory ---------------------------------------------- 0.55s /tmp/collections-zC9/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:24