Searched refs:newattrs (Results 1 – 11 of 11) sorted by relevance
/linux/fs/ |
A 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 …]
|
A D | open.c | 42 struct iattr newattrs; in do_truncate() local 48 newattrs.ia_size = length; in do_truncate() 51 newattrs.ia_file = filp; in do_truncate() 52 newattrs.ia_valid |= ATTR_FILE; in do_truncate() 568 struct iattr newattrs; in chmod_common() local 647 struct iattr newattrs; in chown_common() local 663 newattrs.ia_valid |= ATTR_UID; in chown_common() 664 newattrs.ia_uid = uid; in chown_common() 669 newattrs.ia_valid |= ATTR_GID; in chown_common() 670 newattrs.ia_gid = gid; in chown_common() [all …]
|
A D | inode.c | 1929 struct iattr newattrs; in __remove_privs() local 1931 newattrs.ia_valid = ATTR_FORCE | kill; in __remove_privs() 1936 return notify_change(mnt_userns, dentry, &newattrs, NULL); in __remove_privs()
|
/linux/fs/ceph/ |
A 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/drivers/base/ |
A D | devtmpfs.c | 218 struct iattr newattrs; in handle_create() local 220 newattrs.ia_mode = mode; in handle_create() 221 newattrs.ia_uid = uid; in handle_create() 222 newattrs.ia_gid = gid; in handle_create() 223 newattrs.ia_valid = ATTR_MODE|ATTR_UID|ATTR_GID; in handle_create() 225 notify_change(&init_user_ns, dentry, &newattrs, NULL); in handle_create() 322 struct iattr newattrs; in handle_remove() local 327 newattrs.ia_uid = GLOBAL_ROOT_UID; in handle_remove() 328 newattrs.ia_gid = GLOBAL_ROOT_GID; in handle_remove() 329 newattrs.ia_mode = stat.mode & ~0777; in handle_remove() [all …]
|
/linux/fs/sysfs/ |
A 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()
|
A 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/security/integrity/evm/ |
A 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/fs/cachefiles/ |
A D | interface.c | 435 struct iattr newattrs; in cachefiles_attr_changed() local 471 newattrs.ia_valid = ATTR_SIZE; in cachefiles_attr_changed() 472 newattrs.ia_size = oi_size & PAGE_MASK; in cachefiles_attr_changed() 473 ret = notify_change(&init_user_ns, object->backer, &newattrs, NULL); in cachefiles_attr_changed() 478 newattrs.ia_valid = ATTR_SIZE; in cachefiles_attr_changed() 479 newattrs.ia_size = ni_size; in cachefiles_attr_changed() 480 ret = notify_change(&init_user_ns, object->backer, &newattrs, NULL); in cachefiles_attr_changed()
|
/linux/fs/ksmbd/ |
A D | smbacl.c | 1328 struct iattr newattrs; in set_info_sec() local 1338 newattrs.ia_valid = ATTR_CTIME; in set_info_sec() 1340 newattrs.ia_valid |= ATTR_UID; in set_info_sec() 1341 newattrs.ia_uid = fattr.cf_uid; in set_info_sec() 1344 newattrs.ia_valid |= ATTR_GID; in set_info_sec() 1345 newattrs.ia_gid = fattr.cf_gid; in set_info_sec() 1347 newattrs.ia_valid |= ATTR_MODE; in set_info_sec() 1348 newattrs.ia_mode = (inode->i_mode & ~0777) | (fattr.cf_mode & 0777); in set_info_sec() 1370 rc = notify_change(user_ns, path->dentry, &newattrs, NULL); in set_info_sec()
|
/linux/fs/reiserfs/ |
A D | xattr.c | 598 struct iattr newattrs = { in reiserfs_xattr_set_handle() local 607 err = reiserfs_setattr(&init_user_ns, dentry, &newattrs); in reiserfs_xattr_set_handle()
|
Completed in 23 milliseconds