Closed freedom1b2830 closed 1 year ago
Do you still see a leak when you configure sudo with --disable-leaks?
1.What does this argument do? (--disable-leaks) 2.I will now build a program with these flags:
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--libexecdir=/usr/lib \
--with-rundir=/run/sudo \
--with-vardir=/var/db/sudo \
--with-logfac=auth \
--enable-tmpfiles.d \
--with-pam \
--with-sssd \
--with-ldap \
--with-ldap-conf-file=/etc/openldap/ldap.conf \
--with-env-editor \
--with-passprompt="[sudo] password for %p: " \
--with-all-insults \
--with-selinux \
--disable-leak
From INSTALL.md:
Avoid leaking memory even when we are headed for exit, which helps reduce the noise from static and active analyzers. This option should only be used for testing and not in a production environment.
If would have been enabled for you automatically if you had used the --enable-sanitizer
configure option instead of whatever you are doing.
No memory leaks are present when: --enable-sanitizer --disable-leaks
Open issue for no reason.<
sudo id uid=0(root) gid=0(root) группы=0(root) контекст=root:sysadm_r:sysadm_t:s0-s0:c0.c1023