libselinux/matchpathcon has a memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Looks like the selabel stuff is leaking.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkfZsNoACgkQrlYvE4MpobOFMgCfeZLFY2nmV+AmYWCkf64pWU60
M9MAoOenkWW6cjXuhP3dgJHzCWX7kKLg
=9INA
-----END PGP SIGNATURE-----
valgrind --leak-check=full matchpathcon /etc/security/access.conf /etc/security/chroot.conf /etc/security/console.apps /etc/security/console.handlers /etc/security/console.perms /etc/security/console.perms.d /etc/security/group.conf /etc/security/group.conf.rpmnew /etc/security/limits.conf /etc/security/limits.conf.rpmnew /etc/security/limits.d /etc/security/namespace.conf /etc/security/namespace.d /etc/security/namespace.init /etc/security/opasswd /etc/security/pam_env.conf /etc/security/pam_mount.conf.xml /etc/security/pam_winbind.conf /etc/security/sepermit.conf /etc/security/sepermit.conf.rpmnew /etc/security/time.conf
==22135== Memcheck, a memory error detector.
==22135== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==22135== Using LibVEX rev 1804, a library for dynamic binary translation.
==22135== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==22135== Using valgrind-3.3.0, a dynamic binary instrumentation framework.
==22135== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==22135== For more details, rerun with: -v
==22135== 
/etc/security/access.conf	system_u:object_r:etc_t
/etc/security/chroot.conf	system_u:object_r:etc_t
/etc/security/console.apps	system_u:object_r:userhelper_conf_t
/etc/security/console.handlers	system_u:object_r:etc_t
/etc/security/console.perms	system_u:object_r:etc_t
/etc/security/console.perms.d	system_u:object_r:etc_t
/etc/security/group.conf	system_u:object_r:etc_t
/etc/security/group.conf.rpmnew	system_u:object_r:etc_t
/etc/security/limits.conf	system_u:object_r:etc_t
/etc/security/limits.conf.rpmnew	system_u:object_r:etc_t
/etc/security/limits.d	system_u:object_r:etc_t
/etc/security/namespace.conf	system_u:object_r:etc_t
/etc/security/namespace.d	system_u:object_r:etc_t
/etc/security/namespace.init	system_u:object_r:bin_t
/etc/security/opasswd	system_u:object_r:etc_t
/etc/security/pam_env.conf	system_u:object_r:etc_t
/etc/security/pam_mount.conf.xml	system_u:object_r:etc_t
/etc/security/pam_winbind.conf	system_u:object_r:etc_t
/etc/security/sepermit.conf	system_u:object_r:etc_t
/etc/security/sepermit.conf.rpmnew	system_u:object_r:etc_t
/etc/security/time.conf	system_u:object_r:etc_t
==22135== 
==22135== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 1)
==22135== malloc/free: in use at exit: 464 bytes in 19 blocks.
==22135== malloc/free: 62,395 allocs, 62,376 frees, 7,306,530 bytes allocated.
==22135== For counts of detected errors, rerun with: -v
==22135== searching for pointers to 19 not-freed blocks.
==22135== checked 78,424 bytes.
==22135== 
==22135== 32 bytes in 1 blocks are definitely lost in loss record 1 of 3
==22135==    at 0x4A0739E: malloc (vg_replace_malloc.c:207)
==22135==    by 0x3457E0DA34: (within /lib64/libselinux.so.1)
==22135==    by 0x3457E0C928: selabel_open (in /lib64/libselinux.so.1)
==22135==    by 0x3457E105A6: matchpathcon_init_prefix (in /lib64/libselinux.so.1)
==22135==    by 0x3457E1067E: matchpathcon (in /lib64/libselinux.so.1)
==22135==    by 0x400BE6: (within /usr/sbin/matchpathcon)
==22135==    by 0x400E95: (within /usr/sbin/matchpathcon)
==22135==    by 0x3456E1E479: (below main) (in /lib64/libc-2.7.90.so)
==22135== 
==22135== 
==22135== 72 bytes in 3 blocks are definitely lost in loss record 2 of 3
==22135==    at 0x4A0739E: malloc (vg_replace_malloc.c:207)
==22135==    by 0x3457E12453: (within /lib64/libselinux.so.1)
==22135==    by 0x3457E12943: selinux_raw_to_trans_context (in /lib64/libselinux.so.1)
==22135==    by 0x3457E0C7E9: (within /lib64/libselinux.so.1)
==22135==    by 0x3457E0C84D: selabel_lookup (in /lib64/libselinux.so.1)
==22135==    by 0x400BE6: (within /usr/sbin/matchpathcon)
==22135==    by 0x400E95: (within /usr/sbin/matchpathcon)
==22135==    by 0x3456E1E479: (below main) (in /lib64/libc-2.7.90.so)
==22135== 
==22135== 
==22135== 360 bytes in 15 blocks are definitely lost in loss record 3 of 3
==22135==    at 0x4A0739E: malloc (vg_replace_malloc.c:207)
==22135==    by 0x3456E822C1: strdup (in /lib64/libc-2.7.90.so)
==22135==    by 0x3457E12923: selinux_raw_to_trans_context (in /lib64/libselinux.so.1)
==22135==    by 0x3457E0C7E9: (within /lib64/libselinux.so.1)
==22135==    by 0x3457E0C84D: selabel_lookup (in /lib64/libselinux.so.1)
==22135==    by 0x400BE6: (within /usr/sbin/matchpathcon)
==22135==    by 0x400E95: (within /usr/sbin/matchpathcon)
==22135==    by 0x3456E1E479: (below main) (in /lib64/libc-2.7.90.so)
==22135== 
==22135== LEAK SUMMARY:
==22135==    definitely lost: 464 bytes in 19 blocks.
==22135==      possibly lost: 0 bytes in 0 blocks.
==22135==    still reachable: 0 bytes in 0 blocks.
==22135==         suppressed: 0 bytes in 0 blocks.

Attachment: out.sig
Description: PGP signature


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux