platform_external_selinux/libselinux/man
Richard Haines 3cb6078ae5 libselinux: Enhance file context support
Update file contexts generation and loading to use common code.

Remove "status = 0; after "status = sort_specs(data);" otherwise
the function will never indicate a failure.

The file labeling code also has minor formatting, white space
removal etc. changes.

label_file.c - Move process_line function to label_file.h
sefcontext_compile.c - Update to use common process_line code. Now frees
all malloc'ed memory, checked by valgrind. Also added optional -o output
file parameter - updated man page to reflect this change.

V2 - Revert to using compat_validate instead of selabel_validate.
V3 - Revert to using callback for validation now the problem has been
fixed by commit e889148494
("libselinux:  build sefcontext_compile with static libselinux")

Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
2015-06-16 12:30:08 -04:00
..
man3 libselinux: Expunge remaining references to flask.h and av_permissions.h. 2015-05-27 11:44:40 -04:00
man5 libselinux: matchpathcon/selabel_file: Fix man pages. 2015-05-11 09:53:37 -04:00
man8 libselinux: Enhance file context support 2015-06-16 12:30:08 -04:00
Makefile Fix relabel target. 2013-10-23 12:44:30 -04:00