mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
system_api: Remove UserDataAuth
After CL:4712775, crosvm doesn't call UserDataAuth's D-Bus methods. This CL hence removes Rust interface of UserDataAuth's D-Bus method and proto definitions used by UserDataAuth. BUG=b:229122701 TEST=./update_bindings.sh TEST=emerge-<BOARD> crosvm Change-Id: Idc79b07614a50bd17ff99c124e501a88eeda2c1b Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4776924 Commit-Queue: Momoko Hattori <momohatt@chromium.org> Reviewed-by: Dennis Kempin <denniskempin@google.com>
This commit is contained in:
parent
2e9aad9c5d
commit
fe5be7e78d
9 changed files with 0 additions and 23899 deletions
|
@ -1,497 +0,0 @@
|
|||
// This code was autogenerated with `dbus-codegen-rust -s -m None`, see https://github.com/diwic/dbus-rs
|
||||
use dbus as dbus;
|
||||
#[allow(unused_imports)]
|
||||
use dbus::arg;
|
||||
use dbus::blocking;
|
||||
|
||||
pub trait OrgChromiumUserDataAuthInterface {
|
||||
fn is_mounted(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn unmount(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn remove(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn list_keys(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_web_authn_secret(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_web_authn_secret_hash(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_hibernate_secret(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_encryption_info(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn start_migrate_to_dircrypto(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn needs_dircrypto_migration(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_supported_key_policies(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_account_disk_usage(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn start_auth_session(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn invalidate_auth_session(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn extend_auth_session(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_auth_session_status(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn create_persistent_user(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn authenticate_auth_factor(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn prepare_guest_vault(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn prepare_ephemeral_vault(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn prepare_persistent_vault(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn prepare_vault_for_migration(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn add_auth_factor(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn update_auth_factor(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn update_auth_factor_metadata(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn remove_auth_factor(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn list_auth_factors(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_auth_factor_extended_info(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn prepare_auth_factor(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn terminate_auth_factor(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_recovery_request(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn reset_application_container(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn create_vault_keyset(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_arc_disk_features(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct OrgChromiumUserDataAuthInterfaceDircryptoMigrationProgress {
|
||||
pub status: Vec<u8>,
|
||||
}
|
||||
|
||||
impl arg::AppendAll for OrgChromiumUserDataAuthInterfaceDircryptoMigrationProgress {
|
||||
fn append(&self, i: &mut arg::IterAppend) {
|
||||
arg::RefArg::append(&self.status, i);
|
||||
}
|
||||
}
|
||||
|
||||
impl arg::ReadAll for OrgChromiumUserDataAuthInterfaceDircryptoMigrationProgress {
|
||||
fn read(i: &mut arg::Iter) -> Result<Self, arg::TypeMismatchError> {
|
||||
Ok(OrgChromiumUserDataAuthInterfaceDircryptoMigrationProgress {
|
||||
status: i.read()?,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl dbus::message::SignalArgs for OrgChromiumUserDataAuthInterfaceDircryptoMigrationProgress {
|
||||
const NAME: &'static str = "DircryptoMigrationProgress";
|
||||
const INTERFACE: &'static str = "org.chromium.UserDataAuthInterface";
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct OrgChromiumUserDataAuthInterfaceAuthFactorStatusUpdate {
|
||||
pub status: Vec<u8>,
|
||||
}
|
||||
|
||||
impl arg::AppendAll for OrgChromiumUserDataAuthInterfaceAuthFactorStatusUpdate {
|
||||
fn append(&self, i: &mut arg::IterAppend) {
|
||||
arg::RefArg::append(&self.status, i);
|
||||
}
|
||||
}
|
||||
|
||||
impl arg::ReadAll for OrgChromiumUserDataAuthInterfaceAuthFactorStatusUpdate {
|
||||
fn read(i: &mut arg::Iter) -> Result<Self, arg::TypeMismatchError> {
|
||||
Ok(OrgChromiumUserDataAuthInterfaceAuthFactorStatusUpdate {
|
||||
status: i.read()?,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl dbus::message::SignalArgs for OrgChromiumUserDataAuthInterfaceAuthFactorStatusUpdate {
|
||||
const NAME: &'static str = "AuthFactorStatusUpdate";
|
||||
const INTERFACE: &'static str = "org.chromium.UserDataAuthInterface";
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct OrgChromiumUserDataAuthInterfaceLowDiskSpace {
|
||||
pub status: Vec<u8>,
|
||||
}
|
||||
|
||||
impl arg::AppendAll for OrgChromiumUserDataAuthInterfaceLowDiskSpace {
|
||||
fn append(&self, i: &mut arg::IterAppend) {
|
||||
arg::RefArg::append(&self.status, i);
|
||||
}
|
||||
}
|
||||
|
||||
impl arg::ReadAll for OrgChromiumUserDataAuthInterfaceLowDiskSpace {
|
||||
fn read(i: &mut arg::Iter) -> Result<Self, arg::TypeMismatchError> {
|
||||
Ok(OrgChromiumUserDataAuthInterfaceLowDiskSpace {
|
||||
status: i.read()?,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl dbus::message::SignalArgs for OrgChromiumUserDataAuthInterfaceLowDiskSpace {
|
||||
const NAME: &'static str = "LowDiskSpace";
|
||||
const INTERFACE: &'static str = "org.chromium.UserDataAuthInterface";
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct OrgChromiumUserDataAuthInterfaceAuthScanResult {
|
||||
pub status: Vec<u8>,
|
||||
}
|
||||
|
||||
impl arg::AppendAll for OrgChromiumUserDataAuthInterfaceAuthScanResult {
|
||||
fn append(&self, i: &mut arg::IterAppend) {
|
||||
arg::RefArg::append(&self.status, i);
|
||||
}
|
||||
}
|
||||
|
||||
impl arg::ReadAll for OrgChromiumUserDataAuthInterfaceAuthScanResult {
|
||||
fn read(i: &mut arg::Iter) -> Result<Self, arg::TypeMismatchError> {
|
||||
Ok(OrgChromiumUserDataAuthInterfaceAuthScanResult {
|
||||
status: i.read()?,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl dbus::message::SignalArgs for OrgChromiumUserDataAuthInterfaceAuthScanResult {
|
||||
const NAME: &'static str = "AuthScanResult";
|
||||
const INTERFACE: &'static str = "org.chromium.UserDataAuthInterface";
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct OrgChromiumUserDataAuthInterfacePrepareAuthFactorProgress {
|
||||
pub status: Vec<u8>,
|
||||
}
|
||||
|
||||
impl arg::AppendAll for OrgChromiumUserDataAuthInterfacePrepareAuthFactorProgress {
|
||||
fn append(&self, i: &mut arg::IterAppend) {
|
||||
arg::RefArg::append(&self.status, i);
|
||||
}
|
||||
}
|
||||
|
||||
impl arg::ReadAll for OrgChromiumUserDataAuthInterfacePrepareAuthFactorProgress {
|
||||
fn read(i: &mut arg::Iter) -> Result<Self, arg::TypeMismatchError> {
|
||||
Ok(OrgChromiumUserDataAuthInterfacePrepareAuthFactorProgress {
|
||||
status: i.read()?,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl dbus::message::SignalArgs for OrgChromiumUserDataAuthInterfacePrepareAuthFactorProgress {
|
||||
const NAME: &'static str = "PrepareAuthFactorProgress";
|
||||
const INTERFACE: &'static str = "org.chromium.UserDataAuthInterface";
|
||||
}
|
||||
|
||||
impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref<Target=T>> OrgChromiumUserDataAuthInterface for blocking::Proxy<'a, C> {
|
||||
|
||||
fn is_mounted(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "IsMounted", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn unmount(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "Unmount", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn remove(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "Remove", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn list_keys(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "ListKeys", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_web_authn_secret(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "GetWebAuthnSecret", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_web_authn_secret_hash(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "GetWebAuthnSecretHash", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_hibernate_secret(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "GetHibernateSecret", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_encryption_info(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "GetEncryptionInfo", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn start_migrate_to_dircrypto(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "StartMigrateToDircrypto", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn needs_dircrypto_migration(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "NeedsDircryptoMigration", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_supported_key_policies(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "GetSupportedKeyPolicies", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_account_disk_usage(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "GetAccountDiskUsage", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn start_auth_session(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "StartAuthSession", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn invalidate_auth_session(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "InvalidateAuthSession", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn extend_auth_session(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "ExtendAuthSession", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_auth_session_status(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "GetAuthSessionStatus", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn create_persistent_user(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "CreatePersistentUser", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn authenticate_auth_factor(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "AuthenticateAuthFactor", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn prepare_guest_vault(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "PrepareGuestVault", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn prepare_ephemeral_vault(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "PrepareEphemeralVault", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn prepare_persistent_vault(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "PreparePersistentVault", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn prepare_vault_for_migration(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "PrepareVaultForMigration", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn add_auth_factor(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "AddAuthFactor", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn update_auth_factor(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "UpdateAuthFactor", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn update_auth_factor_metadata(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "UpdateAuthFactorMetadata", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn remove_auth_factor(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "RemoveAuthFactor", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn list_auth_factors(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "ListAuthFactors", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_auth_factor_extended_info(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "GetAuthFactorExtendedInfo", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn prepare_auth_factor(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "PrepareAuthFactor", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn terminate_auth_factor(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "TerminateAuthFactor", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_recovery_request(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "GetRecoveryRequest", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn reset_application_container(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "ResetApplicationContainer", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn create_vault_keyset(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "CreateVaultKeyset", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_arc_disk_features(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.UserDataAuthInterface", "GetArcDiskFeatures", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
}
|
||||
|
||||
pub trait OrgChromiumArcQuota {
|
||||
fn get_arc_disk_features(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_current_space_for_arc_uid(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_current_space_for_arc_gid(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_current_space_for_arc_project_id(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn set_media_rwdata_file_project_id(&self, fd: arg::OwnedFd, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn set_media_rwdata_file_project_inheritance_flag(&self, fd: arg::OwnedFd, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
}
|
||||
|
||||
impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref<Target=T>> OrgChromiumArcQuota for blocking::Proxy<'a, C> {
|
||||
|
||||
fn get_arc_disk_features(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.ArcQuota", "GetArcDiskFeatures", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_current_space_for_arc_uid(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.ArcQuota", "GetCurrentSpaceForArcUid", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_current_space_for_arc_gid(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.ArcQuota", "GetCurrentSpaceForArcGid", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_current_space_for_arc_project_id(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.ArcQuota", "GetCurrentSpaceForArcProjectId", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn set_media_rwdata_file_project_id(&self, fd: arg::OwnedFd, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.ArcQuota", "SetMediaRWDataFileProjectId", (fd, request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn set_media_rwdata_file_project_inheritance_flag(&self, fd: arg::OwnedFd, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.ArcQuota", "SetMediaRWDataFileProjectInheritanceFlag", (fd, request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
}
|
||||
|
||||
pub trait OrgChromiumCryptohomePkcs11Interface {
|
||||
fn pkcs11_is_tpm_token_ready(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn pkcs11_get_tpm_token_info(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn pkcs11_terminate(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn pkcs11_restore_tpm_tokens(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
}
|
||||
|
||||
impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref<Target=T>> OrgChromiumCryptohomePkcs11Interface for blocking::Proxy<'a, C> {
|
||||
|
||||
fn pkcs11_is_tpm_token_ready(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.CryptohomePkcs11Interface", "Pkcs11IsTpmTokenReady", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn pkcs11_get_tpm_token_info(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.CryptohomePkcs11Interface", "Pkcs11GetTpmTokenInfo", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn pkcs11_terminate(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.CryptohomePkcs11Interface", "Pkcs11Terminate", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn pkcs11_restore_tpm_tokens(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.CryptohomePkcs11Interface", "Pkcs11RestoreTpmTokens", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
}
|
||||
|
||||
pub trait OrgChromiumInstallAttributesInterface {
|
||||
fn install_attributes_get(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn install_attributes_set(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn install_attributes_finalize(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn install_attributes_get_status(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_firmware_management_parameters(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn remove_firmware_management_parameters(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn set_firmware_management_parameters(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
}
|
||||
|
||||
impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref<Target=T>> OrgChromiumInstallAttributesInterface for blocking::Proxy<'a, C> {
|
||||
|
||||
fn install_attributes_get(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.InstallAttributesInterface", "InstallAttributesGet", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn install_attributes_set(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.InstallAttributesInterface", "InstallAttributesSet", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn install_attributes_finalize(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.InstallAttributesInterface", "InstallAttributesFinalize", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn install_attributes_get_status(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.InstallAttributesInterface", "InstallAttributesGetStatus", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_firmware_management_parameters(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.InstallAttributesInterface", "GetFirmwareManagementParameters", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn remove_firmware_management_parameters(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.InstallAttributesInterface", "RemoveFirmwareManagementParameters", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn set_firmware_management_parameters(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.InstallAttributesInterface", "SetFirmwareManagementParameters", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
}
|
||||
|
||||
pub trait OrgChromiumCryptohomeMiscInterface {
|
||||
fn get_system_salt(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn update_current_user_activity_timestamp(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_sanitized_username(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_login_status(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn lock_to_single_user_mount_until_reboot(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
fn get_rsu_device_id(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error>;
|
||||
}
|
||||
|
||||
impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref<Target=T>> OrgChromiumCryptohomeMiscInterface for blocking::Proxy<'a, C> {
|
||||
|
||||
fn get_system_salt(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.CryptohomeMiscInterface", "GetSystemSalt", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn update_current_user_activity_timestamp(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.CryptohomeMiscInterface", "UpdateCurrentUserActivityTimestamp", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_sanitized_username(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.CryptohomeMiscInterface", "GetSanitizedUsername", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_login_status(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.CryptohomeMiscInterface", "GetLoginStatus", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn lock_to_single_user_mount_until_reboot(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.CryptohomeMiscInterface", "LockToSingleUserMountUntilReboot", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
|
||||
fn get_rsu_device_id(&self, request: Vec<u8>) -> Result<Vec<u8>, dbus::Error> {
|
||||
self.method_call("org.chromium.CryptohomeMiscInterface", "GetRsuDeviceId", (request, ))
|
||||
.and_then(|r: (Vec<u8>, )| Ok(r.0, ))
|
||||
}
|
||||
}
|
|
@ -3,8 +3,6 @@
|
|||
pub mod client {
|
||||
pub mod org_chromium_spaced;
|
||||
pub use org_chromium_spaced::*;
|
||||
pub mod org_chromium_userdataauth;
|
||||
pub use org_chromium_userdataauth::*;
|
||||
pub mod org_chromium_vtpm;
|
||||
pub use org_chromium_vtpm::*;
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -2,10 +2,5 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
pub mod UserDataAuth;
|
||||
pub mod auth_factor;
|
||||
pub mod fido;
|
||||
pub mod key;
|
||||
pub mod rpc;
|
||||
pub mod spaced;
|
||||
pub mod vtpm_interface;
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -15,14 +15,8 @@ fi
|
|||
|
||||
FILES=(
|
||||
"src/bindings/client/org_chromium_spaced.rs"
|
||||
"src/bindings/client/org_chromium_userdataauth.rs"
|
||||
"src/bindings/client/org_chromium_vtpm.rs"
|
||||
"src/protos/auth_factor.rs"
|
||||
"src/protos/fido.rs"
|
||||
"src/protos/key.rs"
|
||||
"src/protos/rpc.rs"
|
||||
"src/protos/spaced.rs"
|
||||
"src/protos/UserDataAuth.rs"
|
||||
"src/protos/vtpm_interface.rs"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue