mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-29 14:13:22 +00:00
fix(driver): fix memory security problem in tty device ioctl (#833)
* add soft link to musl-gcc * fix the tty_ioctl * modified * modified
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
use core::{
|
||||
any::Any,
|
||||
fmt::Debug,
|
||||
sync::atomic::{AtomicBool, Ordering},
|
||||
};
|
||||
@ -8,6 +9,7 @@ use alloc::{
|
||||
sync::{Arc, Weak},
|
||||
vec::Vec,
|
||||
};
|
||||
use intertrait::CastFromSync;
|
||||
use system_error::SystemError;
|
||||
|
||||
use crate::{
|
||||
@ -130,6 +132,10 @@ impl EPollItem {
|
||||
}
|
||||
}
|
||||
|
||||
pub trait KernelIoctlData: Send + Sync + Any + Debug + CastFromSync {}
|
||||
|
||||
impl KernelIoctlData for EPollItem {}
|
||||
|
||||
/// ### Epoll文件的私有信息
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct EPollPrivateData {
|
||||
|
Reference in New Issue
Block a user