/linux-6.1.9/fs/ |
D | utimes.c | 22 struct iattr newattrs; in vfs_utimes() local 39 newattrs.ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME; in vfs_utimes() 42 newattrs.ia_valid &= ~ATTR_ATIME; in vfs_utimes() 44 newattrs.ia_atime = times[0]; in vfs_utimes() 45 newattrs.ia_valid |= ATTR_ATIME_SET; in vfs_utimes() 49 newattrs.ia_valid &= ~ATTR_MTIME; in vfs_utimes() 51 newattrs.ia_mtime = times[1]; 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() [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(mnt_userns, dentry, &newattrs, NULL); in do_truncate() 593 struct iattr newattrs; in chmod_common() local 604 newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); in chmod_common() 605 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in chmod_common() [all …]
|
D | inode.c | 2006 struct iattr newattrs; in __remove_privs() local 2008 newattrs.ia_valid = ATTR_FORCE | kill; in __remove_privs() 2013 return notify_change(mnt_userns, dentry, &newattrs, NULL); in __remove_privs()
|
/linux-6.1.9/fs/ceph/ |
D | acl.c | 94 struct iattr newattrs; in ceph_set_acl() local 139 newattrs.ia_ctime = current_time(inode); in ceph_set_acl() 140 newattrs.ia_mode = new_mode; in ceph_set_acl() 141 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in ceph_set_acl() 142 ret = __ceph_setattr(inode, &newattrs); in ceph_set_acl() 150 newattrs.ia_ctime = old_ctime; in ceph_set_acl() 151 newattrs.ia_mode = old_mode; in ceph_set_acl() 152 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in ceph_set_acl() 153 __ceph_setattr(inode, &newattrs); in ceph_set_acl()
|
/linux-6.1.9/drivers/base/ |
D | devtmpfs.c | 229 struct iattr newattrs; in handle_create() local 231 newattrs.ia_mode = mode; in handle_create() 232 newattrs.ia_uid = uid; in handle_create() 233 newattrs.ia_gid = gid; in handle_create() 234 newattrs.ia_valid = ATTR_MODE|ATTR_UID|ATTR_GID; in handle_create() 236 notify_change(&init_user_ns, dentry, &newattrs, NULL); in handle_create() 333 struct iattr newattrs; in handle_remove() local 338 newattrs.ia_uid = GLOBAL_ROOT_UID; in handle_remove() 339 newattrs.ia_gid = GLOBAL_ROOT_GID; in handle_remove() 340 newattrs.ia_mode = stat.mode & ~0777; in handle_remove() [all …]
|
/linux-6.1.9/fs/cachefiles/ |
D | interface.c | 111 struct iattr newattrs; in cachefiles_adjust_size() local 137 newattrs.ia_valid = ATTR_SIZE; in cachefiles_adjust_size() 138 newattrs.ia_size = oi_size & PAGE_MASK; in cachefiles_adjust_size() 142 &newattrs, NULL); in cachefiles_adjust_size() 147 newattrs.ia_valid = ATTR_SIZE; in cachefiles_adjust_size() 148 newattrs.ia_size = ni_size; in cachefiles_adjust_size() 152 &newattrs, NULL); in cachefiles_adjust_size()
|
/linux-6.1.9/fs/sysfs/ |
D | group.c | 469 struct iattr *newattrs) in sysfs_group_attrs_change_owner() argument 482 error = kernfs_setattr(kn, newattrs); in sysfs_group_attrs_change_owner() 497 error = kernfs_setattr(kn, newattrs); in sysfs_group_attrs_change_owner() 522 struct iattr newattrs = { in sysfs_group_change_owner() local 540 error = kernfs_setattr(grp_kn, &newattrs); in sysfs_group_change_owner() 542 error = sysfs_group_attrs_change_owner(grp_kn, grp, &newattrs); in sysfs_group_change_owner()
|
D | file.c | 417 struct iattr newattrs; in sysfs_chmod_file() local 424 newattrs.ia_mode = (mode & S_IALLUGO) | (kn->mode & ~S_IALLUGO); in sysfs_chmod_file() 425 newattrs.ia_valid = ATTR_MODE; in sysfs_chmod_file() 427 rc = kernfs_setattr(kn, &newattrs); in sysfs_chmod_file() 588 struct iattr newattrs = { in internal_change_owner() local 593 return kernfs_setattr(kn, &newattrs); in internal_change_owner()
|
/linux-6.1.9/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(&init_user_ns, evm_xattrs, &newattrs); in evm_write_xattrs()
|
/linux-6.1.9/fs/ksmbd/ |
D | smbacl.c | 1364 struct iattr newattrs; in set_info_sec() local 1374 newattrs.ia_valid = ATTR_CTIME; in set_info_sec() 1376 newattrs.ia_valid |= ATTR_UID; in set_info_sec() 1377 newattrs.ia_uid = fattr.cf_uid; in set_info_sec() 1380 newattrs.ia_valid |= ATTR_GID; in set_info_sec() 1381 newattrs.ia_gid = fattr.cf_gid; in set_info_sec() 1383 newattrs.ia_valid |= ATTR_MODE; in set_info_sec() 1384 newattrs.ia_mode = (inode->i_mode & ~0777) | (fattr.cf_mode & 0777); in set_info_sec() 1406 rc = notify_change(user_ns, path->dentry, &newattrs, NULL); in set_info_sec()
|
/linux-6.1.9/fs/reiserfs/ |
D | xattr.c | 591 struct iattr newattrs = { in reiserfs_xattr_set_handle() local 600 err = reiserfs_setattr(&init_user_ns, dentry, &newattrs); in reiserfs_xattr_set_handle()
|