ansible-playbook [core 2.16.13] 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-R31 executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/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-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml PLAY [Basic test for fapolicyd] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:2 Monday 11 November 2024 20:17:29 -0500 (0:00:00.016) 0:00:00.016 ******* ok: [managed-node3] TASK [Create temp test directory] ********************************************** task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:24 Monday 11 November 2024 20:17:30 -0500 (0:00:01.428) 0:00:01.445 ******* changed: [managed-node3] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/fapolicyd_wolhq3vv", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Create directories for tests] ******************************************** task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:31 Monday 11 November 2024 20:17:31 -0500 (0:00:00.456) 0:00:01.902 ******* changed: [managed-node3] => (item=/var/tmp/fapolicyd_wolhq3vv) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_wolhq3vv", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_wolhq3vv", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } changed: [managed-node3] => (item=/var/tmp/fapolicyd_wolhq3vv/executables) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_wolhq3vv/executables", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_wolhq3vv/executables", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Create shell executables] ************************************************ task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:40 Monday 11 November 2024 20:17:32 -0500 (0:00:00.874) 0:00:02.777 ******* changed: [managed-node3] => (item=/var/tmp/fapolicyd_wolhq3vv/executables/exe1) => { "ansible_loop_var": "item", "changed": true, "checksum": "141864253b7bcf49e9fb89dab0b485b33f093514", "dest": "/var/tmp/fapolicyd_wolhq3vv/executables/exe1", "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_wolhq3vv/executables/exe1", "md5sum": "ecdd07a74b5ff2ee8ba20212d42f8836", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 114, "src": "/root/.ansible/tmp/ansible-tmp-1731374252.230211-7997-214806598346178/source", "state": "file", "uid": 0 } changed: [managed-node3] => (item=/var/tmp/fapolicyd_wolhq3vv/executables/exe2) => { "ansible_loop_var": "item", "changed": true, "checksum": "f960a091fdfb3cd2146c1930e1df8a7a699d648d", "dest": "/var/tmp/fapolicyd_wolhq3vv/executables/exe2", "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_wolhq3vv/executables/exe2", "md5sum": "6bf5e9dedb9584c452e15e5d7fea2732", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 114, "src": "/root/.ansible/tmp/ansible-tmp-1731374253.0458505-7997-6655417531531/source", "state": "file", "uid": 0 } TASK [Create a new user] ******************************************************* task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:55 Monday 11 November 2024 20:17:33 -0500 (0:00:01.467) 0:00:04.244 ******* changed: [managed-node3] => { "changed": true, "comment": "", "create_home": true, "group": 1000, "home": "/home/fapolicyd_test1_user", "name": "fapolicyd_test1_user", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1000 } TASK [Run the role] ************************************************************ task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:61 Monday 11 November 2024 20:17:34 -0500 (0:00:00.624) 0:00:04.869 ******* TASK [fedora.linux_system_roles.fapolicyd : Set platform/version specific variables] *** task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:2 Monday 11 November 2024 20:17:34 -0500 (0:00:00.049) 0:00:04.918 ******* included: /tmp/collections-R31/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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:2 Monday 11 November 2024 20:17:34 -0500 (0:00:00.021) 0:00:04.940 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:10 Monday 11 November 2024 20:17:34 -0500 (0:00:00.033) 0:00:04.973 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:15 Monday 11 November 2024 20:17:34 -0500 (0:00:00.322) 0:00:05.296 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:19 Monday 11 November 2024 20:17:34 -0500 (0:00:00.022) 0:00:05.318 ******* 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=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:40 Monday 11 November 2024 20:17:34 -0500 (0:00:00.029) 0:00:05.348 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:5 Monday 11 November 2024 20:17:34 -0500 (0:00:00.069) 0:00:05.418 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:13 Monday 11 November 2024 20:17:34 -0500 (0:00:00.016) 0:00:05.434 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:24 Monday 11 November 2024 20:17:34 -0500 (0:00:00.034) 0:00:05.469 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:35 Monday 11 November 2024 20:17:34 -0500 (0:00:00.033) 0:00:05.503 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:46 Monday 11 November 2024 20:17:34 -0500 (0:00:00.034) 0:00:05.537 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:51 Monday 11 November 2024 20:17:34 -0500 (0:00:00.017) 0:00:05.555 ******* changed: [managed-node3] => { "changed": true, "rc": 0, "results": [ "Installed: fapolicyd-selinux-1.3.2-1.el8.noarch", "Installed: rpm-plugin-fapolicyd-4.14.3-31.el8.x86_64", "Installed: fapolicyd-1.3.2-1.el8.x86_64", "Installed: policycoreutils-python-utils-2.9-26.el8.noarch" ] } lsrpackages: fapolicyd fapolicyd-selinux TASK [fedora.linux_system_roles.fapolicyd : Copy fapolicyd configuration file] *** task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:59 Monday 11 November 2024 20:18:10 -0500 (0:00:35.356) 0:00:40.911 ******* 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-1731374290.3312984-8297-107388395698720/source", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.fapolicyd : Run fapolicyd configuration check] *** task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:68 Monday 11 November 2024 20:18:10 -0500 (0:00:00.683) 0:00:41.595 ******* ok: [managed-node3] => { "changed": false, "cmd": [ "fapolicyd-cli", "--check-config" ], "delta": "0:00:00.006113", "end": "2024-11-11 20:18:11.367444", "rc": 0, "start": "2024-11-11 20:18:11.361331" } STDOUT: Daemon config is OK TASK [fedora.linux_system_roles.fapolicyd : Start fapolicyd service] *********** task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:76 Monday 11 November 2024 20:18:11 -0500 (0:00:00.438) 0:00:42.034 ******* changed: [managed-node3] => { "changed": true, "enabled": true, "name": "fapolicyd.service", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice systemd-tmpfiles-setup.service systemd-journald.socket local-fs.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "ControlPID": "0", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "File Access Policy Daemon", "DevicePolicy": "auto", "Documentation": "man:fapolicyd(8)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "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 }", "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 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/fapolicyd.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "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": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "fapolicyd.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "-1000", "OnFailureJobMode": "replace", "PIDFile": "/run/fapolicyd.pid", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice", "Restart": "on-abnormal", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.fapolicyd : Restart fapolicyd service] ********* task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:85 Monday 11 November 2024 20:18:12 -0500 (0:00:00.894) 0:00:42.928 ******* changed: [managed-node3] => { "changed": true, "enabled": true, "name": "fapolicyd.service", "state": "started", "status": { "ActiveEnterTimestamp": "Mon 2024-11-11 20:18:12 EST", "ActiveEnterTimestampMonotonic": "348238881", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket system.slice local-fs.target systemd-tmpfiles-setup.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Mon 2024-11-11 20:18:12 EST", "AssertTimestampMonotonic": "348201870", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2024-11-11 20:18:12 EST", "ConditionTimestampMonotonic": "348201868", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/fapolicyd.service", "ControlPID": "0", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "File Access Policy Daemon", "DevicePolicy": "auto", "Documentation": "man:fapolicyd(8)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "10343", "ExecMainStartTimestamp": "Mon 2024-11-11 20:18:12 EST", "ExecMainStartTimestampMonotonic": "348238862", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; ignore_errors=no ; start_time=[Mon 2024-11-11 20:18:12 EST] ; stop_time=[Mon 2024-11-11 20:18:12 EST] ; pid=10342 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; ignore_errors=no ; start_time=[Mon 2024-11-11 20:18:12 EST] ; stop_time=[Mon 2024-11-11 20:18:12 EST] ; pid=10317 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/fapolicyd.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "fapolicyd.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Mon 2024-11-11 20:18:12 EST", "InactiveExitTimestampMonotonic": "348202687", "InvocationID": "d738c7d9a93741bea8713049b3ec00af", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "10343", "MemoryAccounting": "yes", "MemoryCurrent": "28401664", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "fapolicyd.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "-1000", "OnFailureJobMode": "replace", "PIDFile": "/run/fapolicyd.pid", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice", "Restart": "on-abnormal", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Mon 2024-11-11 20:18:12 EST", "StateChangeTimestampMonotonic": "348238881", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Mon 2024-11-11 20:18:12 EST", "WatchdogTimestampMonotonic": "348238879", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.fapolicyd : Check fapolicyd logs] ************** task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:96 Monday 11 November 2024 20:18:13 -0500 (0:00:01.289) 0:00:44.218 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:103 Monday 11 November 2024 20:18:13 -0500 (0:00:00.018) 0:00:44.236 ******* changed: [managed-node3] => { "changed": true, "cmd": [ "fapolicyd-cli", "--file", "delete", "/" ], "delta": "0:00:00.011883", "end": "2024-11-11 20:18:14.008651", "failed_when_result": false, "rc": 1, "start": "2024-11-11 20:18:13.996768" } STDERR: / 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:108 Monday 11 November 2024 20:18:14 -0500 (0:00:00.450) 0:00:44.687 ******* changed: [managed-node3] => (item=/etc/passwd) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/etc/passwd" ], "delta": "0:00:00.010451", "end": "2024-11-11 20:18:14.484620", "item": "/etc/passwd", "rc": 0, "start": "2024-11-11 20:18:14.474169" } 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.009115", "end": "2024-11-11 20:18:14.943189", "item": "/etc/fapolicyd/fapolicyd.conf", "rc": 0, "start": "2024-11-11 20:18:14.934074" } 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.008632", "end": "2024-11-11 20:18:15.385867", "item": "/etc/krb5.conf", "rc": 0, "start": "2024-11-11 20:18:15.377235" } changed: [managed-node3] => (item=/var/tmp/fapolicyd_wolhq3vv/executables/exe1) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/var/tmp/fapolicyd_wolhq3vv/executables/exe1" ], "delta": "0:00:00.008505", "end": "2024-11-11 20:18:15.824572", "item": "/var/tmp/fapolicyd_wolhq3vv/executables/exe1", "rc": 0, "start": "2024-11-11 20:18:15.816067" } TASK [fedora.linux_system_roles.fapolicyd : Update fapolicyd db] *************** task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:124 Monday 11 November 2024 20:18:15 -0500 (0:00:01.822) 0:00:46.510 ******* 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.865979", "end": "2024-11-11 20:18:20.169571", "rc": 0, "start": "2024-11-11 20:18:16.303592" } 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:171 Monday 11 November 2024 20:18:20 -0500 (0:00:04.343) 0:00:50.854 ******* 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-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:73 Monday 11 November 2024 20:18:20 -0500 (0:00:00.016) 0:00:50.871 ******* ok: [managed-node3] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_wolhq3vv/executables/exe1" ], "delta": "0:00:00.227478", "end": "2024-11-11 20:18:20.876277", "rc": 0, "start": "2024-11-11 20:18:20.648799" } TASK [Replace binary exe1 with exe2] ******************************************* task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:79 Monday 11 November 2024 20:18:20 -0500 (0:00:00.691) 0:00:51.562 ******* changed: [managed-node3] => { "changed": true, "checksum": "f960a091fdfb3cd2146c1930e1df8a7a699d648d", "dest": "/var/tmp/fapolicyd_wolhq3vv/executables/exe1", "gid": 0, "group": "root", "md5sum": "6bf5e9dedb9584c452e15e5d7fea2732", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 114, "src": "/var/tmp/fapolicyd_wolhq3vv/executables/exe2", "state": "file", "uid": 0 } TASK [Run untrusted binary exe2] *********************************************** task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:86 Monday 11 November 2024 20:18:21 -0500 (0:00:00.463) 0:00:52.026 ******* ok: [managed-node3] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_wolhq3vv/executables/exe2" ], "delta": "0:00:00.053584", "end": "2024-11-11 20:18:21.861224", "failed_when_result": false, "rc": 126, "start": "2024-11-11 20:18:21.807640" } STDERR: -bash: /var/tmp/fapolicyd_wolhq3vv/executables/exe2: Operation not permitted MSG: non-zero return code TASK [Check now untrusted exe1 after replacement] ****************************** task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:94 Monday 11 November 2024 20:18:21 -0500 (0:00:00.521) 0:00:52.547 ******* ok: [managed-node3] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_wolhq3vv/executables/exe1" ], "delta": "0:00:00.054555", "end": "2024-11-11 20:18:22.382709", "failed_when_result": false, "rc": 126, "start": "2024-11-11 20:18:22.328154" } STDERR: -bash: /var/tmp/fapolicyd_wolhq3vv/executables/exe1: Operation not permitted MSG: non-zero return code TASK [Run the role again without test file] ************************************ task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:102 Monday 11 November 2024 20:18:22 -0500 (0:00:00.521) 0:00:53.069 ******* TASK [fedora.linux_system_roles.fapolicyd : Set platform/version specific variables] *** task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:2 Monday 11 November 2024 20:18:22 -0500 (0:00:00.042) 0:00:53.111 ******* included: /tmp/collections-R31/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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:2 Monday 11 November 2024 20:18:22 -0500 (0:00:00.021) 0:00:53.133 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:10 Monday 11 November 2024 20:18:22 -0500 (0:00:00.035) 0:00:53.168 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:15 Monday 11 November 2024 20:18:22 -0500 (0:00:00.017) 0:00:53.186 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:19 Monday 11 November 2024 20:18:22 -0500 (0:00:00.017) 0:00:53.203 ******* 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=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:40 Monday 11 November 2024 20:18:22 -0500 (0:00:00.030) 0:00:53.233 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:5 Monday 11 November 2024 20:18:22 -0500 (0:00:00.070) 0:00:53.304 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:13 Monday 11 November 2024 20:18:22 -0500 (0:00:00.013) 0:00:53.318 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:24 Monday 11 November 2024 20:18:22 -0500 (0:00:00.034) 0:00:53.352 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:35 Monday 11 November 2024 20:18:22 -0500 (0:00:00.034) 0:00:53.387 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:46 Monday 11 November 2024 20:18:22 -0500 (0:00:00.033) 0:00:53.420 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:51 Monday 11 November 2024 20:18:22 -0500 (0:00:00.017) 0:00:53.437 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:59 Monday 11 November 2024 20:18:25 -0500 (0:00:03.036) 0:00:56.474 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:68 Monday 11 November 2024 20:18:26 -0500 (0:00:00.807) 0:00:57.281 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:76 Monday 11 November 2024 20:18:26 -0500 (0:00:00.035) 0:00:57.317 ******* ok: [managed-node3] => { "changed": false, "enabled": true, "name": "fapolicyd.service", "state": "started", "status": { "ActiveEnterTimestamp": "Mon 2024-11-11 20:18:18 EST", "ActiveEnterTimestampMonotonic": "354141037", "ActiveExitTimestamp": "Mon 2024-11-11 20:18:17 EST", "ActiveExitTimestampMonotonic": "353338596", "ActiveState": "active", "After": "systemd-journald.socket system.slice local-fs.target systemd-tmpfiles-setup.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Mon 2024-11-11 20:18:18 EST", "AssertTimestampMonotonic": "354103852", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2024-11-11 20:18:18 EST", "ConditionTimestampMonotonic": "354103851", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/fapolicyd.service", "ControlPID": "0", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "File Access Policy Daemon", "DevicePolicy": "auto", "Documentation": "man:fapolicyd(8)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "11282", "ExecMainStartTimestamp": "Mon 2024-11-11 20:18:18 EST", "ExecMainStartTimestampMonotonic": "354139195", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; ignore_errors=no ; start_time=[Mon 2024-11-11 20:18:18 EST] ; stop_time=[Mon 2024-11-11 20:18:18 EST] ; pid=11281 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; ignore_errors=no ; start_time=[Mon 2024-11-11 20:18:18 EST] ; stop_time=[Mon 2024-11-11 20:18:18 EST] ; pid=11256 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/fapolicyd.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "fapolicyd.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Mon 2024-11-11 20:18:18 EST", "InactiveEnterTimestampMonotonic": "354103186", "InactiveExitTimestamp": "Mon 2024-11-11 20:18:18 EST", "InactiveExitTimestampMonotonic": "354104834", "InvocationID": "39149b216296410a949b46b69671983b", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "11282", "MemoryAccounting": "yes", "MemoryCurrent": "36777984", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "fapolicyd.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "-1000", "OnFailureJobMode": "replace", "PIDFile": "/run/fapolicyd.pid", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice", "Restart": "on-abnormal", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Mon 2024-11-11 20:18:18 EST", "StateChangeTimestampMonotonic": "354141037", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "4", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.fapolicyd : Restart fapolicyd service] ********* task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:85 Monday 11 November 2024 20:18:27 -0500 (0:00:00.633) 0:00:57.951 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:96 Monday 11 November 2024 20:18:27 -0500 (0:00:00.035) 0:00:57.986 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:103 Monday 11 November 2024 20:18:27 -0500 (0:00:00.019) 0:00:58.005 ******* changed: [managed-node3] => { "changed": true, "cmd": [ "fapolicyd-cli", "--file", "delete", "/" ], "delta": "0:00:00.008259", "end": "2024-11-11 20:18:27.767358", "failed_when_result": false, "rc": 0, "start": "2024-11-11 20:18:27.759099" } TASK [fedora.linux_system_roles.fapolicyd : Add file to trustdb] *************** task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:108 Monday 11 November 2024 20:18:27 -0500 (0:00:00.447) 0:00:58.453 ******* 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:124 Monday 11 November 2024 20:18:27 -0500 (0:00:00.034) 0:00:58.487 ******* 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:05.053452", "end": "2024-11-11 20:18:33.315579", "rc": 0, "start": "2024-11-11 20:18:28.262127" } 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-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:171 Monday 11 November 2024 20:18:33 -0500 (0:00:05.514) 0:01:04.001 ******* 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-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:110 Monday 11 November 2024 20:18:33 -0500 (0:00:00.016) 0:01:04.018 ******* ok: [managed-node3] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_wolhq3vv/executables/exe1" ], "delta": "0:00:00.167802", "end": "2024-11-11 20:18:33.961362", "failed_when_result": false, "rc": 126, "start": "2024-11-11 20:18:33.793560" } STDERR: -bash: /var/tmp/fapolicyd_wolhq3vv/executables/exe1: Operation not permitted MSG: non-zero return code TASK [Shutdown fapolicyd] ****************************************************** task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:118 Monday 11 November 2024 20:18:34 -0500 (0:00:00.627) 0:01:04.646 ******* changed: [managed-node3] => { "changed": true, "enabled": false, "name": "fapolicyd", "state": "stopped", "status": { "ActiveEnterTimestamp": "Mon 2024-11-11 20:18:31 EST", "ActiveEnterTimestampMonotonic": "367286155", "ActiveExitTimestamp": "Mon 2024-11-11 20:18:29 EST", "ActiveExitTimestampMonotonic": "365295256", "ActiveState": "active", "After": "systemd-journald.socket system.slice local-fs.target systemd-tmpfiles-setup.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Mon 2024-11-11 20:18:31 EST", "AssertTimestampMonotonic": "367248813", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2024-11-11 20:18:31 EST", "ConditionTimestampMonotonic": "367248812", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/fapolicyd.service", "ControlPID": "0", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "File Access Policy Daemon", "DevicePolicy": "auto", "Documentation": "man:fapolicyd(8)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "12613", "ExecMainStartTimestamp": "Mon 2024-11-11 20:18:31 EST", "ExecMainStartTimestampMonotonic": "367286112", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; ignore_errors=no ; start_time=[Mon 2024-11-11 20:18:31 EST] ; stop_time=[Mon 2024-11-11 20:18:31 EST] ; pid=12611 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; ignore_errors=no ; start_time=[Mon 2024-11-11 20:18:31 EST] ; stop_time=[Mon 2024-11-11 20:18:31 EST] ; pid=12587 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/fapolicyd.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "fapolicyd.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Mon 2024-11-11 20:18:31 EST", "InactiveEnterTimestampMonotonic": "367248071", "InactiveExitTimestamp": "Mon 2024-11-11 20:18:31 EST", "InactiveExitTimestampMonotonic": "367249946", "InvocationID": "a676cc855cfe4531821fe05630de94ba", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "12613", "MemoryAccounting": "yes", "MemoryCurrent": "35274752", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "fapolicyd.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "-1000", "OnFailureJobMode": "replace", "PIDFile": "/run/fapolicyd.pid", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice", "Restart": "on-abnormal", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Mon 2024-11-11 20:18:31 EST", "StateChangeTimestampMonotonic": "367286155", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "4", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [Clean up temp directory] ************************************************* task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:124 Monday 11 November 2024 20:18:35 -0500 (0:00:01.417) 0:01:06.063 ******* changed: [managed-node3] => { "changed": true, "path": "/var/tmp/fapolicyd_wolhq3vv", "state": "absent" } TASK [Remove test user] ******************************************************** task path: /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:129 Monday 11 November 2024 20:18:35 -0500 (0:00:00.322) 0:01:06.386 ******* 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-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:139 Monday 11 November 2024 20:18:36 -0500 (0:00:00.426) 0:01:06.812 ******* skipping: [managed-node3] => { "changed": false, "false_condition": "__result is failed", "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* managed-node3 : ok=32 changed=17 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Monday 11 November 2024 20:18:36 -0500 (0:00:00.013) 0:01:06.826 ******* =============================================================================== fedora.linux_system_roles.fapolicyd : Install fapolicyd packages ------- 35.36s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:51 fedora.linux_system_roles.fapolicyd : Update fapolicyd db --------------- 5.51s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:124 fedora.linux_system_roles.fapolicyd : Update fapolicyd db --------------- 4.34s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:124 fedora.linux_system_roles.fapolicyd : Install fapolicyd packages -------- 3.04s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:51 fedora.linux_system_roles.fapolicyd : Add file to trustdb --------------- 1.82s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:108 Create shell executables ------------------------------------------------ 1.47s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:40 Gathering Facts --------------------------------------------------------- 1.43s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:2 Shutdown fapolicyd ------------------------------------------------------ 1.42s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:118 fedora.linux_system_roles.fapolicyd : Restart fapolicyd service --------- 1.29s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:85 fedora.linux_system_roles.fapolicyd : Start fapolicyd service ----------- 0.89s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:76 Create directories for tests -------------------------------------------- 0.87s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:31 fedora.linux_system_roles.fapolicyd : Copy fapolicyd configuration file --- 0.81s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:59 Run trusted binary exe1 ------------------------------------------------- 0.69s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:73 fedora.linux_system_roles.fapolicyd : Copy fapolicyd configuration file --- 0.68s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:59 fedora.linux_system_roles.fapolicyd : Start fapolicyd service ----------- 0.63s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:76 Run untrusted exe1 after removing from trustdb -------------------------- 0.63s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:110 Create a new user ------------------------------------------------------- 0.62s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:55 Check now untrusted exe1 after replacement ------------------------------ 0.52s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:94 Run untrusted binary exe2 ----------------------------------------------- 0.52s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:86 Replace binary exe1 with exe2 ------------------------------------------- 0.46s /tmp/collections-R31/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:79