From 27a93650c0df02e4cd3c48bbec8acee8b817a012 Mon Sep 17 00:00:00 2001 From: Stephen Smalley Date: Fri, 7 Feb 2014 09:14:13 -0500 Subject: 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 --- debuggerd/tombstone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debuggerd') diff --git a/debuggerd/tombstone.cpp b/debuggerd/tombstone.cpp index c630020..e598ab4 100755 --- a/debuggerd/tombstone.cpp +++ b/debuggerd/tombstone.cpp @@ -741,7 +741,7 @@ char* engrave_tombstone( LOG("failed to change ownership of %s: %s\n", TOMBSTONE_DIR, strerror(errno)); } - if (selinux_android_restorecon(TOMBSTONE_DIR) == -1) { + if (selinux_android_restorecon(TOMBSTONE_DIR, 0) == -1) { *detach_failed = false; return NULL; } -- cgit v1.1