xfs_acl.c (549c7297717c32ee53f156cd949e055e601f67bb) | xfs_acl.c (f736d93d76d3e97d6986c6d26c8eaa32536ccc5c) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2008, Christoph Hellwig 4 * All Rights Reserved. 5 */ 6#include "xfs.h" 7#include "xfs_shared.h" 8#include "xfs_format.h" --- 239 unchanged lines hidden (view full) --- 248 if (!acl) 249 goto set_acl; 250 251 error = -E2BIG; 252 if (acl->a_count > XFS_ACL_MAX_ENTRIES(XFS_M(inode->i_sb))) 253 return error; 254 255 if (type == ACL_TYPE_ACCESS) { | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2008, Christoph Hellwig 4 * All Rights Reserved. 5 */ 6#include "xfs.h" 7#include "xfs_shared.h" 8#include "xfs_format.h" --- 239 unchanged lines hidden (view full) --- 248 if (!acl) 249 goto set_acl; 250 251 error = -E2BIG; 252 if (acl->a_count > XFS_ACL_MAX_ENTRIES(XFS_M(inode->i_sb))) 253 return error; 254 255 if (type == ACL_TYPE_ACCESS) { |
256 error = posix_acl_update_mode(&init_user_ns, inode, &mode, 257 &acl); | 256 error = posix_acl_update_mode(mnt_userns, inode, &mode, &acl); |
258 if (error) 259 return error; 260 set_mode = true; 261 } 262 263 set_acl: 264 /* 265 * We set the mode after successfully updating the ACL xattr because the --- 24 unchanged lines hidden --- | 257 if (error) 258 return error; 259 set_mode = true; 260 } 261 262 set_acl: 263 /* 264 * We set the mode after successfully updating the ACL xattr because the --- 24 unchanged lines hidden --- |