Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-252): [#def1]
sssd-2.12.0/src/providers/ipa/selinux_child.c: scope_hint: In function ‘main’
sssd-2.12.0/src/providers/ipa/selinux_child.c:330:9: warning[-Wunused-result]: ignoring return value of ‘setresuid’ declared with attribute ‘warn_unused_result’
#  330 |         setresuid(suid, suid, suid);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  328|   
#  329|       if (getresuid(&ruid, &euid, &suid) == 0) {
#  330|->         setresuid(suid, suid, suid);
#  331|       }
#  332|       if (getresgid(&rgid, &egid, &sgid) == 0) {

Error: COMPILER_WARNING (CWE-252): [#def2]
sssd-2.12.0/src/providers/ipa/selinux_child.c:333:9: warning[-Wunused-result]: ignoring return value of ‘setresgid’ declared with attribute ‘warn_unused_result’
#  333 |         setresgid(sgid, sgid, sgid);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  331|       }
#  332|       if (getresgid(&rgid, &egid, &sgid) == 0) {
#  333|->         setresgid(sgid, sgid, sgid);
#  334|       }
#  335|   

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer15.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.18.3
diffbase-analyzer-version-gcc15.2.1
diffbase-analyzer-version-gcc-analyzer15.2.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-247.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namesssd-2.12.0-99.20260105165206820375.pr7262.334.gb81fa44eb
diffbase-store-results-to/tmp/tmpt703ibr3/sssd-2.12.0-99.20260105165206820375.pr7262.334.gb81fa44eb.tar.xz
diffbase-time-created2026-01-05 17:11:53
diffbase-time-finished2026-01-05 17:20:17
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmpt703ibr3/sssd-2.12.0-99.20260105165206820375.pr7262.334.gb81fa44eb.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpt703ibr3/sssd-2.12.0-99.20260105165206820375.pr7262.334.gb81fa44eb.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-247.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namesssd-2.12.0-99.20260105153129288335.master.331.gc12320108
store-results-to/tmp/tmpv91c9dli/sssd-2.12.0-99.20260105153129288335.master.331.gc12320108.tar.xz
time-created2026-01-05 17:01:06
time-finished2026-01-05 17:11:22
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmpv91c9dli/sssd-2.12.0-99.20260105153129288335.master.331.gc12320108.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpv91c9dli/sssd-2.12.0-99.20260105153129288335.master.331.gc12320108.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9