Moved set_requesting_sid to public BinderFeatures struct.
Bug: 178852354
Test: mm
Change-Id: I6d11eb57c01cd8379c529416145913a1abd9c611
diff --git a/authfs/fd_server/src/main.rs b/authfs/fd_server/src/main.rs
index 99b6e9e..4e5c5d3 100644
--- a/authfs/fd_server/src/main.rs
+++ b/authfs/fd_server/src/main.rs
@@ -37,15 +37,14 @@
use std::os::unix::io::{AsRawFd, FromRawFd};
use anyhow::{bail, Context, Result};
-use binder::IBinderInternal; // TODO(178852354): remove once set_requesting_sid is exposed in the API.
use log::{debug, error};
use authfs_aidl_interface::aidl::com::android::virt::fs::IVirtFdService::{
BnVirtFdService, IVirtFdService, ERROR_IO, ERROR_UNKNOWN_FD, MAX_REQUESTING_DATA,
};
use authfs_aidl_interface::binder::{
- add_service, ExceptionCode, Interface, ProcessState, Result as BinderResult, Status,
- StatusCode, Strong,
+ add_service, BinderFeatures, ExceptionCode, Interface, ProcessState, Result as BinderResult,
+ Status, StatusCode, Strong,
};
const SERVICE_NAME: &str = "authfs_fd_server";
@@ -100,9 +99,7 @@
impl FdService {
pub fn new_binder(fd_pool: BTreeMap<i32, FdConfig>) -> Strong<dyn IVirtFdService> {
- let result = BnVirtFdService::new_binder(FdService { fd_pool });
- result.as_binder().set_requesting_sid(false);
- result
+ BnVirtFdService::new_binder(FdService { fd_pool }, BinderFeatures::default())
}
fn get_file_config(&self, id: i32) -> BinderResult<&FdConfig> {