commit | 9f9e3f2102fd0e49fe5ae059df4b401eb44f63db | [log] [tgz] |
---|---|---|
author | Stephen Smalley <sds@tycho.nsa.gov> | Wed Aug 05 16:26:08 2015 -0400 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Thu Aug 06 11:34:21 2015 -0400 |
tree | 28719425971b40d832585419ff9f6cf19f3817c2 | |
parent | 6f295008efd72baac05ecd88587b706e50a77e49 [diff] |
libselinux: test for file_contexts.bin format Check to see if the file whose path is passed to selabel_open() starts with the file_contexts.bin magic number, and if so, automatically treat it as a file_contexts.bin file. This allows one to open file_contexts.bin formatted files without necessarily having a .bin file suffix. This removes the need for the previously added .bin file suffix test. Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>