From: Petr Lautrbach <lautrbach@redhat.com>
To: James Carter <jwcart2@gmail.com>,
cgzones@googlemail.com, selinux@vger.kernel.org
Subject: Re: [PATCH 1/2] libsepol/cil: free nlmsg hashtable on error
Date: Thu, 16 Jan 2025 17:07:51 +0100 [thread overview]
Message-ID: <87a5bqwxm0.fsf@redhat.com> (raw)
In-Reply-To: <CAP+JOzTfK0gyiqnnoaOGb11o8iy26Obpw5P=ypoftH1jbUy-Mg@mail.gmail.com>
James Carter <jwcart2@gmail.com> writes:
> On Wed, Jan 8, 2025 at 11:32 AM Christian Göttsche
> <cgoettsche@seltendoof.de> wrote:
>>
>> From: Christian Göttsche <cgzones@googlemail.com>
>>
>> Free the hashtable for nlmsg xperm rules similar to the ioctl hashtable.
>>
>> Fixes: 1fd41f48 ("libsepol/cil: add support for xperms in conditional policies")
>> Reported-by: oss-fuzz (issue 388376332)
>> Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
>
> For these two patches:
> Acked-by: James Carter <jwcart2@gmail.com>
Merged. Thanks!
>> ---
>> libsepol/cil/src/cil_binary.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/libsepol/cil/src/cil_binary.c b/libsepol/cil/src/cil_binary.c
>> index 070bf525..e84188a0 100644
>> --- a/libsepol/cil/src/cil_binary.c
>> +++ b/libsepol/cil/src/cil_binary.c
>> @@ -2616,6 +2616,8 @@ int cil_booleanif_to_policydb(policydb_t *pdb, const struct cil_db *db, struct c
>> return SEPOL_OK;
>>
>> exit:
>> + hashtab_map(avrulex_nlmsg_table, __cil_avrulex_xperm_destroy, NULL);
>> + hashtab_destroy(avrulex_nlmsg_table);
>> hashtab_map(avrulex_ioctl_table, __cil_avrulex_xperm_destroy, NULL);
>> hashtab_destroy(avrulex_ioctl_table);
>> if (tmp_cond) {
>> --
>> 2.47.1
>>
>>
prev parent reply other threads:[~2025-01-16 16:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-08 16:31 [PATCH 2/2] libselinux/fuzz: handle inputs with trailing data Christian Göttsche
2025-01-08 16:31 ` [PATCH 1/2] libsepol/cil: free nlmsg hashtable on error Christian Göttsche
2025-01-08 20:45 ` James Carter
2025-01-16 16:07 ` Petr Lautrbach [this message]
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=87a5bqwxm0.fsf@redhat.com \
--to=lautrbach@redhat.com \
--cc=cgzones@googlemail.com \
--cc=jwcart2@gmail.com \
--cc=selinux@vger.kernel.org \
/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.