Suren Baghdasaryan
3377db0fe8
Merge "libprocessgroup: Fix file mode parsing that requires octal values" am: 3a22225ac6 am: 71eee1e10c
...
am: 642b89df0f
Change-Id: I02f2d9d1a6fb2281405f034d8374ee9dde5b072b
2019-02-06 21:14:50 -08:00
Suren Baghdasaryan
642b89df0f
Merge "libprocessgroup: Fix file mode parsing that requires octal values" am: 3a22225ac6
...
am: 71eee1e10c
Change-Id: Ib6b4de01f319a2cb4b66dcb6c2b9181fa669eadd
2019-02-06 21:10:40 -08:00
Suren Baghdasaryan
71eee1e10c
Merge "libprocessgroup: Fix file mode parsing that requires octal values"
...
am: 3a22225ac6
Change-Id: I3fbd65934177bc0fee7200562e925ca22a45de95
2019-02-06 21:06:32 -08:00
Suren Baghdasaryan
3a22225ac6
Merge "libprocessgroup: Fix file mode parsing that requires octal values"
2019-02-07 04:54:28 +00:00
Suren Baghdasaryan
c96d4e657e
Merge "libprocessgroup: Fix cgroup directory ownership setup" am: 40673c9250 am: e401604868
...
am: 49fc6cab74
Change-Id: I24fe0425a9631da8f2ac47388e68d259d56a455b
2019-02-06 18:18:41 -08:00
Suren Baghdasaryan
49fc6cab74
Merge "libprocessgroup: Fix cgroup directory ownership setup" am: 40673c9250
...
am: e401604868
Change-Id: I0eec0657905846110f9e99f37b2d0065a14dc0ab
2019-02-06 18:03:50 -08:00
Suren Baghdasaryan
e401604868
Merge "libprocessgroup: Fix cgroup directory ownership setup"
...
am: 40673c9250
Change-Id: Ib1441b21b326f2033488e42b8f818768c947c28c
2019-02-06 17:55:36 -08:00
Suren Baghdasaryan
40673c9250
Merge "libprocessgroup: Fix cgroup directory ownership setup"
2019-02-07 01:42:00 +00:00
Tom Cherry
cdd6cf4ddc
Merge "init: allow services to have no capabilities set" am: 500b6c0e86 am: 212343f813
...
am: f51d83921c
Change-Id: I56547a4e62899c7adbaccf1f8dc3825e91ee9bd7
2019-02-06 16:33:13 -08:00
Tom Cherry
f51d83921c
Merge "init: allow services to have no capabilities set" am: 500b6c0e86
...
am: 212343f813
Change-Id: I848961116ffaf399a9880bafdee0f4943d458948
2019-02-06 16:14:58 -08:00
Tom Cherry
212343f813
Merge "init: allow services to have no capabilities set"
...
am: 500b6c0e86
Change-Id: I098343aab9180998fac51d18ed3ee7440997aaa4
2019-02-06 16:10:49 -08:00
Tom Cherry
500b6c0e86
Merge "init: allow services to have no capabilities set"
2019-02-06 23:48:36 +00:00
Suren Baghdasaryan
e3ad888011
libprocessgroup: Fix cgroup directory ownership setup
...
When cgroup directory is created its user and ownership gets set, however
because previous code was storing getpwnam() return value the second
invocation would effectively override the previous ones result. Fix this
by copying necessary results. Also change getpwnam() to getgrnam() when
group name is converted into gid. getpwnam() works because of the way
Android uses these ids, however more generally this is incorrect and
getgrnam() should be used instead.
Bug: 111307099
Test: verified user/group membership of the cgroup directories
Change-Id: I78668bc1a36a74f53d8e9825e2d06e3e09501e7a
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-02-06 14:28:23 -08:00
Suren Baghdasaryan
c760231891
libprocessgroup: Fix file mode parsing that requires octal values
...
JSON supports only decimal values and therefore file mode which should
use octal values has to be represented as strings. Fix the implicit
octal-to-decimal conversion and convert from string to octal in the code.
Bug: 111307099
Test: confirmed by verifying correct file permissions
Change-Id: I3ef9de0aea259f93bf74efeffca72d37d4740e15
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-02-06 21:01:41 +00:00
Tom Cherry
1cd082d421
init: allow services to have no capabilities set
...
In particular, this allows services running as the root user to have
capabilities removed instead of always having full capabilities.
Test: boot device with a root service with an empty capabilities
option in init showing no capabilities in /proc/<pid>/status
Change-Id: I569a5573ed4bc5fab0eb37ce9224ab708e980451
2019-02-06 11:25:18 -08:00
Mark Salyzyn
25b44eeefe
Merge "fs_mgr: fstab: logspam from empty flags" am: bece53e515 am: 50574de69a
...
am: 40459a921a
Change-Id: Iaac5d1a04fc11d3b3535bd5c5833784fecabc770
2019-02-06 10:59:43 -08:00
Mark Salyzyn
40459a921a
Merge "fs_mgr: fstab: logspam from empty flags" am: bece53e515
...
am: 50574de69a
Change-Id: I23b6fe786b31918553855b031b0742db810de16f
2019-02-06 10:24:57 -08:00
Mark Salyzyn
50574de69a
Merge "fs_mgr: fstab: logspam from empty flags"
...
am: bece53e515
Change-Id: I8eca014677db5693d48f8ea49d1edf303cf23a54
2019-02-06 10:07:43 -08:00
Treehugger Robot
bece53e515
Merge "fs_mgr: fstab: logspam from empty flags"
2019-02-06 17:59:42 +00:00
Nikita Ioffe
575be95c44
Merge "apexd: Create top-level /data/apex folders at boot" am: 4fdc2ce2bb am: 2d3aeba767
...
am: d52ed3f08f
Change-Id: Iacd68739f2868b9f0cb77bfae6e7a12b6a9ef3bd
2019-02-06 09:24:40 -08:00
Nikita Ioffe
d52ed3f08f
Merge "apexd: Create top-level /data/apex folders at boot" am: 4fdc2ce2bb
...
am: 2d3aeba767
Change-Id: If2475366958f37e11efc601898e3cb41399b6fb9
2019-02-06 09:16:13 -08:00
Nikita Ioffe
2d3aeba767
Merge "apexd: Create top-level /data/apex folders at boot"
...
am: 4fdc2ce2bb
Change-Id: I7ad1aaf6ffe09f5124c0d749bd90b58f6d1d47ce
2019-02-06 09:11:22 -08:00
Treehugger Robot
4fdc2ce2bb
Merge "apexd: Create top-level /data/apex folders at boot"
2019-02-06 16:58:23 +00:00
Greg Kaiser
f21242a4e4
Merge "libprocessgroup: Disable file descriptor caching temporarily" am: 54801442bd am: 57fd5a23c5
...
am: 667baab6fc
Change-Id: Ie6e7b487579971d22fa0aed97b72948c8a680509
2019-02-06 06:06:49 -08:00
Greg Kaiser
667baab6fc
Merge "libprocessgroup: Disable file descriptor caching temporarily" am: 54801442bd
...
am: 57fd5a23c5
Change-Id: I9126fa03bd1b26bfea11989e5da64dc7c69eab84
2019-02-06 06:03:42 -08:00
Greg Kaiser
57fd5a23c5
Merge "libprocessgroup: Disable file descriptor caching temporarily"
...
am: 54801442bd
Change-Id: I9a266067010f2eb69711c089dc70c58cdf481062
2019-02-06 05:59:32 -08:00
Greg Kaiser
54801442bd
Merge "libprocessgroup: Disable file descriptor caching temporarily"
2019-02-06 13:48:03 +00:00
Nikita Ioffe
bc744dc98f
apexd: Create top-level /data/apex folders at boot
...
- package manager needs to read from /data/apex/active, hence 0750
- both /data/apex/backups and /data/apex/sessions are internal to apexd,
hence 0700
Bug: 123927167
Fixes: 123927167
Test: apex_e2e_tests, flashall -w & checked folders were created
Change-Id: I06c28328afe4945d082acd890401651bd37fcb20
2019-02-06 11:49:46 +00:00
Wei Wang
985ddff5af
Merge "init: print property/value for wait_for_property" am: 54f7e57bac am: 6a74ce960f
...
am: 691b7c9c93
Change-Id: I88c2cc323e968c98fb823ed0ed5b5cd261894e60
2019-02-05 23:52:58 -08:00
Wei Wang
691b7c9c93
Merge "init: print property/value for wait_for_property" am: 54f7e57bac
...
am: 6a74ce960f
Change-Id: Ic6f46d15568f4a87bcc1f06b523bc6a22ec647e6
2019-02-05 23:44:45 -08:00
Wei Wang
6a74ce960f
Merge "init: print property/value for wait_for_property"
...
am: 54f7e57bac
Change-Id: Ibf0b7d4d09f364fedd290436ca74405a4d32923e
2019-02-05 23:36:35 -08:00
Treehugger Robot
54f7e57bac
Merge "init: print property/value for wait_for_property"
2019-02-06 07:28:00 +00:00
Tom Cherry
22e389c604
Merge "fs_mgr: Remove fs_mgr_flags #define's" am: c03169caea am: dd5a7a6547
...
am: f4e0ef0a8d
Change-Id: I443298792173d507fe0c8ab4ec779a02c1e64697
2019-02-05 19:17:01 -08:00
Tom Cherry
f4e0ef0a8d
Merge "fs_mgr: Remove fs_mgr_flags #define's" am: c03169caea
...
am: dd5a7a6547
Change-Id: I1fbd71cdbf2e55cca508d26960606686e54ebd85
2019-02-05 19:12:53 -08:00
Tom Cherry
dd5a7a6547
Merge "fs_mgr: Remove fs_mgr_flags #define's"
...
am: c03169caea
Change-Id: Iefa67976c45df702b67cb420c6eb45ea50f30b9b
2019-02-05 19:08:46 -08:00
Treehugger Robot
c03169caea
Merge "fs_mgr: Remove fs_mgr_flags #define's"
2019-02-06 02:53:32 +00:00
Suren Baghdasaryan
bee9f5718b
libprocessgroup: Disable file descriptor caching temporarily
...
File descriptor caching breaks boot on Android Go and Svelte targets.
Disable it temporarily to fix the builds and investigate the root cause
further.
Bug: 123868658
Test: Android Go device boots after this change
Change-Id: Idd0209029cde8454ea99b9de030f7a317c2988d7
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-02-06 02:15:37 +00:00
Wei Wang
c9352bb383
init: print property/value for wait_for_property
...
Bug: 123772265
Bug: 123788098
Test: Build
Change-Id: Ice130d7efab1f227a2f9021136621ad08f84fd23
2019-02-06 01:03:53 +00:00
Mark Salyzyn
c0d09a2603
fs_mgr: fstab: logspam from empty flags
...
If a flag is empty (eg: reading /proc/mounts), skip instead of
reporting "unknown flag: ". Do the same for "defaults".
Test: compile
Change-Id: Ibc3dc7154bbef4bb5dc6522d3226b6ca1e60ec24
2019-02-05 14:31:38 -08:00
Tri Vo
eacac8fcbc
Merge "libcutils: route to ashmemd" am: 5bccd33e0b am: 6604befa2e
...
am: f60debf334
Change-Id: Ie996609636608039875277e4c8051b30f7715013
2019-02-05 14:11:23 -08:00
Tri Vo
f60debf334
Merge "libcutils: route to ashmemd" am: 5bccd33e0b
...
am: 6604befa2e
Change-Id: I9511ecf61f9dd85bf2345eef0dd0138cf4f918b0
2019-02-05 13:58:27 -08:00
Tri Vo
6604befa2e
Merge "libcutils: route to ashmemd"
...
am: 5bccd33e0b
Change-Id: I757d03ad69f9d36fa145352f903825c98fc8d548
2019-02-05 13:45:48 -08:00
Tri Vo
5bccd33e0b
Merge "libcutils: route to ashmemd"
2019-02-05 21:38:50 +00:00
Tom Cherry
7dec4fdd38
fs_mgr: Remove fs_mgr_flags #define's
...
These are no longer used but I missed them in the last CL.
Test: treehugger
Change-Id: Iea5235cf2d105c80a406f0ef020080859c0d2ff7
2019-02-05 13:04:21 -08:00
Tom Cherry
870a434eb8
Merge "Remove old C fs_mgr interface" am: 7303edd194 am: 23a18e62fc
...
am: 614327c06e
Change-Id: I678e2071f9fc7cd4de2bfc5a63b97698b0d5465e
2019-02-05 09:20:00 -08:00
Tom Cherry
614327c06e
Merge "Remove old C fs_mgr interface" am: 7303edd194
...
am: 23a18e62fc
Change-Id: Ia32fe91d8d8b67e3e9e6d560192580c228232916
2019-02-05 09:15:52 -08:00
Tom Cherry
23a18e62fc
Merge "Remove old C fs_mgr interface"
...
am: 7303edd194
Change-Id: I01614f3bdbd5d7d142884d2da61cb56d25869987
2019-02-05 09:12:43 -08:00
Tom Cherry
7303edd194
Merge "Remove old C fs_mgr interface"
2019-02-05 17:06:03 +00:00
Anton Hansson
68eff143c6
Merge "Fix asan paths in ld.config" am: a13b119c3d am: 1464eebca3
...
am: 4d3b18c515
Change-Id: I90ef79370e8e8a8d79991e7cdb779c5886b47045
2019-02-05 08:57:55 -08:00
Anton Hansson
4d3b18c515
Merge "Fix asan paths in ld.config" am: a13b119c3d
...
am: 1464eebca3
Change-Id: I016246a7b854363ad5a653d4bf1af332fdc3db5c
2019-02-05 08:53:46 -08:00