mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 22:12:16 +00:00
itimers: Move compat itimer syscalls to native ones
get rid of set_fs(), sanitize compat copyin/copyout. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: John Stultz <john.stultz@linaro.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20170607084241.28657-12-viro@ZenIV.linux.org.uk
This commit is contained in:
parent
b0dc12426e
commit
54ad9c46c2
4 changed files with 62 additions and 55 deletions
|
@ -94,6 +94,10 @@ struct compat_itimerval {
|
|||
struct compat_timeval it_value;
|
||||
};
|
||||
|
||||
struct itimerval;
|
||||
int get_compat_itimerval(struct itimerval *, const struct compat_itimerval __user *);
|
||||
int put_compat_itimerval(struct compat_itimerval __user *, const struct itimerval *);
|
||||
|
||||
struct compat_tms {
|
||||
compat_clock_t tms_utime;
|
||||
compat_clock_t tms_stime;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue