commit | bf2bebd8e74908317a76c11f1951c67c0910eefb | [log] [tgz] |
---|---|---|
author | T.J. Mercier <tjmercier@google.com> | Fri Jul 21 00:31:06 2023 +0000 |
committer | T.J. Mercier <tjmercier@google.com> | Fri Jul 21 00:39:57 2023 +0000 |
tree | 69779fa4edc8ee4fe7ad5ab5f62c6828789d5c23 | |
parent | 89d22239d28c69daeb1b47f3200044dbe6fea60e [diff] |
libprocessgroup: UIDs in linux are unsigned We use the %d format specificier for uid_t, which maps to __kernel_uid32_t, which is unsigned. [1] This is undefined behavior which can lead to paths with negative UIDs when erroneously large values are passed for uid: E libprocessgroup: No such cgroup attribute: /sys/fs/cgroup/uid_-89846/cgroup.freeze Fix it with %u. [1] https://cs.android.com/search?q=typedef.*__kernel_uid32_t&ss=android%2Fplatform%2Fsuperproject%2Fmain Change-Id: Ibb52ba2503e30e2f20770b7d23629167e38d076a