# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.16.0] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.16/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-weekly-ci7m3wsq8v/.collection executable location = /opt/ansible-2.16/bin/ansible-playbook python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible-2.16/bin/python) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. 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 /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml PLAY [Basic test for fapolicyd] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:2 Saturday 02 December 2023 02:06:33 +0000 (0:00:00.014) 0:00:00.014 ***** ok: [sut] TASK [Create temp test directory] ********************************************** task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:15 Saturday 02 December 2023 02:06:34 +0000 (0:00:00.836) 0:00:00.850 ***** changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/fapolicyd_z_yu5a0s", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Create directories for executable binaries and source files] ************* task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:22 Saturday 02 December 2023 02:06:34 +0000 (0:00:00.253) 0:00:01.104 ***** changed: [sut] => (item=/var/tmp/fapolicyd_z_yu5a0s) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_z_yu5a0s", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_z_yu5a0s", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } changed: [sut] => (item=/var/tmp/fapolicyd_z_yu5a0s/executable_binaries) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } changed: [sut] => (item=/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/source) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/source", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/source", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Create C source code (binary1)] ****************************************** task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:32 Saturday 02 December 2023 02:06:34 +0000 (0:00:00.661) 0:00:01.766 ***** changed: [sut] => { "changed": true, "checksum": "a2bf134917a635131f5a626ba31d8423b813d798", "dest": "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/source/main.c", "gid": 0, "group": "root", "md5sum": "3ab82c9dc5812e0e412e88921a6c9a73", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 33, "src": "/root/.ansible/tmp/ansible-tmp-1701482794.973436-2507-205389245853251/source", "state": "file", "uid": 0 } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:44 Saturday 02 December 2023 02:06:35 +0000 (0:00:00.692) 0:00:02.459 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:49 Saturday 02 December 2023 02:06:35 +0000 (0:00:00.190) 0:00:02.650 ***** ok: [sut] => { "ansible_facts": { "__fapolicyd_is_ostree": false }, "changed": false } TASK [Install GCC and glibc-devel] ********************************************* task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:53 Saturday 02 December 2023 02:06:35 +0000 (0:00:00.016) 0:00:02.666 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Compile C programs (exe1)] *********************************************** task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:61 Saturday 02 December 2023 02:06:37 +0000 (0:00:01.343) 0:00:04.009 ***** changed: [sut] => { "changed": true, "cmd": [ "gcc", "-o", "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/exe1", "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/source/main.c" ], "delta": "0:00:02.632025", "end": "2023-12-02 02:06:40.063458", "rc": 0, "start": "2023-12-02 02:06:37.431433" } TASK [Compile C programs (exe2)] *********************************************** task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:67 Saturday 02 December 2023 02:06:40 +0000 (0:00:02.902) 0:00:06.912 ***** changed: [sut] => { "changed": true, "cmd": [ "gcc", "-g", "-o", "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/exe2", "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/source/main.c" ], "delta": "0:00:00.034704", "end": "2023-12-02 02:06:40.296571", "rc": 0, "start": "2023-12-02 02:06:40.261867" } TASK [Create a new user] ******************************************************* task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:73 Saturday 02 December 2023 02:06:40 +0000 (0:00:00.231) 0:00:07.144 ***** changed: [sut] => { "changed": true, "comment": "", "create_home": true, "group": 1001, "home": "/home/fapolicyd_test1_user", "name": "fapolicyd_test1_user", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1001 } TASK [Run the role] ************************************************************ task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:79 Saturday 02 December 2023 02:06:40 +0000 (0:00:00.492) 0:00:07.637 ***** TASK [fedora.linux_system_roles.fapolicyd : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:2 Saturday 02 December 2023 02:06:40 +0000 (0:00:00.025) 0:00:07.662 ***** included: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.fapolicyd : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:2 Saturday 02 December 2023 02:06:40 +0000 (0:00:00.015) 0:00:07.678 ***** skipping: [sut] => { "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: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:10 Saturday 02 December 2023 02:06:40 +0000 (0:00:00.020) 0:00:07.698 ***** skipping: [sut] => { "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: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:15 Saturday 02 December 2023 02:06:40 +0000 (0:00:00.014) 0:00:07.713 ***** skipping: [sut] => { "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: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:19 Saturday 02 December 2023 02:06:40 +0000 (0:00:00.011) 0:00:07.725 ***** skipping: [sut] => (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: [sut] => (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: [sut] => (item=RedHat_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_8.9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat_8.9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.fapolicyd : System check] ********************** task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:5 Saturday 02 December 2023 02:06:40 +0000 (0:00:00.022) 0:00:07.748 ***** skipping: [sut] => { "changed": false, "false_condition": "(ansible_facts.os_family != \"RedHat\") or (ansible_facts.distribution_version is version(\"8.1\", \"<\"))", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check trust compatibility] ********* task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:13 Saturday 02 December 2023 02:06:40 +0000 (0:00:00.011) 0:00:07.759 ***** skipping: [sut] => { "changed": false, "false_condition": "ansible_facts.distribution_version is version(\"8.2\", \"<=\")", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check integrity compatibility] ***** task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:24 Saturday 02 December 2023 02:06:40 +0000 (0:00:00.020) 0:00:07.780 ***** skipping: [sut] => { "changed": false, "false_condition": "ansible_facts.distribution_version is version(\"8.3\", \"<=\")", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check trust files compatibility] *** task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:35 Saturday 02 December 2023 02:06:40 +0000 (0:00:00.020) 0:00:07.800 ***** skipping: [sut] => { "changed": false, "false_condition": "ansible_facts.distribution_version is version(\"8.3\", \"<=\")", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check failed conditions] *********** task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:46 Saturday 02 December 2023 02:06:40 +0000 (0:00:00.021) 0:00:07.822 ***** skipping: [sut] => { "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: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:51 Saturday 02 December 2023 02:06:41 +0000 (0:00:00.010) 0:00:07.833 ***** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: rpm-plugin-fapolicyd-4.14.3-26.el8.x86_64", "Installed: fapolicyd-1.3.2-1.el8.x86_64", "Installed: fapolicyd-selinux-1.3.2-1.el8.noarch", "Installed: policycoreutils-python-utils-2.9-24.el8.noarch" ] } TASK [fedora.linux_system_roles.fapolicyd : Install fapolicyd-selinux packages] *** task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:57 Saturday 02 December 2023 02:07:09 +0000 (0:00:28.825) 0:00:36.658 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.fapolicyd : Copy fapolicyd configuration file] *** task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:64 Saturday 02 December 2023 02:07:11 +0000 (0:00:01.342) 0:00:38.001 ***** changed: [sut] => { "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-1701482831.2084217-2542-26206514508414/source", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.fapolicyd : Run fapolicyd configuration check] *** task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:73 Saturday 02 December 2023 02:07:11 +0000 (0:00:00.550) 0:00:38.551 ***** ok: [sut] => { "changed": false, "cmd": [ "fapolicyd-cli", "--check-config" ], "delta": "0:00:00.006773", "end": "2023-12-02 02:07:11.904328", "rc": 0, "start": "2023-12-02 02:07:11.897555" } STDOUT: Daemon config is OK TASK [fedora.linux_system_roles.fapolicyd : Trustdb cleanup] ******************* task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:81 Saturday 02 December 2023 02:07:11 +0000 (0:00:00.200) 0:00:38.752 ***** changed: [sut] => { "changed": true, "cmd": [ "fapolicyd-cli", "--file", "delete", "/" ], "delta": "0:00:00.006451", "end": "2023-12-02 02:07:12.102931", "failed_when_result": false, "rc": 1, "start": "2023-12-02 02:07:12.096480" } STDERR: / is not in the trust database MSG: non-zero return code TASK [fedora.linux_system_roles.fapolicyd : Add file to trustdb] *************** task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:87 Saturday 02 December 2023 02:07:12 +0000 (0:00:00.197) 0:00:38.950 ***** changed: [sut] => (item=/etc/passwd) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/etc/passwd" ], "delta": "0:00:00.006751", "end": "2023-12-02 02:07:12.313605", "item": "/etc/passwd", "rc": 0, "start": "2023-12-02 02:07:12.306854" } changed: [sut] => (item=/etc/fapolicyd/fapolicyd.conf) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/etc/fapolicyd/fapolicyd.conf" ], "delta": "0:00:00.006624", "end": "2023-12-02 02:07:12.502087", "item": "/etc/fapolicyd/fapolicyd.conf", "rc": 0, "start": "2023-12-02 02:07:12.495463" } changed: [sut] => (item=/etc/krb5.conf) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/etc/krb5.conf" ], "delta": "0:00:00.007194", "end": "2023-12-02 02:07:12.692062", "item": "/etc/krb5.conf", "rc": 0, "start": "2023-12-02 02:07:12.684868" } changed: [sut] => (item=/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/exe1) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "fapolicyd-cli", "--file", "add", "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/exe1" ], "delta": "0:00:00.007647", "end": "2023-12-02 02:07:12.881475", "item": "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/exe1", "rc": 0, "start": "2023-12-02 02:07:12.873828" } TASK [fedora.linux_system_roles.fapolicyd : Start fapolicyd service] *********** task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:95 Saturday 02 December 2023 02:07:12 +0000 (0:00:00.782) 0:00:39.732 ***** changed: [sut] => { "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": "13957", "LimitNPROCSoft": "13957", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13957", "LimitSIGPENDINGSoft": "13957", "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": "22331", "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 : Check fapolicyd logs] ************** task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:104 Saturday 02 December 2023 02:07:13 +0000 (0:00:00.758) 0:00:40.491 ***** skipping: [sut] => { "changed": false, "false_condition": "__fapolicyd_restart is failed", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Making sure fapolicyd does not run if it was set so] *** task path: /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:111 Saturday 02 December 2023 02:07:13 +0000 (0:00:00.012) 0:00:40.504 ***** skipping: [sut] => { "changed": false, "false_condition": "not fapolicyd_setup_enable_service", "skip_reason": "Conditional result was False" } TASK [Run trusted binary exe1] ************************************************* task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:92 Saturday 02 December 2023 02:07:13 +0000 (0:00:00.010) 0:00:40.515 ***** ok: [sut] => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/exe1" ], "delta": "0:00:00.127053", "end": "2023-12-02 02:07:14.083510", "rc": 0, "start": "2023-12-02 02:07:13.956457" } TASK [Replace binary exe1 with exe2] ******************************************* task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:98 Saturday 02 December 2023 02:07:14 +0000 (0:00:00.422) 0:00:40.937 ***** changed: [sut] => { "changed": true, "checksum": "27e1e8c9ecb9f454a5d7c4846d52bc3e121f4132", "dest": "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/exe1", "gid": 0, "group": "root", "md5sum": "71e5c8f80c1f872af879178bf4d5606e", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 18760, "src": "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/exe2", "state": "file", "uid": 0 } TASK [Run untrusted binary exe2] *********************************************** task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:105 Saturday 02 December 2023 02:07:14 +0000 (0:00:00.413) 0:00:41.351 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "su", "-", "fapolicyd_test1_user", "-c", "/var/tmp/fapolicyd_z_yu5a0s/executable_binaries/exe2" ], "delta": "0:00:00.051601", "end": "2023-12-02 02:07:14.837467", "failed_when_result": true, "rc": 0, "start": "2023-12-02 02:07:14.785866" } TASK [Clean up temp directory] ************************************************* task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:151 Saturday 02 December 2023 02:07:14 +0000 (0:00:00.340) 0:00:41.691 ***** changed: [sut] => { "changed": true, "path": "/var/tmp/fapolicyd_z_yu5a0s", "state": "absent" } TASK [Remove test user] ******************************************************** task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:156 Saturday 02 December 2023 02:07:15 +0000 (0:00:00.291) 0:00:41.983 ***** changed: [sut] => { "changed": true, "force": false, "name": "fapolicyd_test1_user", "remove": false, "state": "absent" } TASK [Shutdown fapolicyd] ****************************************************** task path: /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:161 Saturday 02 December 2023 02:07:15 +0000 (0:00:00.412) 0:00:42.396 ***** changed: [sut] => { "changed": true, "enabled": false, "name": "fapolicyd", "state": "stopped", "status": { "ActiveEnterTimestamp": "Sat 2023-12-02 02:07:13 UTC", "ActiveEnterTimestampMonotonic": "531627327", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket system.slice systemd-tmpfiles-setup.service local-fs.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2023-12-02 02:07:13 UTC", "AssertTimestampMonotonic": "531581698", "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": "Sat 2023-12-02 02:07:13 UTC", "ConditionTimestampMonotonic": "531581696", "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": "7834", "ExecMainStartTimestamp": "Sat 2023-12-02 02:07:13 UTC", "ExecMainStartTimestampMonotonic": "531627212", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/fapolicyd ; argv[]=/usr/sbin/fapolicyd ; ignore_errors=no ; start_time=[Sat 2023-12-02 02:07:13 UTC] ; stop_time=[Sat 2023-12-02 02:07:13 UTC] ; pid=7833 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/sbin/fagenrules ; argv[]=/usr/sbin/fagenrules ; ignore_errors=no ; start_time=[Sat 2023-12-02 02:07:13 UTC] ; stop_time=[Sat 2023-12-02 02:07:13 UTC] ; pid=7808 ; 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": "Sat 2023-12-02 02:07:13 UTC", "InactiveExitTimestampMonotonic": "531582694", "InvocationID": "7cbf980be17447eba45de39f557b5c1e", "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": "13957", "LimitNPROCSoft": "13957", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13957", "LimitSIGPENDINGSoft": "13957", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7834", "MemoryAccounting": "yes", "MemoryCurrent": "40751104", "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": "Sat 2023-12-02 02:07:13 UTC", "StateChangeTimestampMonotonic": "531627327", "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": "22331", "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" } } to retry, use: --limit @/tmp/tests_trusted_execution.retry PLAY RECAP ********************************************************************* sut : ok=23 changed=15 unreachable=0 failed=1 skipped=11 rescued=0 ignored=0 Saturday 02 December 2023 02:07:18 +0000 (0:00:02.894) 0:00:45.290 ***** =============================================================================== fedora.linux_system_roles.fapolicyd : Install fapolicyd packages ------- 28.83s /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:51 Compile C programs (exe1) ----------------------------------------------- 2.90s /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:61 ----------- Shutdown fapolicyd ------------------------------------------------------ 2.89s /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:161 ---------- Install GCC and glibc-devel --------------------------------------------- 1.34s /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:53 ----------- fedora.linux_system_roles.fapolicyd : Install fapolicyd-selinux packages --- 1.34s /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:57 Gathering Facts --------------------------------------------------------- 0.84s /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:2 ------------ fedora.linux_system_roles.fapolicyd : Add file to trustdb --------------- 0.78s /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:87 fedora.linux_system_roles.fapolicyd : Start fapolicyd service ----------- 0.76s /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:95 Create C source code (binary1) ------------------------------------------ 0.69s /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:32 ----------- Create directories for executable binaries and source files ------------- 0.66s /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:22 ----------- fedora.linux_system_roles.fapolicyd : Copy fapolicyd configuration file --- 0.55s /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:64 Create a new user ------------------------------------------------------- 0.49s /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:73 ----------- Run trusted binary exe1 ------------------------------------------------- 0.42s /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:92 ----------- Replace binary exe1 with exe2 ------------------------------------------- 0.41s /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:98 ----------- Remove test user -------------------------------------------------------- 0.41s /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:156 ---------- Run untrusted binary exe2 ----------------------------------------------- 0.34s /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:105 ---------- Clean up temp directory ------------------------------------------------- 0.29s /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:151 ---------- Create temp test directory ---------------------------------------------- 0.25s /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:15 ----------- Compile C programs (exe2) ----------------------------------------------- 0.23s /WORKDIR/git-weekly-ci7m3wsq8v/tests/tests_trusted_execution.yml:67 ----------- fedora.linux_system_roles.fapolicyd : Run fapolicyd configuration check --- 0.20s /WORKDIR/git-weekly-ci7m3wsq8v/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:73 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [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. ---^---^---^---^---^---