selinux: factor out loop body from filename_trans_read()
authorOndrej Mosnacek <omosnace@redhat.com>
Wed, 12 Feb 2020 11:22:54 +0000 (12:22 +0100)
committerPaul Moore <paul@paul-moore.com>
Thu, 13 Feb 2020 23:08:15 +0000 (18:08 -0500)
commit253050f57c7afe87d182f4029645568c2fc837f7
tree722b9b2b9b7550c6938324aac34b062c3e9a44df
parent4ca54d3d3022ce27170b50e4bdecc3a42f05dbdc
selinux: factor out loop body from filename_trans_read()

It simplifies cleanup in the error path. This will be extra useful in
later patch.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/policydb.c