diff options
-rw-r--r-- | cmds/installd/commands.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/cmds/installd/commands.c b/cmds/installd/commands.c index 59bcda1..2a54710 100644 --- a/cmds/installd/commands.c +++ b/cmds/installd/commands.c @@ -91,13 +91,6 @@ int install(const char *pkgname, uid_t uid, gid_t gid) return -1; } - if (selinux_android_setfilecon(libsymlink, pkgname, AID_SYSTEM) < 0) { - ALOGE("cannot setfilecon dir '%s': %s\n", libsymlink, strerror(errno)); - unlink(libsymlink); - unlink(pkgdir); - return -1; - } - if (selinux_android_setfilecon(pkgdir, pkgname, uid) < 0) { ALOGE("cannot setfilecon dir '%s': %s\n", pkgdir, strerror(errno)); unlink(libsymlink); @@ -252,13 +245,6 @@ int make_user_data(const char *pkgname, uid_t uid, uid_t persona) return -1; } - if (selinux_android_setfilecon(libsymlink, pkgname, AID_SYSTEM) < 0) { - ALOGE("cannot setfilecon dir '%s': %s\n", libsymlink, strerror(errno)); - unlink(libsymlink); - unlink(pkgdir); - return -errno; - } - if (selinux_android_setfilecon(pkgdir, pkgname, uid) < 0) { ALOGE("cannot setfilecon dir '%s': %s\n", pkgdir, strerror(errno)); unlink(libsymlink); |