[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-Owk executable location = /usr/local/bin/ansible-playbook python version = 3.12.5 (main, Aug 23 2024, 00:00:00) [GCC 14.2.1 20240801 (Red Hat 14.2.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-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml PLAY [Basic test for fapolicyd] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:2 Saturday 07 September 2024 08:27:05 -0400 (0:00:00.008) 0:00:00.008 **** [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-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:24 Saturday 07 September 2024 08:27:08 -0400 (0:00:02.993) 0:00:03.002 **** changed: [managed_node3] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/fapolicyd_41oodvfm", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Create directories for tests] ******************************************** task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:31 Saturday 07 September 2024 08:27:08 -0400 (0:00:00.444) 0:00:03.446 **** changed: [managed_node3] => (item=/var/tmp/fapolicyd_41oodvfm) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_41oodvfm", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_41oodvfm", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } changed: [managed_node3] => (item=/var/tmp/fapolicyd_41oodvfm/executables) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_41oodvfm/executables", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_41oodvfm/executables", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Create shell executables] ************************************************ task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:40 Saturday 07 September 2024 08:27:09 -0400 (0:00:00.872) 0:00:04.319 **** changed: [managed_node3] => (item=/var/tmp/fapolicyd_41oodvfm/executables/exe1) => { "ansible_loop_var": "item", "changed": true, "checksum": "aff91e37a72034e95f7e808e9a0d1226ffc183f7", "dest": "/var/tmp/fapolicyd_41oodvfm/executables/exe1", "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_41oodvfm/executables/exe1", "md5sum": "978a2722f12d810a2387ce1779d9744f", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 105, "src": "/root/.ansible/tmp/ansible-tmp-1725712029.6039948-3219-250236872413570/.source", "state": "file", "uid": 0 } changed: [managed_node3] => (item=/var/tmp/fapolicyd_41oodvfm/executables/exe2) => { "ansible_loop_var": "item", "changed": true, "checksum": "0721fbb4c1f7b839e9aca816b03f81b686d322ea", "dest": "/var/tmp/fapolicyd_41oodvfm/executables/exe2", "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_41oodvfm/executables/exe2", "md5sum": "bf2587359588ce3dfff7ff806a80d801", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 105, "src": "/root/.ansible/tmp/ansible-tmp-1725712030.4255629-3219-35116558372607/.source", "state": "file", "uid": 0 } TASK [Create a new user] ******************************************************* task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:55 Saturday 07 September 2024 08:27:11 -0400 (0:00:01.503) 0:00:05.822 **** 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-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:61 Saturday 07 September 2024 08:27:11 -0400 (0:00:00.599) 0:00:06.422 **** included: fedora.linux_system_roles.fapolicyd for managed_node3 TASK [fedora.linux_system_roles.fapolicyd : Set platform/version specific variables] *** task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:2 Saturday 07 September 2024 08:27:11 -0400 (0:00:00.034) 0:00:06.457 **** included: /tmp/collections-Owk/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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:2 Saturday 07 September 2024 08:27:11 -0400 (0:00:00.023) 0:00:06.480 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:10 Saturday 07 September 2024 08:27:11 -0400 (0:00:00.033) 0:00:06.514 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:15 Saturday 07 September 2024 08:27:12 -0400 (0:00:00.338) 0:00:06.853 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:19 Saturday 07 September 2024 08:27:12 -0400 (0:00:00.022) 0:00:06.876 **** 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_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_40.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=Fedora_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_40.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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:40 Saturday 07 September 2024 08:27:12 -0400 (0:00:00.031) 0:00:06.907 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:5 Saturday 07 September 2024 08:27:12 -0400 (0:00:00.071) 0:00:06.979 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:13 Saturday 07 September 2024 08:27:12 -0400 (0:00:00.014) 0:00:06.993 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:24 Saturday 07 September 2024 08:27:12 -0400 (0:00:00.033) 0:00:07.026 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:35 Saturday 07 September 2024 08:27:12 -0400 (0:00:00.034) 0:00:07.060 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:46 Saturday 07 September 2024 08:27:12 -0400 (0:00:00.035) 0:00:07.096 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:51 Saturday 07 September 2024 08:27:12 -0400 (0:00:00.018) 0:00:07.115 **** changed: [managed_node3] => { "changed": true, "rc": 0, "results": [ "Installed: fapolicyd-selinux-1.3.3-4.fc40.noarch", "Installed: rpm-plugin-fapolicyd-4.19.1.1-1.fc40.x86_64", "Installed: fapolicyd-1.3.3-4.fc40.x86_64", "Installed: policycoreutils-python-utils-3.6-3.fc40.noarch" ] } lsrpackages: fapolicyd fapolicyd-selinux TASK [fedora.linux_system_roles.fapolicyd : Copy fapolicyd configuration file] *** task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:59 Saturday 07 September 2024 08:27:34 -0400 (0:00:22.339) 0:00:29.454 **** changed: [managed_node3] => { "changed": true, "checksum": "d79d7424d2f9daf8e9e018c5750ecd06d3beba55", "dest": "/etc/fapolicyd/fapolicyd.conf", "gid": 991, "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-1725712054.7217062-3389-54790787440796/.source.conf", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.fapolicyd : Run fapolicyd configuration check] *** task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:68 Saturday 07 September 2024 08:27:35 -0400 (0:00:00.857) 0:00:30.311 **** ok: [managed_node3] => { "changed": false, "cmd": [ "fapolicyd-cli", "--check-config" ], "delta": "0:00:00.007591", "end": "2024-09-07 08:27:35.990967", "rc": 0, "start": "2024-09-07 08:27:35.983376" } STDOUT: Daemon config is OK TASK [fedora.linux_system_roles.fapolicyd : Start fapolicyd service] *********** task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:76 Saturday 07 September 2024 08:27:36 -0400 (0:00:00.511) 0:00:30.823 **** 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": "local-fs.target systemd-journald.socket system.slice -.mount 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", "CoredumpReceive": "no", "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": "[not set]", "IOReadOperations": "[not set]", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "[not set]", "IOWriteOperations": "[not set]", "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": "14721", "LimitNPROCSoft": "14721", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14721", "LimitSIGPENDINGSoft": "14721", "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": "3524460544", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPeak": "[not set]", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapCurrent": "[not set]", "MemorySwapMax": "infinity", "MemorySwapPeak": "[not set]", "MemoryZSwapCurrent": "[not set]", "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": "-.mount system.slice", "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", "SetLoginEnvironment": "no", "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": "infinity", "StartupMemoryLow": "0", "StartupMemoryMax": "infinity", "StartupMemorySwapMax": "infinity", "StartupMemoryZSwapMax": "infinity", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SurviveFinalKillSignal": "no", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "4416", "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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:85 Saturday 07 September 2024 08:27:37 -0400 (0:00:01.093) 0:00:31.916 **** changed: [managed_node3] => { "changed": true, "enabled": true, "name": "fapolicyd.service", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:fapolicyd_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-09-07 08:27:37 EDT", "ActiveEnterTimestampMonotonic": "254414584", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "-.mount local-fs.target system.slice systemd-journald.socket systemd-tmpfiles-setup.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-09-07 08:27:36 EDT", "AssertTimestampMonotonic": "254357881", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "797785000", "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": "Sat 2024-09-07 08:27:36 EDT", "ConditionTimestampMonotonic": "254357878", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/fapolicyd.service", "ControlGroupId": "5618", "ControlPID": "0", "CoredumpFilter": "0x33", "CoredumpReceive": "no", "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": "4873", "ExecMainStartTimestamp": "Sat 2024-09-07 08:27:37 EDT", "ExecMainStartTimestampMonotonic": "254414468", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; ignore_errors=no ; start_time=[Sat 2024-09-07 08:27:37 EDT] ; stop_time=[Sat 2024-09-07 08:27:37 EDT] ; pid=4872 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; flags= ; start_time=[Sat 2024-09-07 08:27:37 EDT] ; stop_time=[Sat 2024-09-07 08:27:37 EDT] ; pid=4872 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; ignore_errors=no ; start_time=[Sat 2024-09-07 08:27:37 EDT] ; stop_time=[Sat 2024-09-07 08:27:37 EDT] ; pid=4847 ; code=exited ; status=0 }", "ExecStartPreEx": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; flags= ; start_time=[Sat 2024-09-07 08:27:37 EDT] ; stop_time=[Sat 2024-09-07 08:27:37 EDT] ; pid=4847 ; 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": "[not set]", "IOReadOperations": "[not set]", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "[not set]", "IOWriteOperations": "[not set]", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "fapolicyd.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-09-07 08:27:37 EDT", "InactiveExitTimestampMonotonic": "254368248", "InvocationID": "ccd984e4d8cd421bb2d61171e5587d06", "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": "14721", "LimitNPROCSoft": "14721", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14721", "LimitSIGPENDINGSoft": "14721", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "4873", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "3517509632", "MemoryCurrent": "16117760", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPeak": "28831744", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapCurrent": "0", "MemorySwapMax": "infinity", "MemorySwapPeak": "0", "MemoryZSwapCurrent": "0", "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": "-.mount system.slice", "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", "SetLoginEnvironment": "no", "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": "infinity", "StartupMemoryLow": "0", "StartupMemoryMax": "infinity", "StartupMemorySwapMax": "infinity", "StartupMemoryZSwapMax": "infinity", "StateChangeTimestamp": "Sat 2024-09-07 08:27:37 EDT", "StateChangeTimestampMonotonic": "254414584", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SurviveFinalKillSignal": "no", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "4416", "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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:96 Saturday 07 September 2024 08:27:41 -0400 (0:00:03.869) 0:00:35.786 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:103 Saturday 07 September 2024 08:27:41 -0400 (0:00:00.018) 0:00:35.805 **** changed: [managed_node3] => { "changed": true, "cmd": [ "fapolicyd-cli", "--file", "delete", "/" ], "delta": "0:00:00.008321", "end": "2024-09-07 08:27:41.449935", "failed_when_result": false, "rc": 1, "start": "2024-09-07 08:27:41.441614" } STDERR: 09/07/24 08:27:41 [ 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:108 Saturday 07 September 2024 08:27:41 -0400 (0:00:00.483) 0:00:36.288 **** changed: [managed_node3] => (item=/etc/passwd) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/etc/passwd" ], "delta": "0:00:00.008757", "end": "2024-09-07 08:27:41.908368", "item": "/etc/passwd", "rc": 0, "start": "2024-09-07 08:27:41.899611" } 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.008580", "end": "2024-09-07 08:27:42.325117", "item": "/etc/fapolicyd/fapolicyd.conf", "rc": 0, "start": "2024-09-07 08:27:42.316537" } 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.008665", "end": "2024-09-07 08:27:42.746709", "item": "/etc/krb5.conf", "rc": 0, "start": "2024-09-07 08:27:42.738044" } changed: [managed_node3] => (item=/var/tmp/fapolicyd_41oodvfm/executables/exe1) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/var/tmp/fapolicyd_41oodvfm/executables/exe1" ], "delta": "0:00:00.008829", "end": "2024-09-07 08:27:43.166259", "item": "/var/tmp/fapolicyd_41oodvfm/executables/exe1", "rc": 0, "start": "2024-09-07 08:27:43.157430" } TASK [fedora.linux_system_roles.fapolicyd : Update fapolicyd db] *************** task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:124 Saturday 07 September 2024 08:27:43 -0400 (0:00:01.716) 0:00:38.004 **** 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='^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\")\"\nfound=0\nprev_cursor=\"$cursor\"\n# NOTE: Cannot use -u fapolicyd - for some reason, on el10, sometime during\n# the startup process, the UNIT field is dropped from fapolicyd journal\n# entries - so use -t instead which relies on SYSLOG_IDENTIFIER which seems stable\nwhile [ \"$(date +%s)\" -le \"$endtime\" ]; do\n prev_cursor=\"$cursor\"\n output=\"$(journalctl -t fapolicyd --grep \"$search_str\" --show-cursor --after-cursor \"$cursor\" || :)\"\n found=1\n while read -r line; do\n if [ \"$line\" = \"-- No entries --\" ]; then\n found=0\n elif [[ \"$line\" =~ ^--\\ cursor:\\ (.+)$ ]]; then\n cursor=\"${BASH_REMATCH[1]}\" # update cursor for next try\n fi\n done <<< \"$output\"\n if [ \"$found\" = 1 ]; then\n break\n fi\n sleep 1\ndone\nif [ \"$found\" = 0 ]; then\n echo ERROR: failed to update the trustdb\n journalctl -t fapolicyd\n exit 1\nfi\necho INFO: trustdb is updated\nexit 0 # success\n", "delta": "0:00:02.150535", "end": "2024-09-07 08:27:45.768951", "rc": 0, "start": "2024-09-07 08:27:43.618416" } STDOUT: 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:171 Saturday 07 September 2024 08:27:45 -0400 (0:00:02.604) 0:00:40.609 **** 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-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:73 Saturday 07 September 2024 08:27:45 -0400 (0:00:00.016) 0:00:40.626 **** ok: [managed_node3] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_41oodvfm/executables/exe1" ], "delta": "0:00:00.279946", "end": "2024-09-07 08:27:46.523583", "rc": 0, "start": "2024-09-07 08:27:46.243637" } TASK [Replace binary exe1 with exe2] ******************************************* task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:79 Saturday 07 September 2024 08:27:46 -0400 (0:00:00.740) 0:00:41.366 **** changed: [managed_node3] => { "changed": true, "checksum": "0721fbb4c1f7b839e9aca816b03f81b686d322ea", "dest": "/var/tmp/fapolicyd_41oodvfm/executables/exe1", "gid": 0, "group": "root", "md5sum": "bf2587359588ce3dfff7ff806a80d801", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 105, "src": "/var/tmp/fapolicyd_41oodvfm/executables/exe2", "state": "file", "uid": 0 } TASK [Run untrusted binary exe2] *********************************************** task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:86 Saturday 07 September 2024 08:27:47 -0400 (0:00:00.457) 0:00:41.824 **** ok: [managed_node3] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_41oodvfm/executables/exe2" ], "delta": "0:00:00.055061", "end": "2024-09-07 08:27:47.489373", "failed_when_result": false, "rc": 126, "start": "2024-09-07 08:27:47.434312" } STDERR: -bash: line 1: /var/tmp/fapolicyd_41oodvfm/executables/exe2: Operation not permitted MSG: non-zero return code TASK [Check now untrusted exe1 after replacement] ****************************** task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:94 Saturday 07 September 2024 08:27:47 -0400 (0:00:00.502) 0:00:42.326 **** ok: [managed_node3] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_41oodvfm/executables/exe1" ], "delta": "0:00:00.051786", "end": "2024-09-07 08:27:48.008783", "failed_when_result": false, "rc": 126, "start": "2024-09-07 08:27:47.956997" } STDERR: -bash: line 1: /var/tmp/fapolicyd_41oodvfm/executables/exe1: Operation not permitted MSG: non-zero return code TASK [Run the role again without test file] ************************************ task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:102 Saturday 07 September 2024 08:27:48 -0400 (0:00:00.525) 0:00:42.852 **** included: fedora.linux_system_roles.fapolicyd for managed_node3 TASK [fedora.linux_system_roles.fapolicyd : Set platform/version specific variables] *** task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:2 Saturday 07 September 2024 08:27:48 -0400 (0:00:00.059) 0:00:42.911 **** included: /tmp/collections-Owk/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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:2 Saturday 07 September 2024 08:27:48 -0400 (0:00:00.027) 0:00:42.939 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:10 Saturday 07 September 2024 08:27:48 -0400 (0:00:00.049) 0:00:42.989 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:15 Saturday 07 September 2024 08:27:48 -0400 (0:00:00.032) 0:00:43.021 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:19 Saturday 07 September 2024 08:27:48 -0400 (0:00:00.032) 0:00:43.054 **** 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_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_40.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=Fedora_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_40.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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:40 Saturday 07 September 2024 08:27:48 -0400 (0:00:00.056) 0:00:43.110 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:5 Saturday 07 September 2024 08:27:48 -0400 (0:00:00.094) 0:00:43.205 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:13 Saturday 07 September 2024 08:27:48 -0400 (0:00:00.014) 0:00:43.219 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:24 Saturday 07 September 2024 08:27:48 -0400 (0:00:00.034) 0:00:43.254 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:35 Saturday 07 September 2024 08:27:48 -0400 (0:00:00.033) 0:00:43.287 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:46 Saturday 07 September 2024 08:27:48 -0400 (0:00:00.035) 0:00:43.323 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:51 Saturday 07 September 2024 08:27:48 -0400 (0:00:00.018) 0:00:43.342 **** ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: fapolicyd fapolicyd-selinux TASK [fedora.linux_system_roles.fapolicyd : Copy fapolicyd configuration file] *** task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:59 Saturday 07 September 2024 08:27:50 -0400 (0:00:01.447) 0:00:44.790 **** ok: [managed_node3] => { "changed": false, "checksum": "d79d7424d2f9daf8e9e018c5750ecd06d3beba55", "dest": "/etc/fapolicyd/fapolicyd.conf", "gid": 991, "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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:68 Saturday 07 September 2024 08:27:50 -0400 (0:00:00.781) 0:00:45.571 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:76 Saturday 07 September 2024 08:27:50 -0400 (0:00:00.048) 0:00:45.620 **** ok: [managed_node3] => { "changed": false, "enabled": true, "name": "fapolicyd.service", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:fapolicyd_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-09-07 08:27:44 EDT", "ActiveEnterTimestampMonotonic": "262100124", "ActiveExitTimestamp": "Sat 2024-09-07 08:27:44 EDT", "ActiveExitTimestampMonotonic": "262004582", "ActiveState": "active", "After": "-.mount local-fs.target system.slice systemd-journald.socket systemd-tmpfiles-setup.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-09-07 08:27:44 EDT", "AssertTimestampMonotonic": "262047399", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "1131845000", "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": "Sat 2024-09-07 08:27:44 EDT", "ConditionTimestampMonotonic": "262047395", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/fapolicyd.service", "ControlGroupId": "5704", "ControlPID": "0", "CoredumpFilter": "0x33", "CoredumpReceive": "no", "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": "5700", "ExecMainStartTimestamp": "Sat 2024-09-07 08:27:44 EDT", "ExecMainStartTimestampMonotonic": "262099992", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; ignore_errors=no ; start_time=[Sat 2024-09-07 08:27:44 EDT] ; stop_time=[Sat 2024-09-07 08:27:44 EDT] ; pid=5699 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; flags= ; start_time=[Sat 2024-09-07 08:27:44 EDT] ; stop_time=[Sat 2024-09-07 08:27:44 EDT] ; pid=5699 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; ignore_errors=no ; start_time=[Sat 2024-09-07 08:27:44 EDT] ; stop_time=[Sat 2024-09-07 08:27:44 EDT] ; pid=5674 ; code=exited ; status=0 }", "ExecStartPreEx": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; flags= ; start_time=[Sat 2024-09-07 08:27:44 EDT] ; stop_time=[Sat 2024-09-07 08:27:44 EDT] ; pid=5674 ; 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": "[not set]", "IOReadOperations": "[not set]", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "[not set]", "IOWriteOperations": "[not set]", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "fapolicyd.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Sat 2024-09-07 08:27:44 EDT", "InactiveEnterTimestampMonotonic": "262045626", "InactiveExitTimestamp": "Sat 2024-09-07 08:27:44 EDT", "InactiveExitTimestampMonotonic": "262051352", "InvocationID": "1d823f1dc91e48148a8ca1e620b4408d", "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": "14721", "LimitNPROCSoft": "14721", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14721", "LimitSIGPENDINGSoft": "14721", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "5700", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "3414986752", "MemoryCurrent": "30498816", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPeak": "31072256", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapCurrent": "0", "MemorySwapMax": "infinity", "MemorySwapPeak": "0", "MemoryZSwapCurrent": "0", "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": "-.mount system.slice", "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", "SetLoginEnvironment": "no", "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": "infinity", "StartupMemoryLow": "0", "StartupMemoryMax": "infinity", "StartupMemorySwapMax": "infinity", "StartupMemoryZSwapMax": "infinity", "StateChangeTimestamp": "Sat 2024-09-07 08:27:44 EDT", "StateChangeTimestampMonotonic": "262100124", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SurviveFinalKillSignal": "no", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "4", "TasksMax": "4416", "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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:85 Saturday 07 September 2024 08:27:51 -0400 (0:00:00.634) 0:00:46.255 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:96 Saturday 07 September 2024 08:27:51 -0400 (0:00:00.034) 0:00:46.290 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:103 Saturday 07 September 2024 08:27:51 -0400 (0:00:00.018) 0:00:46.308 **** changed: [managed_node3] => { "changed": true, "cmd": [ "fapolicyd-cli", "--file", "delete", "/" ], "delta": "0:00:00.006858", "end": "2024-09-07 08:27:51.894456", "failed_when_result": false, "rc": 0, "start": "2024-09-07 08:27:51.887598" } TASK [fedora.linux_system_roles.fapolicyd : Add file to trustdb] *************** task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:108 Saturday 07 September 2024 08:27:51 -0400 (0:00:00.420) 0:00:46.729 **** 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:124 Saturday 07 September 2024 08:27:51 -0400 (0:00:00.035) 0:00:46.764 **** 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='^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\")\"\nfound=0\nprev_cursor=\"$cursor\"\n# NOTE: Cannot use -u fapolicyd - for some reason, on el10, sometime during\n# the startup process, the UNIT field is dropped from fapolicyd journal\n# entries - so use -t instead which relies on SYSLOG_IDENTIFIER which seems stable\nwhile [ \"$(date +%s)\" -le \"$endtime\" ]; do\n prev_cursor=\"$cursor\"\n output=\"$(journalctl -t fapolicyd --grep \"$search_str\" --show-cursor --after-cursor \"$cursor\" || :)\"\n found=1\n while read -r line; do\n if [ \"$line\" = \"-- No entries --\" ]; then\n found=0\n elif [[ \"$line\" =~ ^--\\ cursor:\\ (.+)$ ]]; then\n cursor=\"${BASH_REMATCH[1]}\" # update cursor for next try\n fi\n done <<< \"$output\"\n if [ \"$found\" = 1 ]; then\n break\n fi\n sleep 1\ndone\nif [ \"$found\" = 0 ]; then\n echo ERROR: failed to update the trustdb\n journalctl -t fapolicyd\n exit 1\nfi\necho INFO: trustdb is updated\nexit 0 # success\n", "delta": "0:00:03.051193", "end": "2024-09-07 08:27:55.415728", "rc": 0, "start": "2024-09-07 08:27:52.364535" } STDOUT: 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-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:171 Saturday 07 September 2024 08:27:55 -0400 (0:00:03.494) 0:00:50.259 **** 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-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:110 Saturday 07 September 2024 08:27:55 -0400 (0:00:00.026) 0:00:50.286 **** ok: [managed_node3] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_41oodvfm/executables/exe1" ], "delta": "0:00:00.144222", "end": "2024-09-07 08:27:56.060286", "failed_when_result": false, "rc": 126, "start": "2024-09-07 08:27:55.916064" } STDERR: -bash: line 1: /var/tmp/fapolicyd_41oodvfm/executables/exe1: Operation not permitted MSG: non-zero return code TASK [Shutdown fapolicyd] ****************************************************** task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:118 Saturday 07 September 2024 08:27:56 -0400 (0:00:00.612) 0:00:50.898 **** changed: [managed_node3] => { "changed": true, "enabled": false, "name": "fapolicyd", "state": "stopped", "status": { "AccessSELinuxContext": "system_u:object_r:fapolicyd_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-09-07 08:27:54 EDT", "ActiveEnterTimestampMonotonic": "271749495", "ActiveExitTimestamp": "Sat 2024-09-07 08:27:53 EDT", "ActiveExitTimestampMonotonic": "270748788", "ActiveState": "active", "After": "-.mount local-fs.target system.slice systemd-journald.socket systemd-tmpfiles-setup.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-09-07 08:27:54 EDT", "AssertTimestampMonotonic": "271698280", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "816614000", "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": "Sat 2024-09-07 08:27:54 EDT", "ConditionTimestampMonotonic": "271698276", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/fapolicyd.service", "ControlGroupId": "5790", "ControlPID": "0", "CoredumpFilter": "0x33", "CoredumpReceive": "no", "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": "6832", "ExecMainStartTimestamp": "Sat 2024-09-07 08:27:54 EDT", "ExecMainStartTimestampMonotonic": "271749414", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; ignore_errors=no ; start_time=[Sat 2024-09-07 08:27:54 EDT] ; stop_time=[Sat 2024-09-07 08:27:54 EDT] ; pid=6831 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; flags= ; start_time=[Sat 2024-09-07 08:27:54 EDT] ; stop_time=[Sat 2024-09-07 08:27:54 EDT] ; pid=6831 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; ignore_errors=no ; start_time=[Sat 2024-09-07 08:27:54 EDT] ; stop_time=[Sat 2024-09-07 08:27:54 EDT] ; pid=6806 ; code=exited ; status=0 }", "ExecStartPreEx": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; flags= ; start_time=[Sat 2024-09-07 08:27:54 EDT] ; stop_time=[Sat 2024-09-07 08:27:54 EDT] ; pid=6806 ; 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": "[not set]", "IOReadOperations": "[not set]", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "[not set]", "IOWriteOperations": "[not set]", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "fapolicyd.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Sat 2024-09-07 08:27:54 EDT", "InactiveEnterTimestampMonotonic": "271697430", "InactiveExitTimestamp": "Sat 2024-09-07 08:27:54 EDT", "InactiveExitTimestampMonotonic": "271704617", "InvocationID": "8be92b5c73bb43c8a54a2d32d248c983", "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": "14721", "LimitNPROCSoft": "14721", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14721", "LimitSIGPENDINGSoft": "14721", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "6832", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "3467460608", "MemoryCurrent": "24338432", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPeak": "28979200", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapCurrent": "0", "MemorySwapMax": "infinity", "MemorySwapPeak": "0", "MemoryZSwapCurrent": "0", "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": "-.mount system.slice", "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", "SetLoginEnvironment": "no", "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": "infinity", "StartupMemoryLow": "0", "StartupMemoryMax": "infinity", "StartupMemorySwapMax": "infinity", "StartupMemoryZSwapMax": "infinity", "StateChangeTimestamp": "Sat 2024-09-07 08:27:54 EDT", "StateChangeTimestampMonotonic": "271749495", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SurviveFinalKillSignal": "no", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "4", "TasksMax": "4416", "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-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:124 Saturday 07 September 2024 08:27:58 -0400 (0:00:01.922) 0:00:52.820 **** changed: [managed_node3] => { "changed": true, "path": "/var/tmp/fapolicyd_41oodvfm", "state": "absent" } TASK [Remove test user] ******************************************************** task path: /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:129 Saturday 07 September 2024 08:27:58 -0400 (0:00:00.359) 0:00:53.180 **** 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-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:139 Saturday 07 September 2024 08:27:58 -0400 (0:00:00.471) 0:00:53.651 **** 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 Saturday 07 September 2024 08:27:58 -0400 (0:00:00.025) 0:00:53.677 **** =============================================================================== fedora.linux_system_roles.fapolicyd : Install fapolicyd packages ------- 22.34s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:51 fedora.linux_system_roles.fapolicyd : Restart fapolicyd service --------- 3.87s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:85 fedora.linux_system_roles.fapolicyd : Update fapolicyd db --------------- 3.49s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:124 Gathering Facts --------------------------------------------------------- 2.99s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:2 fedora.linux_system_roles.fapolicyd : Update fapolicyd db --------------- 2.60s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:124 Shutdown fapolicyd ------------------------------------------------------ 1.92s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:118 fedora.linux_system_roles.fapolicyd : Add file to trustdb --------------- 1.72s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:108 Create shell executables ------------------------------------------------ 1.50s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:40 fedora.linux_system_roles.fapolicyd : Install fapolicyd packages -------- 1.45s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:51 fedora.linux_system_roles.fapolicyd : Start fapolicyd service ----------- 1.09s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:76 Create directories for tests -------------------------------------------- 0.87s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:31 fedora.linux_system_roles.fapolicyd : Copy fapolicyd configuration file --- 0.86s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:59 fedora.linux_system_roles.fapolicyd : Copy fapolicyd configuration file --- 0.78s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:59 Run trusted binary exe1 ------------------------------------------------- 0.74s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:73 fedora.linux_system_roles.fapolicyd : Start fapolicyd service ----------- 0.63s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:76 Run untrusted exe1 after removing from trustdb -------------------------- 0.61s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:110 Create a new user ------------------------------------------------------- 0.60s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:55 Check now untrusted exe1 after replacement ------------------------------ 0.53s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:94 fedora.linux_system_roles.fapolicyd : Run fapolicyd configuration check --- 0.51s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:68 Run untrusted binary exe2 ----------------------------------------------- 0.50s /tmp/collections-Owk/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:86