android_system_core/libcutils
Maciej Żenczykowski 1ba94402f2 flattened apex: fix /apex/com.android.tethering/bin/for-system{,/clatd} mode
from packages/modules/Connectivity/Tethering/apex/canned_fs_config
   /bin/for-system 0 1000 0750
   /bin/for-system/clatd 1029 1029 06755
the Tethering apex mounts at /apex/com.android.tethering,
but that's a bind mount, it really lives at /system/...
in the flattened fs image.

Testing via:

aosp$ export OVERRIDE_TARGET_FLATTEN_APEX=true
aosp$ a_make_target aosp_cf_x86_phone-userdebug

$ sudo mkdir /mnt/point && sudo mount -o loop,ro /aosp/out/target/product/vsoc_x86/system.img /mnt/point && egrep /mnt/point /proc/mounts && sudo ls -dlnZ /mnt/point/system/apex/com.android.tethering/bin/for-system{,/clatd} && sudo umount /mnt/point && sudo rmdir /mnt/point

/dev/loop0 /mnt/point erofs ro,relatime,user_xattr,acl,cache_strategy=readaround 0 0

drwxr-x---. 2 0 1000 u:object_r:system_file:s0 44 Apr 11 03:12 /mnt/point/system/apex/com.android.tethering/bin/for-system
-rwsr-sr-x. 1 1029 1029 u:object_r:clatd_exec:s0 18876 Apr 11 03:12 /mnt/point/system/apex/com.android.tethering/bin/for-system/clatd

while without this patch it showed:

drwxr-x--x. 2 0 2000 u:object_r:system_file:s0 44 Apr 11 01:53 /mnt/point/system/apex/com.android.tethering/bin/for-system
-rwxr-xr-x. 1 0 2000 u:object_r:clatd_exec:s0 18876 Apr 11 01:53 /mnt/point/system/apex/com.android.tethering/bin/for-system/clatd

Test: TreeHugger
Bug: 273821347
Bug: 277646103
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I9714b1e935afbe27c2eb4be3f96a9742eb752e92
2023-04-11 10:29:16 +00:00
..
arch-x86
arch-x86_64
include qtaguid.h - remove qtaguid_setPacifier declaration 2022-12-18 20:40:09 +00:00
include_outside_system/cutils
Android.bp Remove an obsolete workaround. 2022-10-18 16:31:04 +00:00
KernelLibcutilsTest.xml
MODULE_LICENSE_APACHE2
NOTICE
OWNERS
TEST_MAPPING TEST_MAPPING: add vts core lib tests 2023-01-09 22:05:37 +00:00
android_get_control_env.h
android_get_control_file.cpp
android_get_control_file_test.cpp
android_get_control_socket_test.cpp
android_reboot.cpp
ashmem-dev.cpp
ashmem-host.cpp
ashmem_test.cpp Fix uninitialized value warnings. 2022-12-20 11:56:40 -08:00
canned_fs_config.cpp canned fs_config accepts multiple lines having the same path 2021-12-14 09:54:34 +09:00
config_utils.cpp
fs.cpp
fs_config.cpp flattened apex: fix /apex/com.android.tethering/bin/for-system{,/clatd} mode 2023-04-11 10:29:16 +00:00
fs_config.h
fs_config_test.cpp
hashmap.cpp
iosched_policy.cpp
klog.cpp
load_file.cpp
multiuser.cpp Create utility method for converting sdk_sandbox_uid to app_uid 2022-03-03 21:49:43 +00:00
multiuser_test.cpp Create utility method for converting sdk_sandbox_uid to app_uid 2022-03-03 21:49:43 +00:00
native_handle.cpp Add fdsan capabilities for native handles 2022-09-02 00:44:13 +00:00
native_handle_test.cpp
partition_utils.cpp
properties.cpp
properties_test.cpp
qtaguid.cpp qtaguid.cpp - improvements 2023-01-26 22:39:04 +00:00
record_stream.cpp
sched_policy_test.cpp sched_policy_test: set_sched_policy also set the cpuset policy as fallback 2023-02-01 03:06:45 +00:00
socket_inaddr_any_server_unix.cpp
socket_inaddr_any_server_windows.cpp
socket_local_client_unix.cpp
socket_local_server_unix.cpp
socket_local_unix.h
socket_network_client_unix.cpp
socket_network_client_windows.cpp
sockets.cpp
sockets_test.cpp
sockets_unix.cpp
sockets_windows.cpp
str_parms.cpp
str_parms_test.cpp
strlcpy.c
threads.cpp
trace-container.cpp Updating ATRACE_ASYNC_FOR_TRACK_END to not require a name argument 2022-04-28 18:18:57 +00:00
trace-dev.cpp Updating ATRACE_ASYNC_FOR_TRACK_END to not require a name argument 2022-04-28 18:18:57 +00:00
trace-dev.inc Added trackName as additional argument to WRITE_MSG to handle trace 2022-03-17 21:40:15 +00:00
trace-dev_test.cpp Updating ATRACE_ASYNC_FOR_TRACK_END to not require a name argument 2022-04-28 18:18:57 +00:00
trace-host.cpp Updating ATRACE_ASYNC_FOR_TRACK_END to not require a name argument 2022-04-28 18:18:57 +00:00
uevent.cpp