Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'pull-path' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs

Pull vfs constification updates from Al Viro:
"whack-a-mole: constifying struct path *"

* tag 'pull-path' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
ecryptfs: constify path
spufs: constify path
nd_jump_link(): constify path
audit_init_parent(): constify path
__io_setxattr(): constify path
do_proc_readlink(): constify path
overlayfs: constify path
fs/notify: constify path
may_linkat(): constify path
do_sys_name_to_handle(): constify path
->getprocattr(): attribute name is const char *, TYVM...

+70 -70
+3 -3
arch/powerpc/platforms/cell/spufs/inode.c
··· 275 275 return ret; 276 276 } 277 277 278 - static int spufs_context_open(struct path *path) 278 + static int spufs_context_open(const struct path *path) 279 279 { 280 280 int ret; 281 281 struct file *filp; ··· 491 491 return ret; 492 492 } 493 493 494 - static int spufs_gang_open(struct path *path) 494 + static int spufs_gang_open(const struct path *path) 495 495 { 496 496 int ret; 497 497 struct file *filp; ··· 536 536 537 537 static struct file_system_type spufs_type; 538 538 539 - long spufs_create(struct path *path, struct dentry *dentry, 539 + long spufs_create(const struct path *path, struct dentry *dentry, 540 540 unsigned int flags, umode_t mode, struct file *filp) 541 541 { 542 542 struct inode *dir = d_inode(path->dentry);
+1 -1
arch/powerpc/platforms/cell/spufs/spufs.h
··· 232 232 extern struct spufs_calls spufs_calls; 233 233 struct coredump_params; 234 234 long spufs_run_spu(struct spu_context *ctx, u32 *npc, u32 *status); 235 - long spufs_create(struct path *nd, struct dentry *dentry, unsigned int flags, 235 + long spufs_create(const struct path *nd, struct dentry *dentry, unsigned int flags, 236 236 umode_t mode, struct file *filp); 237 237 /* ELF coredump callbacks for writing SPU ELF notes */ 238 238 extern int spufs_coredump_extra_notes_size(void);
+1 -1
fs/ecryptfs/ecryptfs_kernel.h
··· 506 506 return ((struct ecryptfs_dentry_info *)dentry->d_fsdata)->lower_path.dentry; 507 507 } 508 508 509 - static inline struct path * 509 + static inline const struct path * 510 510 ecryptfs_dentry_to_lower_path(struct dentry *dentry) 511 511 { 512 512 return &((struct ecryptfs_dentry_info *)dentry->d_fsdata)->lower_path;
+1 -1
fs/ecryptfs/file.c
··· 33 33 struct iov_iter *to) 34 34 { 35 35 ssize_t rc; 36 - struct path *path; 36 + const struct path *path; 37 37 struct file *file = iocb->ki_filp; 38 38 39 39 rc = generic_file_read_iter(iocb, to);
+1 -1
fs/ecryptfs/inode.c
··· 317 317 static struct dentry *ecryptfs_lookup_interpose(struct dentry *dentry, 318 318 struct dentry *lower_dentry) 319 319 { 320 - struct path *path = ecryptfs_dentry_to_lower_path(dentry->d_parent); 320 + const struct path *path = ecryptfs_dentry_to_lower_path(dentry->d_parent); 321 321 struct inode *inode, *lower_inode; 322 322 struct ecryptfs_dentry_info *dentry_info; 323 323 int rc = 0;
+1 -1
fs/ecryptfs/main.c
··· 105 105 struct file **lower_file) 106 106 { 107 107 const struct cred *cred = current_cred(); 108 - struct path *path = ecryptfs_dentry_to_lower_path(dentry); 108 + const struct path *path = ecryptfs_dentry_to_lower_path(dentry); 109 109 int rc; 110 110 111 111 rc = ecryptfs_privileged_open(lower_file, path->dentry, path->mnt,
+1 -1
fs/fhandle.c
··· 14 14 #include "internal.h" 15 15 #include "mount.h" 16 16 17 - static long do_sys_name_to_handle(struct path *path, 17 + static long do_sys_name_to_handle(const struct path *path, 18 18 struct file_handle __user *ufh, 19 19 int __user *mnt_id) 20 20 {
+1 -1
fs/internal.h
··· 63 63 const char *, unsigned int, struct path *); 64 64 int do_rmdir(int dfd, struct filename *name); 65 65 int do_unlinkat(int dfd, struct filename *name); 66 - int may_linkat(struct user_namespace *mnt_userns, struct path *link); 66 + int may_linkat(struct user_namespace *mnt_userns, const struct path *link); 67 67 int do_renameat2(int olddfd, struct filename *oldname, int newdfd, 68 68 struct filename *newname, unsigned int flags); 69 69 int do_mkdirat(int dfd, struct filename *name, umode_t mode);
+2 -2
fs/namei.c
··· 986 986 * Helper to directly jump to a known parsed path from ->get_link, 987 987 * caller must have taken a reference to path beforehand. 988 988 */ 989 - int nd_jump_link(struct path *path) 989 + int nd_jump_link(const struct path *path) 990 990 { 991 991 int error = -ELOOP; 992 992 struct nameidata *nd = current->nameidata; ··· 1178 1178 * 1179 1179 * Returns 0 if successful, -ve on error. 1180 1180 */ 1181 - int may_linkat(struct user_namespace *mnt_userns, struct path *link) 1181 + int may_linkat(struct user_namespace *mnt_userns, const struct path *link) 1182 1182 { 1183 1183 struct inode *inode = link->dentry->d_inode; 1184 1184
+1 -1
fs/notify/fanotify/fanotify.c
··· 18 18 19 19 #include "fanotify.h" 20 20 21 - static bool fanotify_path_equal(struct path *p1, struct path *p2) 21 + static bool fanotify_path_equal(const struct path *p1, const struct path *p2) 22 22 { 23 23 return p1->mnt == p2->mnt && p1->dentry == p2->dentry; 24 24 }
+1 -1
fs/notify/fanotify/fanotify.h
··· 458 458 event->type == FANOTIFY_EVENT_TYPE_PATH_PERM; 459 459 } 460 460 461 - static inline struct path *fanotify_event_path(struct fanotify_event *event) 461 + static inline const struct path *fanotify_event_path(struct fanotify_event *event) 462 462 { 463 463 if (event->type == FANOTIFY_EVENT_TYPE_PATH) 464 464 return &FANOTIFY_PE(event)->path;
+3 -3
fs/notify/fanotify/fanotify_user.c
··· 249 249 return event; 250 250 } 251 251 252 - static int create_fd(struct fsnotify_group *group, struct path *path, 252 + static int create_fd(struct fsnotify_group *group, const struct path *path, 253 253 struct file **file) 254 254 { 255 255 int client_fd; ··· 619 619 char __user *buf, size_t count) 620 620 { 621 621 struct fanotify_event_metadata metadata; 622 - struct path *path = fanotify_event_path(event); 622 + const struct path *path = fanotify_event_path(event); 623 623 struct fanotify_info *info = fanotify_event_info(event); 624 624 unsigned int info_mode = FAN_GROUP_FLAG(group, FANOTIFY_INFO_MODES); 625 625 unsigned int pidfd_mode = info_mode & FAN_REPORT_PIDFD; ··· 1553 1553 } 1554 1554 1555 1555 static int fanotify_events_supported(struct fsnotify_group *group, 1556 - struct path *path, __u64 mask, 1556 + const struct path *path, __u64 mask, 1557 1557 unsigned int flags) 1558 1558 { 1559 1559 unsigned int mark_type = flags & FANOTIFY_MARK_TYPE_BITS;
+6 -6
fs/overlayfs/copy_up.c
··· 44 44 !strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN); 45 45 } 46 46 47 - int ovl_copy_xattr(struct super_block *sb, struct path *oldpath, struct dentry *new) 47 + int ovl_copy_xattr(struct super_block *sb, const struct path *oldpath, struct dentry *new) 48 48 { 49 49 struct dentry *old = oldpath->dentry; 50 50 ssize_t list_size, size, value_size = 0; ··· 132 132 return error; 133 133 } 134 134 135 - static int ovl_copy_fileattr(struct inode *inode, struct path *old, 136 - struct path *new) 135 + static int ovl_copy_fileattr(struct inode *inode, const struct path *old, 136 + const struct path *new) 137 137 { 138 138 struct fileattr oldfa = { .flags_valid = true }; 139 139 struct fileattr newfa = { .flags_valid = true }; ··· 193 193 return ovl_real_fileattr_set(new, &newfa); 194 194 } 195 195 196 - static int ovl_copy_up_data(struct ovl_fs *ofs, struct path *old, 197 - struct path *new, loff_t len) 196 + static int ovl_copy_up_data(struct ovl_fs *ofs, const struct path *old, 197 + const struct path *new, loff_t len) 198 198 { 199 199 struct file *old_file; 200 200 struct file *new_file; ··· 872 872 return true; 873 873 } 874 874 875 - static ssize_t ovl_getxattr_value(struct path *path, char *name, char **value) 875 + static ssize_t ovl_getxattr_value(const struct path *path, char *name, char **value) 876 876 { 877 877 ssize_t res; 878 878 char *buf;
+1 -1
fs/overlayfs/file.c
··· 38 38 #define OVL_OPEN_FLAGS (O_NOATIME | FMODE_NONOTIFY) 39 39 40 40 static struct file *ovl_open_realfile(const struct file *file, 41 - struct path *realpath) 41 + const struct path *realpath) 42 42 { 43 43 struct inode *realinode = d_inode(realpath->dentry); 44 44 struct inode *inode = file_inode(file);
+3 -3
fs/overlayfs/inode.c
··· 588 588 * Introducing security_inode_fileattr_get/set() hooks would solve this issue 589 589 * properly. 590 590 */ 591 - static int ovl_security_fileattr(struct path *realpath, struct fileattr *fa, 591 + static int ovl_security_fileattr(const struct path *realpath, struct fileattr *fa, 592 592 bool set) 593 593 { 594 594 struct file *file; ··· 610 610 return err; 611 611 } 612 612 613 - int ovl_real_fileattr_set(struct path *realpath, struct fileattr *fa) 613 + int ovl_real_fileattr_set(const struct path *realpath, struct fileattr *fa) 614 614 { 615 615 int err; 616 616 ··· 685 685 } 686 686 } 687 687 688 - int ovl_real_fileattr_get(struct path *realpath, struct fileattr *fa) 688 + int ovl_real_fileattr_get(const struct path *realpath, struct fileattr *fa) 689 689 { 690 690 int err; 691 691
+2 -2
fs/overlayfs/namei.c
··· 26 26 bool metacopy; 27 27 }; 28 28 29 - static int ovl_check_redirect(struct path *path, struct ovl_lookup_data *d, 29 + static int ovl_check_redirect(const struct path *path, struct ovl_lookup_data *d, 30 30 size_t prelen, const char *post) 31 31 { 32 32 int res; ··· 194 194 return real; 195 195 } 196 196 197 - static bool ovl_is_opaquedir(struct ovl_fs *ofs, struct path *path) 197 + static bool ovl_is_opaquedir(struct ovl_fs *ofs, const struct path *path) 198 198 { 199 199 return ovl_path_check_dir_xattr(ofs, path, OVL_XATTR_OPAQUE); 200 200 }
+11 -11
fs/overlayfs/overlayfs.h
··· 208 208 return err; 209 209 } 210 210 211 - static inline ssize_t ovl_do_getxattr(struct path *path, const char *name, 211 + static inline ssize_t ovl_do_getxattr(const struct path *path, const char *name, 212 212 void *value, size_t size) 213 213 { 214 214 int err, len; ··· 238 238 } 239 239 240 240 static inline ssize_t ovl_path_getxattr(struct ovl_fs *ofs, 241 - struct path *path, 241 + const struct path *path, 242 242 enum ovl_xattr ox, void *value, 243 243 size_t size) 244 244 { ··· 401 401 void ovl_dir_modified(struct dentry *dentry, bool impurity); 402 402 u64 ovl_dentry_version_get(struct dentry *dentry); 403 403 bool ovl_is_whiteout(struct dentry *dentry); 404 - struct file *ovl_path_open(struct path *path, int flags); 404 + struct file *ovl_path_open(const struct path *path, int flags); 405 405 int ovl_copy_up_start(struct dentry *dentry, int flags); 406 406 void ovl_copy_up_end(struct dentry *dentry); 407 407 bool ovl_already_copied_up(struct dentry *dentry, int flags); 408 - bool ovl_path_check_dir_xattr(struct ovl_fs *ofs, struct path *path, 408 + bool ovl_path_check_dir_xattr(struct ovl_fs *ofs, const struct path *path, 409 409 enum ovl_xattr ox); 410 - bool ovl_path_check_origin_xattr(struct ovl_fs *ofs, struct path *path); 410 + bool ovl_path_check_origin_xattr(struct ovl_fs *ofs, const struct path *path); 411 411 412 412 static inline bool ovl_check_origin_xattr(struct ovl_fs *ofs, 413 413 struct dentry *upperdentry) ··· 430 430 int ovl_nlink_start(struct dentry *dentry); 431 431 void ovl_nlink_end(struct dentry *dentry); 432 432 int ovl_lock_rename_workdir(struct dentry *workdir, struct dentry *upperdir); 433 - int ovl_check_metacopy_xattr(struct ovl_fs *ofs, struct path *path); 433 + int ovl_check_metacopy_xattr(struct ovl_fs *ofs, const struct path *path); 434 434 bool ovl_is_metacopy_dentry(struct dentry *dentry); 435 - char *ovl_get_redirect_xattr(struct ovl_fs *ofs, struct path *path, int padding); 435 + char *ovl_get_redirect_xattr(struct ovl_fs *ofs, const struct path *path, int padding); 436 436 int ovl_sync_status(struct ovl_fs *ofs); 437 437 438 438 static inline void ovl_set_flag(unsigned long flag, struct inode *inode) ··· 556 556 struct list_head *list); 557 557 void ovl_cache_free(struct list_head *list); 558 558 void ovl_dir_cache_free(struct inode *inode); 559 - int ovl_check_d_type_supported(struct path *realpath); 559 + int ovl_check_d_type_supported(const struct path *realpath); 560 560 int ovl_workdir_cleanup(struct ovl_fs *ofs, struct inode *dir, 561 561 struct vfsmount *mnt, struct dentry *dentry, int level); 562 562 int ovl_indexdir_cleanup(struct ovl_fs *ofs); ··· 673 673 extern const struct file_operations ovl_file_operations; 674 674 int __init ovl_aio_request_cache_init(void); 675 675 void ovl_aio_request_cache_destroy(void); 676 - int ovl_real_fileattr_get(struct path *realpath, struct fileattr *fa); 677 - int ovl_real_fileattr_set(struct path *realpath, struct fileattr *fa); 676 + int ovl_real_fileattr_get(const struct path *realpath, struct fileattr *fa); 677 + int ovl_real_fileattr_set(const struct path *realpath, struct fileattr *fa); 678 678 int ovl_fileattr_get(struct dentry *dentry, struct fileattr *fa); 679 679 int ovl_fileattr_set(struct user_namespace *mnt_userns, 680 680 struct dentry *dentry, struct fileattr *fa); ··· 683 683 int ovl_copy_up(struct dentry *dentry); 684 684 int ovl_copy_up_with_data(struct dentry *dentry); 685 685 int ovl_maybe_copy_up(struct dentry *dentry, int flags); 686 - int ovl_copy_xattr(struct super_block *sb, struct path *path, struct dentry *new); 686 + int ovl_copy_xattr(struct super_block *sb, const struct path *path, struct dentry *new); 687 687 int ovl_set_attr(struct ovl_fs *ofs, struct dentry *upper, struct kstat *stat); 688 688 struct ovl_fh *ovl_encode_real_fh(struct ovl_fs *ofs, struct dentry *real, 689 689 bool is_upper);
+8 -8
fs/overlayfs/readdir.c
··· 264 264 return ovl_fill_lowest(rdd, name, namelen, offset, ino, d_type); 265 265 } 266 266 267 - static int ovl_check_whiteouts(struct path *path, struct ovl_readdir_data *rdd) 267 + static int ovl_check_whiteouts(const struct path *path, struct ovl_readdir_data *rdd) 268 268 { 269 269 int err; 270 270 struct ovl_cache_entry *p; ··· 291 291 return err; 292 292 } 293 293 294 - static inline int ovl_dir_read(struct path *realpath, 294 + static inline int ovl_dir_read(const struct path *realpath, 295 295 struct ovl_readdir_data *rdd) 296 296 { 297 297 struct file *realfile; ··· 455 455 * copy up origin, call vfs_getattr() on the overlay entry to make 456 456 * sure that d_ino will be consistent with st_ino from stat(2). 457 457 */ 458 - static int ovl_cache_update_ino(struct path *path, struct ovl_cache_entry *p) 458 + static int ovl_cache_update_ino(const struct path *path, struct ovl_cache_entry *p) 459 459 460 460 { 461 461 struct dentry *dir = path->dentry; ··· 547 547 return true; 548 548 } 549 549 550 - static int ovl_dir_read_impure(struct path *path, struct list_head *list, 550 + static int ovl_dir_read_impure(const struct path *path, struct list_head *list, 551 551 struct rb_root *root) 552 552 { 553 553 int err; ··· 592 592 return 0; 593 593 } 594 594 595 - static struct ovl_dir_cache *ovl_cache_get_impure(struct path *path) 595 + static struct ovl_dir_cache *ovl_cache_get_impure(const struct path *path) 596 596 { 597 597 int res; 598 598 struct dentry *dentry = path->dentry; ··· 834 834 } 835 835 836 836 static struct file *ovl_dir_open_realfile(const struct file *file, 837 - struct path *realpath) 837 + const struct path *realpath) 838 838 { 839 839 struct file *res; 840 840 const struct cred *old_cred; ··· 1048 1048 * Returns 1 if d_type is supported, 0 not supported/unknown. Negative values 1049 1049 * if error is encountered. 1050 1050 */ 1051 - int ovl_check_d_type_supported(struct path *realpath) 1051 + int ovl_check_d_type_supported(const struct path *realpath) 1052 1052 { 1053 1053 int err; 1054 1054 struct ovl_readdir_data rdd = { ··· 1065 1065 1066 1066 #define OVL_INCOMPATDIR_NAME "incompat" 1067 1067 1068 - static int ovl_workdir_cleanup_recurse(struct ovl_fs *ofs, struct path *path, 1068 + static int ovl_workdir_cleanup_recurse(struct ovl_fs *ofs, const struct path *path, 1069 1069 int level) 1070 1070 { 1071 1071 int err;
+4 -4
fs/overlayfs/super.c
··· 908 908 return err; 909 909 } 910 910 911 - static int ovl_check_namelen(struct path *path, struct ovl_fs *ofs, 911 + static int ovl_check_namelen(const struct path *path, struct ovl_fs *ofs, 912 912 const char *name) 913 913 { 914 914 struct kstatfs statfs; ··· 1366 1366 } 1367 1367 1368 1368 static int ovl_make_workdir(struct super_block *sb, struct ovl_fs *ofs, 1369 - struct path *workpath) 1369 + const struct path *workpath) 1370 1370 { 1371 1371 struct vfsmount *mnt = ovl_upper_mnt(ofs); 1372 1372 struct dentry *temp, *workdir; ··· 1495 1495 } 1496 1496 1497 1497 static int ovl_get_workdir(struct super_block *sb, struct ovl_fs *ofs, 1498 - struct path *upperpath) 1498 + const struct path *upperpath) 1499 1499 { 1500 1500 int err; 1501 1501 struct path workpath = { }; ··· 1538 1538 } 1539 1539 1540 1540 static int ovl_get_indexdir(struct super_block *sb, struct ovl_fs *ofs, 1541 - struct ovl_entry *oe, struct path *upperpath) 1541 + struct ovl_entry *oe, const struct path *upperpath) 1542 1542 { 1543 1543 struct vfsmount *mnt = ovl_upper_mnt(ofs); 1544 1544 struct dentry *indexdir;
+5 -5
fs/overlayfs/util.c
··· 490 490 return inode && IS_WHITEOUT(inode); 491 491 } 492 492 493 - struct file *ovl_path_open(struct path *path, int flags) 493 + struct file *ovl_path_open(const struct path *path, int flags) 494 494 { 495 495 struct inode *inode = d_inode(path->dentry); 496 496 struct user_namespace *real_mnt_userns = mnt_user_ns(path->mnt); ··· 578 578 ovl_inode_unlock(d_inode(dentry)); 579 579 } 580 580 581 - bool ovl_path_check_origin_xattr(struct ovl_fs *ofs, struct path *path) 581 + bool ovl_path_check_origin_xattr(struct ovl_fs *ofs, const struct path *path) 582 582 { 583 583 int res; 584 584 ··· 591 591 return false; 592 592 } 593 593 594 - bool ovl_path_check_dir_xattr(struct ovl_fs *ofs, struct path *path, 594 + bool ovl_path_check_dir_xattr(struct ovl_fs *ofs, const struct path *path, 595 595 enum ovl_xattr ox) 596 596 { 597 597 int res; ··· 971 971 } 972 972 973 973 /* err < 0, 0 if no metacopy xattr, 1 if metacopy xattr found */ 974 - int ovl_check_metacopy_xattr(struct ovl_fs *ofs, struct path *path) 974 + int ovl_check_metacopy_xattr(struct ovl_fs *ofs, const struct path *path) 975 975 { 976 976 int res; 977 977 ··· 1015 1015 return (oe->numlower > 1); 1016 1016 } 1017 1017 1018 - char *ovl_get_redirect_xattr(struct ovl_fs *ofs, struct path *path, int padding) 1018 + char *ovl_get_redirect_xattr(struct ovl_fs *ofs, const struct path *path, int padding) 1019 1019 { 1020 1020 int res; 1021 1021 char *s, *next, *buf = NULL;
+2 -2
fs/proc/base.c
··· 1761 1761 return ERR_PTR(error); 1762 1762 } 1763 1763 1764 - static int do_proc_readlink(struct path *path, char __user *buffer, int buflen) 1764 + static int do_proc_readlink(const struct path *path, char __user *buffer, int buflen) 1765 1765 { 1766 1766 char *tmp = kmalloc(PATH_MAX, GFP_KERNEL); 1767 1767 char *pathname; ··· 2728 2728 return -ESRCH; 2729 2729 2730 2730 length = security_getprocattr(task, PROC_I(inode)->op.lsm, 2731 - (char*)file->f_path.dentry->d_name.name, 2731 + file->f_path.dentry->d_name.name, 2732 2732 &p); 2733 2733 put_task_struct(task); 2734 2734 if (length > 0)
+1 -1
include/linux/lsm_hook_defs.h
··· 254 254 LSM_HOOK(int, 0, netlink_send, struct sock *sk, struct sk_buff *skb) 255 255 LSM_HOOK(void, LSM_RET_VOID, d_instantiate, struct dentry *dentry, 256 256 struct inode *inode) 257 - LSM_HOOK(int, -EINVAL, getprocattr, struct task_struct *p, char *name, 257 + LSM_HOOK(int, -EINVAL, getprocattr, struct task_struct *p, const char *name, 258 258 char **value) 259 259 LSM_HOOK(int, -EINVAL, setprocattr, const char *name, void *value, size_t size) 260 260 LSM_HOOK(int, 0, ismaclabel, const char *name)
+1 -1
include/linux/namei.h
··· 83 83 extern struct dentry *lock_rename(struct dentry *, struct dentry *); 84 84 extern void unlock_rename(struct dentry *, struct dentry *); 85 85 86 - extern int __must_check nd_jump_link(struct path *path); 86 + extern int __must_check nd_jump_link(const struct path *path); 87 87 88 88 static inline void nd_terminate_link(void *name, size_t len, size_t maxlen) 89 89 {
+2 -2
include/linux/security.h
··· 462 462 int security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops, 463 463 unsigned nsops, int alter); 464 464 void security_d_instantiate(struct dentry *dentry, struct inode *inode); 465 - int security_getprocattr(struct task_struct *p, const char *lsm, char *name, 465 + int security_getprocattr(struct task_struct *p, const char *lsm, const char *name, 466 466 char **value); 467 467 int security_setprocattr(const char *lsm, const char *name, void *value, 468 468 size_t size); ··· 1307 1307 { } 1308 1308 1309 1309 static inline int security_getprocattr(struct task_struct *p, const char *lsm, 1310 - char *name, char **value) 1310 + const char *name, char **value) 1311 1311 { 1312 1312 return -EINVAL; 1313 1313 }
+1 -1
io_uring/xattr.c
··· 206 206 } 207 207 208 208 static int __io_setxattr(struct io_kiocb *req, unsigned int issue_flags, 209 - struct path *path) 209 + const struct path *path) 210 210 { 211 211 struct io_xattr *ix = io_kiocb_to_cmd(req, struct io_xattr); 212 212 int ret;
+1 -1
kernel/audit_watch.c
··· 133 133 } 134 134 135 135 /* Initialize a parent watch entry. */ 136 - static struct audit_parent *audit_init_parent(struct path *path) 136 + static struct audit_parent *audit_init_parent(const struct path *path) 137 137 { 138 138 struct inode *inode = d_backing_inode(path->dentry); 139 139 struct audit_parent *parent;
+1 -1
security/apparmor/lsm.c
··· 614 614 return error; 615 615 } 616 616 617 - static int apparmor_getprocattr(struct task_struct *task, char *name, 617 + static int apparmor_getprocattr(struct task_struct *task, const char *name, 618 618 char **value) 619 619 { 620 620 int error = -ENOENT;
+2 -2
security/security.c
··· 2062 2062 } 2063 2063 EXPORT_SYMBOL(security_d_instantiate); 2064 2064 2065 - int security_getprocattr(struct task_struct *p, const char *lsm, char *name, 2066 - char **value) 2065 + int security_getprocattr(struct task_struct *p, const char *lsm, 2066 + const char *name, char **value) 2067 2067 { 2068 2068 struct security_hook_list *hp; 2069 2069
+1 -1
security/selinux/hooks.c
··· 6330 6330 } 6331 6331 6332 6332 static int selinux_getprocattr(struct task_struct *p, 6333 - char *name, char **value) 6333 + const char *name, char **value) 6334 6334 { 6335 6335 const struct task_security_struct *__tsec; 6336 6336 u32 sid;
+1 -1
security/smack/smack_lsm.c
··· 3493 3493 * 3494 3494 * Returns the length of the smack label or an error code 3495 3495 */ 3496 - static int smack_getprocattr(struct task_struct *p, char *name, char **value) 3496 + static int smack_getprocattr(struct task_struct *p, const char *name, char **value) 3497 3497 { 3498 3498 struct smack_known *skp = smk_of_task_struct_obj(p); 3499 3499 char *cp;