All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: SE Linux <selinux@tycho.nsa.gov>
Subject: libselinux/matchpathcon has a memory leak
Date: Thu, 13 Mar 2008 18:55:23 -0400	[thread overview]
Message-ID: <47D9B0DB.90308@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 347 bytes --]

-----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-----

[-- Attachment #2: out --]
[-- Type: text/plain, Size: 4688 bytes --]

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 #3: out.sig --]
[-- Type: application/pgp-signature, Size: 72 bytes --]

             reply	other threads:[~2008-03-13 22:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-13 22:55 Daniel J Walsh [this message]
2008-03-13 23:24 ` libselinux/matchpathcon has a memory leak Eamon Walsh
2008-03-13 23:51   ` Daniel J Walsh
2008-03-14  3:53   ` Joshua Brindle
2008-03-14 13:20   ` Stephen Smalley
2008-03-13 23:28 ` Daniel J Walsh
2008-03-13 23:42   ` Daniel J Walsh
2008-03-14 13:36     ` Stephen Smalley
2008-03-14 15:31       ` Daniel J Walsh
2008-03-14 19:27         ` Eamon Walsh
2008-03-14 20:05           ` Stephen Smalley
2008-03-14 22:15             ` First Attempt at root login on console always FAILS ?? Hasan Rezaul-CHR010
2008-03-17 12:22               ` Stephen Smalley
2008-03-17 22:09                 ` Hasan Rezaul-CHR010
2008-03-18 12:13                   ` Daniel J Walsh
2008-03-18 13:56                   ` Stephen Smalley
2008-03-17 14:02               ` Daniel J Walsh
2008-04-18 14:31           ` libselinux/matchpathcon has a memory leak Stephen Smalley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47D9B0DB.90308@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.