dir.c (21cb47be6fb9ece7e6ee63f6780986faa384a77c) | dir.c (2f221d6f7b881d95de1f356a3097d755ab1e47d4) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * 4 * Copyright (C) 2011 Novell Inc. 5 */ 6 7#include <linux/fs.h> 8#include <linux/namei.h> --- 494 unchanged lines hidden (view full) --- 503 if (!hardlink && 504 !S_ISLNK(cattr->mode) && 505 newdentry->d_inode->i_mode != cattr->mode) { 506 struct iattr attr = { 507 .ia_valid = ATTR_MODE, 508 .ia_mode = cattr->mode, 509 }; 510 inode_lock(newdentry->d_inode); | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * 4 * Copyright (C) 2011 Novell Inc. 5 */ 6 7#include <linux/fs.h> 8#include <linux/namei.h> --- 494 unchanged lines hidden (view full) --- 503 if (!hardlink && 504 !S_ISLNK(cattr->mode) && 505 newdentry->d_inode->i_mode != cattr->mode) { 506 struct iattr attr = { 507 .ia_valid = ATTR_MODE, 508 .ia_mode = cattr->mode, 509 }; 510 inode_lock(newdentry->d_inode); |
511 err = notify_change(newdentry, &attr, NULL); | 511 err = notify_change(&init_user_ns, newdentry, &attr, NULL); |
512 inode_unlock(newdentry->d_inode); 513 if (err) 514 goto out_cleanup; 515 } 516 if (!hardlink) { 517 err = ovl_set_upper_acl(newdentry, XATTR_NAME_POSIX_ACL_ACCESS, 518 acl); 519 if (err) --- 784 unchanged lines hidden --- | 512 inode_unlock(newdentry->d_inode); 513 if (err) 514 goto out_cleanup; 515 } 516 if (!hardlink) { 517 err = ovl_set_upper_acl(newdentry, XATTR_NAME_POSIX_ACL_ACCESS, 518 acl); 519 if (err) --- 784 unchanged lines hidden --- |