This patch looks good to me. acked.
>From 1233a89f8dc13df99464a05d48c9425c190016bb Mon Sep 17 00:00:00 2001 From: Eric Paris <eparis@xxxxxxxxxx> Date: Wed, 20 Apr 2011 15:20:13 -0400 Subject: [PATCH 02/93] libsepol: store all filename transition rules when parsing a policy The kernel policy parsing logic was incorrectly believing the list of filename transition rules was always empty because we never updated the tail pointer when we added to the list. This patch updates the pointer to the last entry when a new entry is added. Signed-off-by: Eric Paris <eparis@xxxxxxxxxx> --- libsepol/src/policydb.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libsepol/src/policydb.c b/libsepol/src/policydb.c index 6d8ff91..3d8dc80 100644 --- a/libsepol/src/policydb.c +++ b/libsepol/src/policydb.c @@ -2280,6 +2280,7 @@ int filename_trans_read(filename_trans_t **t, struct policy_file *fp) lft->next = ft; else *t = ft; + lft = ft; rc = next_entry(buf, fp, sizeof(uint32_t)); if (rc < 0) return -1; -- 1.7.6