/linux-6.12.1/fs/ |
D | utimes.c | 23 struct iattr newattrs; in vfs_utimes() local 40 newattrs.ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME; in vfs_utimes() 43 newattrs.ia_valid &= ~ATTR_ATIME; in vfs_utimes() 45 newattrs.ia_atime = times[0]; in vfs_utimes() 46 newattrs.ia_valid |= ATTR_ATIME_SET; in vfs_utimes() 50 newattrs.ia_valid &= ~ATTR_MTIME; in vfs_utimes() 52 newattrs.ia_mtime = times[1]; in vfs_utimes() 53 newattrs.ia_valid |= ATTR_MTIME_SET; in vfs_utimes() 60 newattrs.ia_valid |= ATTR_TIMES_SET; in vfs_utimes() 62 newattrs.ia_valid |= ATTR_TOUCH; in vfs_utimes() [all …]
|
D | open.c | 43 struct iattr newattrs; in do_truncate() local 49 newattrs.ia_size = length; in do_truncate() 50 newattrs.ia_valid = ATTR_SIZE | time_attrs; in do_truncate() 52 newattrs.ia_file = filp; in do_truncate() 53 newattrs.ia_valid |= ATTR_FILE; in do_truncate() 61 newattrs.ia_valid |= ret | ATTR_FORCE; in do_truncate() 65 ret = notify_change(idmap, dentry, &newattrs, NULL); in do_truncate() 640 struct iattr newattrs; in chmod_common() local 651 newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); in chmod_common() 652 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in chmod_common() [all …]
|
D | inode.c | 2162 struct iattr newattrs; in __remove_privs() local 2164 newattrs.ia_valid = ATTR_FORCE | kill; in __remove_privs() 2169 return notify_change(idmap, dentry, &newattrs, NULL); in __remove_privs()
|
/linux-6.12.1/fs/ceph/ |
D | acl.c | 96 struct iattr newattrs; in ceph_set_acl() local 142 newattrs.ia_ctime = current_time(inode); in ceph_set_acl() 143 newattrs.ia_mode = new_mode; in ceph_set_acl() 144 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in ceph_set_acl() 145 ret = __ceph_setattr(idmap, inode, &newattrs, NULL); in ceph_set_acl() 153 newattrs.ia_ctime = old_ctime; in ceph_set_acl() 154 newattrs.ia_mode = old_mode; in ceph_set_acl() 155 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in ceph_set_acl() 156 __ceph_setattr(idmap, inode, &newattrs, NULL); in ceph_set_acl()
|
/linux-6.12.1/drivers/base/ |
D | devtmpfs.c | 222 struct iattr newattrs; in handle_create() local 224 newattrs.ia_mode = mode; in handle_create() 225 newattrs.ia_uid = uid; in handle_create() 226 newattrs.ia_gid = gid; in handle_create() 227 newattrs.ia_valid = ATTR_MODE|ATTR_UID|ATTR_GID; in handle_create() 229 notify_change(&nop_mnt_idmap, dentry, &newattrs, NULL); in handle_create() 326 struct iattr newattrs; in handle_remove() local 331 newattrs.ia_uid = GLOBAL_ROOT_UID; in handle_remove() 332 newattrs.ia_gid = GLOBAL_ROOT_GID; in handle_remove() 333 newattrs.ia_mode = stat.mode & ~0777; in handle_remove() [all …]
|
/linux-6.12.1/fs/cachefiles/ |
D | interface.c | 116 struct iattr newattrs; in cachefiles_adjust_size() local 142 newattrs.ia_valid = ATTR_SIZE; in cachefiles_adjust_size() 143 newattrs.ia_size = oi_size & PAGE_MASK; in cachefiles_adjust_size() 147 &newattrs, NULL); in cachefiles_adjust_size() 152 newattrs.ia_valid = ATTR_SIZE; in cachefiles_adjust_size() 153 newattrs.ia_size = ni_size; in cachefiles_adjust_size() 157 &newattrs, NULL); in cachefiles_adjust_size()
|
/linux-6.12.1/security/integrity/evm/ |
D | evm_secfs.c | 186 struct iattr newattrs; in evm_write_xattrs() local 227 newattrs.ia_mode = S_IFREG | 0440; in evm_write_xattrs() 228 newattrs.ia_valid = ATTR_MODE; in evm_write_xattrs() 231 err = simple_setattr(&nop_mnt_idmap, evm_xattrs, &newattrs); in evm_write_xattrs()
|
/linux-6.12.1/fs/sysfs/ |
D | group.c | 500 struct iattr *newattrs) in sysfs_group_attrs_change_owner() argument 513 error = kernfs_setattr(kn, newattrs); in sysfs_group_attrs_change_owner() 528 error = kernfs_setattr(kn, newattrs); in sysfs_group_attrs_change_owner() 553 struct iattr newattrs = { in sysfs_group_change_owner() local 571 error = kernfs_setattr(grp_kn, &newattrs); in sysfs_group_change_owner() 573 error = sysfs_group_attrs_change_owner(grp_kn, grp, &newattrs); in sysfs_group_change_owner()
|
D | file.c | 430 struct iattr newattrs; in sysfs_chmod_file() local 437 newattrs.ia_mode = (mode & S_IALLUGO) | (kn->mode & ~S_IALLUGO); in sysfs_chmod_file() 438 newattrs.ia_valid = ATTR_MODE; in sysfs_chmod_file() 440 rc = kernfs_setattr(kn, &newattrs); in sysfs_chmod_file() 603 struct iattr newattrs = { in internal_change_owner() local 608 return kernfs_setattr(kn, &newattrs); in internal_change_owner()
|
/linux-6.12.1/fs/smb/server/ |
D | smbacl.c | 1389 struct iattr newattrs; in set_info_sec() local 1399 newattrs.ia_valid = ATTR_CTIME; in set_info_sec() 1401 newattrs.ia_valid |= ATTR_UID; in set_info_sec() 1402 newattrs.ia_uid = fattr.cf_uid; in set_info_sec() 1405 newattrs.ia_valid |= ATTR_GID; in set_info_sec() 1406 newattrs.ia_gid = fattr.cf_gid; in set_info_sec() 1408 newattrs.ia_valid |= ATTR_MODE; in set_info_sec() 1409 newattrs.ia_mode = (inode->i_mode & ~0777) | (fattr.cf_mode & 0777); in set_info_sec() 1431 rc = notify_change(idmap, path->dentry, &newattrs, NULL); in set_info_sec()
|
/linux-6.12.1/fs/reiserfs/ |
D | xattr.c | 593 struct iattr newattrs = { in reiserfs_xattr_set_handle() local 602 err = reiserfs_setattr(&nop_mnt_idmap, dentry, &newattrs); in reiserfs_xattr_set_handle()
|