Re: [PATCH v5] libselinux: correct error path to always try text

2016-09-19 Thread Stephen Smalley
On 09/16/2016 03:37 PM, william.c.robe...@intel.com wrote: > From: William Roberts > > patch 5e15a52aaa cleans up the process_file() routine, > but introduced a bug. If the binary file cannot be > opened, always attempt to fall back to the textual file, > this was not occurring. > > The logic sh

[PATCH v5] libselinux: correct error path to always try text

2016-09-16 Thread william . c . roberts
From: William Roberts patch 5e15a52aaa cleans up the process_file() routine, but introduced a bug. If the binary file cannot be opened, always attempt to fall back to the textual file, this was not occurring. The logic should be: 1. Open the newest file between base path + suffix and base_pat