Convert all selinux_android_restorecon and _setfilecon calls to new API.
libselinux selinux_android_restorecon API is changing to the more
general interface with flags and dropping the older variants.
Also get rid of the old, no longer used selinux_android_setfilecon API
and rename selinux_android_setfilecon2 to it as it is the only API in use.
Change-Id: I1e71ec398ccdc24cac4ec76f1b858d0f680f4925
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
diff --git a/toolbox/restorecon.c b/toolbox/restorecon.c
index 137e9fa..11532da 100644
--- a/toolbox/restorecon.c
+++ b/toolbox/restorecon.c
@@ -49,7 +49,7 @@
usage();
for (i = 0; i < argc; i++) {
- rc = selinux_android_restorecon_flags(argv[i], flags);
+ rc = selinux_android_restorecon(argv[i], flags);
if (rc < 0)
fprintf(stderr, "Could not restorecon %s: %s\n", argv[i],
strerror(errno));