Mark arguments to certain syscalls as being const
Mark arguments to certain system calls as being const where they should be but aren't. The list includes: (*) The filename arguments of various stat syscalls, execve(), various utimes syscalls and some mount syscalls. (*) The filename arguments of some syscall helpers relating to the above. (*) The buffer argument of various write syscalls. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b84ae4a140
commit
c788732523
44 changed files with 125 additions and 109 deletions
|
@ -394,7 +394,7 @@ asmlinkage long sys_umount(char __user *name, int flags);
|
|||
asmlinkage long sys_oldumount(char __user *name);
|
||||
asmlinkage long sys_truncate(const char __user *path, long length);
|
||||
asmlinkage long sys_ftruncate(unsigned int fd, unsigned long length);
|
||||
asmlinkage long sys_stat(char __user *filename,
|
||||
asmlinkage long sys_stat(const char __user *filename,
|
||||
struct __old_kernel_stat __user *statbuf);
|
||||
asmlinkage long sys_statfs(const char __user * path,
|
||||
struct statfs __user *buf);
|
||||
|
@ -403,21 +403,21 @@ asmlinkage long sys_statfs64(const char __user *path, size_t sz,
|
|||
asmlinkage long sys_fstatfs(unsigned int fd, struct statfs __user *buf);
|
||||
asmlinkage long sys_fstatfs64(unsigned int fd, size_t sz,
|
||||
struct statfs64 __user *buf);
|
||||
asmlinkage long sys_lstat(char __user *filename,
|
||||
asmlinkage long sys_lstat(const char __user *filename,
|
||||
struct __old_kernel_stat __user *statbuf);
|
||||
asmlinkage long sys_fstat(unsigned int fd,
|
||||
struct __old_kernel_stat __user *statbuf);
|
||||
asmlinkage long sys_newstat(char __user *filename,
|
||||
asmlinkage long sys_newstat(const char __user *filename,
|
||||
struct stat __user *statbuf);
|
||||
asmlinkage long sys_newlstat(char __user *filename,
|
||||
asmlinkage long sys_newlstat(const char __user *filename,
|
||||
struct stat __user *statbuf);
|
||||
asmlinkage long sys_newfstat(unsigned int fd, struct stat __user *statbuf);
|
||||
asmlinkage long sys_ustat(unsigned dev, struct ustat __user *ubuf);
|
||||
#if BITS_PER_LONG == 32
|
||||
asmlinkage long sys_stat64(char __user *filename,
|
||||
asmlinkage long sys_stat64(const char __user *filename,
|
||||
struct stat64 __user *statbuf);
|
||||
asmlinkage long sys_fstat64(unsigned long fd, struct stat64 __user *statbuf);
|
||||
asmlinkage long sys_lstat64(char __user *filename,
|
||||
asmlinkage long sys_lstat64(const char __user *filename,
|
||||
struct stat64 __user *statbuf);
|
||||
asmlinkage long sys_truncate64(const char __user *path, loff_t length);
|
||||
asmlinkage long sys_ftruncate64(unsigned int fd, loff_t length);
|
||||
|
@ -760,7 +760,7 @@ asmlinkage long sys_linkat(int olddfd, const char __user *oldname,
|
|||
int newdfd, const char __user *newname, int flags);
|
||||
asmlinkage long sys_renameat(int olddfd, const char __user * oldname,
|
||||
int newdfd, const char __user * newname);
|
||||
asmlinkage long sys_futimesat(int dfd, char __user *filename,
|
||||
asmlinkage long sys_futimesat(int dfd, const char __user *filename,
|
||||
struct timeval __user *utimes);
|
||||
asmlinkage long sys_faccessat(int dfd, const char __user *filename, int mode);
|
||||
asmlinkage long sys_fchmodat(int dfd, const char __user * filename,
|
||||
|
@ -769,13 +769,13 @@ asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user,
|
|||
gid_t group, int flag);
|
||||
asmlinkage long sys_openat(int dfd, const char __user *filename, int flags,
|
||||
int mode);
|
||||
asmlinkage long sys_newfstatat(int dfd, char __user *filename,
|
||||
asmlinkage long sys_newfstatat(int dfd, const char __user *filename,
|
||||
struct stat __user *statbuf, int flag);
|
||||
asmlinkage long sys_fstatat64(int dfd, char __user *filename,
|
||||
asmlinkage long sys_fstatat64(int dfd, const char __user *filename,
|
||||
struct stat64 __user *statbuf, int flag);
|
||||
asmlinkage long sys_readlinkat(int dfd, const char __user *path, char __user *buf,
|
||||
int bufsiz);
|
||||
asmlinkage long sys_utimensat(int dfd, char __user *filename,
|
||||
asmlinkage long sys_utimensat(int dfd, const char __user *filename,
|
||||
struct timespec __user *utimes, int flags);
|
||||
asmlinkage long sys_unshare(unsigned long unshare_flags);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue