Merge "Zygote: Fix dropping capabilities in containers"

This commit is contained in:
Martijn Coenen
2023-03-20 09:24:28 +00:00
committed by Gerrit Code Review

View File

@@ -721,7 +721,8 @@ public class ZygoteInit {
} catch (ErrnoException ex) { } catch (ErrnoException ex) {
throw new RuntimeException("Failed to capget()", ex); throw new RuntimeException("Failed to capget()", ex);
} }
capabilities &= ((long) data[0].effective) | (((long) data[1].effective) << 32); capabilities &= Integer.toUnsignedLong(data[0].effective) |
(Integer.toUnsignedLong(data[1].effective) << 32);
/* Hardcoded command line to start the system server */ /* Hardcoded command line to start the system server */
String[] args = { String[] args = {