diff options
author | 2024-01-17 09:02:47 -0800 | |
---|---|---|
committer | 2024-01-18 10:57:48 -0800 | |
commit | c4cff3d621bccda5ef91b44ad8c289be36958867 (patch) | |
tree | d8b360b976e3f264252067cafe099cbcd2271523 /libs/gui/BufferQueue.cpp | |
parent | c72e4d75db2b1a521ba4cf4c681cd29d6d9cb7e0 (diff) |
Only open a path that is a regular file
... and return a fixed errno before the file path is authenticated.
To avoid a malicious client blocking installd with a path to FIFO,
check the file type before opening it. A corresponding test isn't added
because it's hard to test that the FIFO has never been opened by path.
Bug: 320682896
Bug: 319284987
Test: atest FsVerityTest installd_service_test
Change-Id: Icd30cca809a45447444842ec277b2ac536f26d88
Diffstat (limited to 'libs/gui/BufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions