ANDROID: rust: security: mark Rust wrappers of security_binder_* inline
This prevents Rust from generating Rust symbols that are just trivial wrappers around the underlying C symbols. $ nm vmlinux | grep ' _R.*security..binder' | rustfilt ffffffc0807829b0 T kernel::security::binder_transaction ffffffc080782ad0 T kernel::security::binder_transfer_file ffffffc080782920 T kernel::security::binder_set_context_mgr ffffffc080782a40 T kernel::security::binder_transfer_binder This is a follow-up to aosp/3477716. Bug: 403200195 Change-Id: I08e127243f7da354d09adb937b3f1d6ebeee751c Signed-off-by: Alice Ryhl <aliceryhl@google.com>
This commit is contained in:
@@ -997,6 +997,7 @@ int security_binder_set_context_mgr(const struct cred *mgr)
|
||||
{
|
||||
return call_int_hook(binder_set_context_mgr, mgr);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(security_binder_set_context_mgr);
|
||||
|
||||
/**
|
||||
* security_binder_transaction() - Check if a binder transaction is allowed
|
||||
@@ -1012,6 +1013,7 @@ int security_binder_transaction(const struct cred *from,
|
||||
{
|
||||
return call_int_hook(binder_transaction, from, to);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(security_binder_transaction);
|
||||
|
||||
/**
|
||||
* security_binder_transfer_binder() - Check if a binder transfer is allowed
|
||||
@@ -1027,6 +1029,7 @@ int security_binder_transfer_binder(const struct cred *from,
|
||||
{
|
||||
return call_int_hook(binder_transfer_binder, from, to);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(security_binder_transfer_binder);
|
||||
|
||||
/**
|
||||
* security_binder_transfer_file() - Check if a binder file xfer is allowed
|
||||
@@ -1043,6 +1046,7 @@ int security_binder_transfer_file(const struct cred *from,
|
||||
{
|
||||
return call_int_hook(binder_transfer_file, from, to, file);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(security_binder_transfer_file);
|
||||
|
||||
/**
|
||||
* security_ptrace_access_check() - Check if tracing is allowed
|
||||
|
||||
Reference in New Issue
Block a user