mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[CVE-2009-0029] System call wrappers part 19
Signed-off-by: Heiko Carstens <[email protected]>
This commit is contained in:
parent
a6b42e83f2
commit
003d7ab479
3 changed files with 13 additions and 12 deletions
|
|
@ -24,7 +24,7 @@
|
|||
* must be owner or have write permission.
|
||||
* Else, update from *times, must be owner or super user.
|
||||
*/
|
||||
asmlinkage long sys_utime(char __user *filename, struct utimbuf __user *times)
|
||||
SYSCALL_DEFINE2(utime, char __user *, filename, struct utimbuf __user *, times)
|
||||
{
|
||||
struct timespec tv[2];
|
||||
|
||||
|
|
@ -214,7 +214,8 @@ asmlinkage long sys_futimesat(int dfd, char __user *filename, struct timeval __u
|
|||
return do_utimes(dfd, filename, utimes ? tstimes : NULL, 0);
|
||||
}
|
||||
|
||||
asmlinkage long sys_utimes(char __user *filename, struct timeval __user *utimes)
|
||||
SYSCALL_DEFINE2(utimes, char __user *, filename,
|
||||
struct timeval __user *, utimes)
|
||||
{
|
||||
return sys_futimesat(AT_FDCWD, filename, utimes);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue