/kernel/linux/linux-5.10/fs/ |
D | attr.c | 64 unsigned int ia_valid = attr->ia_valid; in setattr_prepare() local 70 if (ia_valid & ATTR_SIZE) { in setattr_prepare() 77 if (ia_valid & ATTR_FORCE) in setattr_prepare() 81 if ((ia_valid & ATTR_UID) && !chown_ok(inode, attr->ia_uid)) in setattr_prepare() 85 if ((ia_valid & ATTR_GID) && !chgrp_ok(inode, attr->ia_gid)) in setattr_prepare() 89 if (ia_valid & ATTR_MODE) { in setattr_prepare() 93 if (!in_group_p((ia_valid & ATTR_GID) ? attr->ia_gid : in setattr_prepare() 100 if (ia_valid & (ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET)) { in setattr_prepare() 107 if (ia_valid & ATTR_KILL_PRIV) { in setattr_prepare() 180 unsigned int ia_valid = attr->ia_valid; in setattr_copy() local [all …]
|
D | utimes.c | 39 newattrs.ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME; in vfs_utimes() 42 newattrs.ia_valid &= ~ATTR_ATIME; in vfs_utimes() 45 newattrs.ia_valid |= ATTR_ATIME_SET; in vfs_utimes() 49 newattrs.ia_valid &= ~ATTR_MTIME; in vfs_utimes() 52 newattrs.ia_valid |= ATTR_MTIME_SET; in vfs_utimes() 59 newattrs.ia_valid |= ATTR_TIMES_SET; in vfs_utimes() 61 newattrs.ia_valid |= ATTR_TOUCH; in vfs_utimes()
|
/kernel/linux/linux-5.10/fs/fat/ |
D | file.c | 66 ia.ia_valid = ATTR_MODE | ATTR_CTIME; in fat_ioctl_set_attributes() 102 fsnotify_change(file->f_path.dentry, ia.ia_valid); in fat_ioctl_set_attributes() 473 unsigned int ia_valid; in fat_setattr() local 477 ia_valid = attr->ia_valid; in fat_setattr() 478 if (ia_valid & TIMES_SET_FLAGS) { in fat_setattr() 480 attr->ia_valid &= ~TIMES_SET_FLAGS; in fat_setattr() 484 attr->ia_valid = ia_valid; in fat_setattr() 497 if (attr->ia_valid & ATTR_SIZE) { in fat_setattr() 502 if (error || attr->ia_valid == ATTR_SIZE) in fat_setattr() 504 attr->ia_valid &= ~ATTR_SIZE; in fat_setattr() [all …]
|
/kernel/linux/linux-5.10/fs/exfat/ |
D | file.c | 289 unsigned int ia_valid; in exfat_setattr() local 292 if ((attr->ia_valid & ATTR_SIZE) && in exfat_setattr() 295 if (error || attr->ia_valid == ATTR_SIZE) in exfat_setattr() 297 attr->ia_valid &= ~ATTR_SIZE; in exfat_setattr() 301 ia_valid = attr->ia_valid; in exfat_setattr() 302 if ((ia_valid & (ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET)) && in exfat_setattr() 304 attr->ia_valid &= ~(ATTR_MTIME_SET | ATTR_ATIME_SET | in exfat_setattr() 309 attr->ia_valid = ia_valid; in exfat_setattr() 313 if (((attr->ia_valid & ATTR_UID) && in exfat_setattr() 315 ((attr->ia_valid & ATTR_GID) && in exfat_setattr() [all …]
|
/kernel/linux/linux-5.10/fs/configfs/ |
D | inode.c | 48 unsigned int ia_valid = iattr->ia_valid; in configfs_setattr() local 74 if (ia_valid & ATTR_UID) in configfs_setattr() 76 if (ia_valid & ATTR_GID) in configfs_setattr() 78 if (ia_valid & ATTR_ATIME) in configfs_setattr() 80 if (ia_valid & ATTR_MTIME) in configfs_setattr() 82 if (ia_valid & ATTR_CTIME) in configfs_setattr() 84 if (ia_valid & ATTR_MODE) { in configfs_setattr()
|
/kernel/linux/linux-5.10/fs/adfs/ |
D | inode.c | 299 unsigned int ia_valid = attr->ia_valid; in adfs_notify_change() local 308 if ((ia_valid & ATTR_UID && !uid_eq(attr->ia_uid, ADFS_SB(sb)->s_uid)) || in adfs_notify_change() 309 (ia_valid & ATTR_GID && !gid_eq(attr->ia_gid, ADFS_SB(sb)->s_gid))) in adfs_notify_change() 316 if (ia_valid & ATTR_SIZE) in adfs_notify_change() 319 if (ia_valid & ATTR_MTIME && adfs_inode_is_stamped(inode)) { in adfs_notify_change() 328 if (ia_valid & ATTR_ATIME) in adfs_notify_change() 330 if (ia_valid & ATTR_CTIME) in adfs_notify_change() 332 if (ia_valid & ATTR_MODE) { in adfs_notify_change() 341 if (ia_valid & (ATTR_SIZE | ATTR_MTIME | ATTR_MODE)) in adfs_notify_change()
|
/kernel/linux/linux-5.10/include/linux/ |
D | fsnotify.h | 330 static inline void fsnotify_change(struct dentry *dentry, unsigned int ia_valid) in fsnotify_change() argument 334 if (ia_valid & ATTR_UID) in fsnotify_change() 336 if (ia_valid & ATTR_GID) in fsnotify_change() 338 if (ia_valid & ATTR_SIZE) in fsnotify_change() 342 if ((ia_valid & (ATTR_ATIME | ATTR_MTIME)) == (ATTR_ATIME | ATTR_MTIME)) in fsnotify_change() 344 else if (ia_valid & ATTR_ATIME) in fsnotify_change() 346 else if (ia_valid & ATTR_MTIME) in fsnotify_change() 349 if (ia_valid & ATTR_MODE) in fsnotify_change()
|
D | evm.h | 25 extern void evm_inode_post_setattr(struct dentry *dentry, int ia_valid); 69 static inline void evm_inode_post_setattr(struct dentry *dentry, int ia_valid) in evm_inode_post_setattr() argument
|
/kernel/linux/linux-5.10/fs/hostfs/ |
D | hostfs_kern.c | 799 attr->ia_valid &= ~ATTR_SIZE; in hostfs_setattr() 801 attrs.ia_valid = 0; in hostfs_setattr() 802 if (attr->ia_valid & ATTR_MODE) { in hostfs_setattr() 803 attrs.ia_valid |= HOSTFS_ATTR_MODE; in hostfs_setattr() 806 if (attr->ia_valid & ATTR_UID) { in hostfs_setattr() 807 attrs.ia_valid |= HOSTFS_ATTR_UID; in hostfs_setattr() 810 if (attr->ia_valid & ATTR_GID) { in hostfs_setattr() 811 attrs.ia_valid |= HOSTFS_ATTR_GID; in hostfs_setattr() 814 if (attr->ia_valid & ATTR_SIZE) { in hostfs_setattr() 815 attrs.ia_valid |= HOSTFS_ATTR_SIZE; in hostfs_setattr() [all …]
|
D | hostfs_user.c | 200 if (attrs->ia_valid & HOSTFS_ATTR_MODE) { in set_attr() 208 if (attrs->ia_valid & HOSTFS_ATTR_UID) { in set_attr() 216 if (attrs->ia_valid & HOSTFS_ATTR_GID) { in set_attr() 224 if (attrs->ia_valid & HOSTFS_ATTR_SIZE) { in set_attr() 239 if (attrs->ia_valid & ma) { in set_attr() 249 if (attrs->ia_valid & HOSTFS_ATTR_ATIME_SET) { in set_attr() 253 if (attrs->ia_valid & HOSTFS_ATTR_MTIME_SET) { in set_attr() 267 if (attrs->ia_valid & (HOSTFS_ATTR_ATIME | HOSTFS_ATTR_MTIME)) { in set_attr()
|
/kernel/linux/linux-5.10/fs/ramfs/ |
D | file-nommu.c | 164 unsigned int old_ia_valid = ia->ia_valid; in ramfs_nommu_setattr() 173 if (ia->ia_valid & ATTR_SIZE) { in ramfs_nommu_setattr() 178 if (ret < 0 || ia->ia_valid == ATTR_SIZE) in ramfs_nommu_setattr() 184 ia->ia_valid |= ATTR_MTIME|ATTR_CTIME; in ramfs_nommu_setattr() 190 ia->ia_valid = old_ia_valid; in ramfs_nommu_setattr()
|
/kernel/linux/linux-5.10/fs/kernfs/ |
D | inode.c | 77 unsigned int ia_valid = iattr->ia_valid; in __kernfs_setattr() local 83 if (ia_valid & ATTR_UID) in __kernfs_setattr() 85 if (ia_valid & ATTR_GID) in __kernfs_setattr() 87 if (ia_valid & ATTR_ATIME) in __kernfs_setattr() 89 if (ia_valid & ATTR_MTIME) in __kernfs_setattr() 91 if (ia_valid & ATTR_CTIME) in __kernfs_setattr() 93 if (ia_valid & ATTR_MODE) in __kernfs_setattr()
|
/kernel/linux/linux-5.10/fs/jfs/ |
D | file.c | 102 if ((iattr->ia_valid & ATTR_UID && !uid_eq(iattr->ia_uid, inode->i_uid)) || in jfs_setattr() 103 (iattr->ia_valid & ATTR_GID && !gid_eq(iattr->ia_gid, inode->i_gid))) { in jfs_setattr() 109 if ((iattr->ia_valid & ATTR_SIZE) && in jfs_setattr() 124 if (iattr->ia_valid & ATTR_MODE) in jfs_setattr()
|
/kernel/linux/linux-5.10/fs/nfsd/ |
D | nfsproc.c | 58 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr() 75 if ((iap->ia_valid & BOTH_TIME_SET) == BOTH_TIME_SET && in nfsd_proc_setattr() 99 iap->ia_valid &= ~BOTH_TIME_SET; in nfsd_proc_setattr() 316 if (attr->ia_valid & ATTR_MODE) { in nfsd_proc_create() 329 attr->ia_valid |= ATTR_SIZE; in nfsd_proc_create() 356 attr->ia_valid |= ATTR_MODE; in nfsd_proc_create() 365 } else if (type == S_IFCHR && !(attr->ia_valid & ATTR_SIZE)) { in nfsd_proc_create() 375 attr->ia_valid &= ~ATTR_SIZE; in nfsd_proc_create() 391 argp->name, attr->ia_valid, (long) attr->ia_size); in nfsd_proc_create() 396 attr->ia_valid &= ATTR_SIZE; in nfsd_proc_create() [all …]
|
D | vfs.c | 310 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs() 317 ((iap->ia_valid & ATTR_UID) || (iap->ia_valid & ATTR_GID))) { in nfsd_sanitize_attrs() 318 iap->ia_valid |= ATTR_KILL_PRIV; in nfsd_sanitize_attrs() 319 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs() 326 iap->ia_valid |= (ATTR_KILL_SUID | ATTR_KILL_SGID); in nfsd_sanitize_attrs() 376 bool size_change = (iap->ia_valid & ATTR_SIZE); in nfsd_setattr() 378 if (iap->ia_valid & ATTR_SIZE) { in nfsd_setattr() 390 if (iap->ia_valid & (ATTR_ATIME | ATTR_MTIME)) { in nfsd_setattr() 392 if (!(iap->ia_valid & (ATTR_ATIME_SET | ATTR_MTIME_SET))) in nfsd_setattr() 414 iap->ia_valid &= ~ATTR_MODE; in nfsd_setattr() [all …]
|
D | nfsxdr.c | 78 iap->ia_valid = 0; in decode_sattr() 85 iap->ia_valid |= ATTR_MODE; in decode_sattr() 91 iap->ia_valid |= ATTR_UID; in decode_sattr() 96 iap->ia_valid |= ATTR_GID; in decode_sattr() 99 iap->ia_valid |= ATTR_SIZE; in decode_sattr() 104 iap->ia_valid |= ATTR_ATIME | ATTR_ATIME_SET; in decode_sattr() 110 iap->ia_valid |= ATTR_MTIME | ATTR_MTIME_SET; in decode_sattr() 123 iap->ia_valid &= ~(ATTR_ATIME_SET|ATTR_MTIME_SET); in decode_sattr()
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | inode.c | 1420 if (attrs->ia_valid & ATTR_ATIME) { 1427 if (attrs->ia_valid & ATTR_MTIME) { 1440 if (set_time && (attrs->ia_valid & ATTR_CTIME)) { 2582 attrs->ia_valid |= ATTR_CTIME | ATTR_MTIME; 2605 direntry, attrs->ia_valid); 2610 attrs->ia_valid |= ATTR_FORCE; 2642 if (attrs->ia_valid & ATTR_SIZE) { 2649 if (attrs->ia_valid & (ATTR_KILL_SUID|ATTR_KILL_SGID)) 2650 attrs->ia_valid &= ~ATTR_MODE; 2659 if (attrs->ia_valid & ATTR_MODE) [all …]
|
/kernel/linux/linux-5.10/fs/orangefs/ |
D | acl.c | 144 iattr.ia_valid = ATTR_MODE; in orangefs_set_acl() 150 if (!rc && (iattr.ia_valid == ATTR_MODE)) in orangefs_set_acl() 188 iattr.ia_valid |= ATTR_MODE; in orangefs_init_acl()
|
D | namei.c | 86 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_create() 211 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_unlink() 297 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_symlink() 367 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_mkdir() 393 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_rename()
|
/kernel/linux/linux-5.10/fs/ecryptfs/ |
D | inode.c | 736 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper() 747 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper() 765 lower_ia->ia_valid |= ATTR_SIZE; in truncate_upper() 802 lower_ia->ia_valid |= ATTR_SIZE; in truncate_upper() 804 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper() 845 struct iattr ia = { .ia_valid = ATTR_SIZE, .ia_size = new_length }; in ecryptfs_truncate() 846 struct iattr lower_ia = { .ia_valid = 0 }; in ecryptfs_truncate() 854 if (!rc && lower_ia.ia_valid & ATTR_SIZE) { in ecryptfs_truncate() 939 if (ia->ia_valid & ATTR_SIZE) { in ecryptfs_setattr() 946 if (ia->ia_valid & ATTR_FILE) in ecryptfs_setattr() [all …]
|
/kernel/linux/linux-5.10/security/integrity/evm/ |
D | evm_main.c | 482 unsigned int ia_valid = attr->ia_valid; in evm_inode_setattr() local 491 if (!(ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID))) in evm_inode_setattr() 514 void evm_inode_post_setattr(struct dentry *dentry, int ia_valid) in evm_inode_post_setattr() argument 519 if (ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID)) in evm_inode_post_setattr()
|
/kernel/linux/linux-5.10/fs/udf/ |
D | file.c | 266 if ((attr->ia_valid & ATTR_UID) && in udf_setattr() 270 if ((attr->ia_valid & ATTR_GID) && in udf_setattr() 275 if ((attr->ia_valid & ATTR_SIZE) && in udf_setattr() 282 if (attr->ia_valid & ATTR_MODE) in udf_setattr()
|
/kernel/linux/linux-5.10/fs/9p/ |
D | vfs_inode_dotl.c | 556 p9attr.valid = v9fs_mapped_iattr_valid(iattr->ia_valid); in v9fs_vfs_setattr_dotl() 557 if (iattr->ia_valid & ATTR_MODE) in v9fs_vfs_setattr_dotl() 559 if (iattr->ia_valid & ATTR_UID) in v9fs_vfs_setattr_dotl() 561 if (iattr->ia_valid & ATTR_GID) in v9fs_vfs_setattr_dotl() 563 if (iattr->ia_valid & ATTR_SIZE) in v9fs_vfs_setattr_dotl() 565 if (iattr->ia_valid & ATTR_ATIME_SET) { in v9fs_vfs_setattr_dotl() 569 if (iattr->ia_valid & ATTR_MTIME_SET) { in v9fs_vfs_setattr_dotl() 574 if (iattr->ia_valid & ATTR_FILE) { in v9fs_vfs_setattr_dotl() 591 if ((iattr->ia_valid & ATTR_SIZE) && in v9fs_vfs_setattr_dotl() 598 if (iattr->ia_valid & ATTR_MODE) { in v9fs_vfs_setattr_dotl()
|
/kernel/linux/linux-5.10/fs/affs/ |
D | inode.c | 224 pr_debug("notify_change(%lu,0x%x)\n", inode->i_ino, attr->ia_valid); in affs_notify_change() 230 if (((attr->ia_valid & ATTR_UID) && in affs_notify_change() 232 ((attr->ia_valid & ATTR_GID) && in affs_notify_change() 234 ((attr->ia_valid & ATTR_MODE) && in affs_notify_change() 242 if ((attr->ia_valid & ATTR_SIZE) && in affs_notify_change() 255 if (attr->ia_valid & ATTR_MODE) in affs_notify_change()
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_iops.c | 621 if (iattr->ia_valid & ATTR_ATIME) in xfs_setattr_time() 623 if (iattr->ia_valid & ATTR_CTIME) in xfs_setattr_time() 625 if (iattr->ia_valid & ATTR_MTIME) in xfs_setattr_time() 659 int mask = iattr->ia_valid; in xfs_setattr_nonsize() 867 ASSERT((iattr->ia_valid & (ATTR_UID|ATTR_GID|ATTR_ATIME|ATTR_ATIME_SET| in xfs_setattr_size() 877 if (!(iattr->ia_valid & (ATTR_CTIME|ATTR_MTIME))) in xfs_setattr_size() 883 iattr->ia_valid &= ~ATTR_SIZE; in xfs_setattr_size() 989 !(iattr->ia_valid & (ATTR_CTIME | ATTR_MTIME))) { in xfs_setattr_size() 992 iattr->ia_valid |= ATTR_CTIME | ATTR_MTIME; in xfs_setattr_size() 1028 if (iattr->ia_valid & ATTR_MODE) in xfs_setattr_size() [all …]
|