diff options
author | Nick Kralevich <nnk@google.com> | 2014-02-12 23:15:07 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-02-12 23:15:07 +0000 |
commit | 0e4d2885a34d31f5dbe5a08bdb654953abaf82a2 (patch) | |
tree | 2f9f1bb702f472e6c08180e67afa1f6e15a76b94 /cmds/installd/commands.c | |
parent | eac45b8a53e8a17b6c9a1e7bb69a8a791073c007 (diff) | |
parent | 2044ac43e53b517526b3c70dc4fbc60ffc01693f (diff) | |
download | frameworks_native-0e4d2885a34d31f5dbe5a08bdb654953abaf82a2.zip frameworks_native-0e4d2885a34d31f5dbe5a08bdb654953abaf82a2.tar.gz frameworks_native-0e4d2885a34d31f5dbe5a08bdb654953abaf82a2.tar.bz2 |
am 2044ac43: Merge "Convert all selinux_android_restorecon and _setfilecon calls to new API."
* commit '2044ac43e53b517526b3c70dc4fbc60ffc01693f':
Convert all selinux_android_restorecon and _setfilecon calls to new API.
Diffstat (limited to 'cmds/installd/commands.c')
-rw-r--r-- | cmds/installd/commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/installd/commands.c b/cmds/installd/commands.c index e4f63e2..ef063e7 100644 --- a/cmds/installd/commands.c +++ b/cmds/installd/commands.c @@ -91,7 +91,7 @@ int install(const char *pkgname, uid_t uid, gid_t gid, const char *seinfo) return -1; } - if (selinux_android_setfilecon2(pkgdir, pkgname, seinfo, uid) < 0) { + if (selinux_android_setfilecon(pkgdir, pkgname, seinfo, uid) < 0) { ALOGE("cannot setfilecon dir '%s': %s\n", pkgdir, strerror(errno)); unlink(libsymlink); unlink(pkgdir); @@ -245,7 +245,7 @@ int make_user_data(const char *pkgname, uid_t uid, userid_t userid, const char* return -1; } - if (selinux_android_setfilecon2(pkgdir, pkgname, seinfo, uid) < 0) { + if (selinux_android_setfilecon(pkgdir, pkgname, seinfo, uid) < 0) { ALOGE("cannot setfilecon dir '%s': %s\n", pkgdir, strerror(errno)); unlink(libsymlink); unlink(pkgdir); |