Su Yanjun
fe1e8dbec1
NFSv3: FIx bug when using chacl and chmod to change acl
...
We find a bug when running test under nfsv3 as below.
1)
chacl u::r--,g::rwx,o:rw- file1
2)
chmod u+w file1
3)
chacl -l file1
We expect u::rw-, but it shows u::r--, more likely it returns the
cached acl in inode.
We dig the code find that the code path is different.
chacl->..->__nfs3_proc_setacls->nfs_zap_acl_cache
Then nfs_zap_acl_cache clears the NFS_INO_INVALID_ACL in
NFS_I(inode)->cache_validity.
chmod->..->nfs3_proc_setattr
Because NFS_INO_INVALID_ACL has been cleared by chacl path,
nfs_zap_acl_cache wont be called.
nfs_setattr_update_inode will set NFS_INO_INVALID_ACL so let it
before nfs_zap_acl_cache call.
Signed-off-by: Su Yanjun <suyanjun218@gmail.com >
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com >
2020-01-15 10:54:33 -05:00
..
2019-05-21 10:50:46 +02:00
2019-09-24 16:28:38 -04:00
2020-01-15 10:54:33 -05:00
2017-11-17 14:18:00 -08:00
2017-11-17 14:18:00 -08:00
2019-11-03 21:28:45 -05:00
2020-01-15 10:54:31 -05:00
2019-04-24 09:46:35 -04:00
2019-11-03 21:28:44 -05:00
2020-01-15 10:15:17 -05:00
2019-11-03 21:28:46 -05:00
2019-11-03 21:28:46 -05:00
2020-01-15 10:54:33 -05:00
2020-01-15 10:54:33 -05:00
2019-06-27 23:02:12 +01:00
2017-11-02 11:10:55 +01:00
2019-11-03 21:28:46 -05:00
2020-01-15 10:54:32 -05:00
2020-01-15 10:54:33 -05:00
2020-01-15 10:54:30 -05:00
2020-01-15 10:54:30 -05:00
2020-01-15 10:54:30 -05:00
2020-01-15 10:15:17 -05:00
2020-01-15 10:54:33 -05:00
2020-01-15 10:54:30 -05:00
2019-02-20 15:14:21 -05:00
2017-11-02 11:10:55 +01:00
2020-01-15 10:54:31 -05:00
2020-01-15 10:15:17 -05:00
2019-04-26 16:00:48 -04:00
2020-01-15 10:15:17 -05:00
2019-07-06 14:54:49 -04:00
2019-05-21 10:50:45 +02:00
2020-01-15 10:54:30 -05:00
2020-01-15 10:15:17 -05:00
2019-02-20 17:33:55 -05:00
2020-01-15 10:15:17 -05:00
2020-01-15 10:54:33 -05:00
2019-05-21 10:50:45 +02:00
2020-01-15 10:54:32 -05:00
2020-01-15 10:15:17 -05:00
2020-01-15 10:15:17 -05:00
2020-01-15 10:15:17 -05:00
2017-11-02 11:10:55 +01:00
2019-07-10 18:43:43 -07:00
2015-04-23 15:16:14 -04:00
2020-01-15 10:54:31 -05:00
2020-01-15 10:54:33 -05:00
2018-12-19 13:52:46 -05:00
2019-05-21 10:50:45 +02:00
2019-03-02 16:25:26 -05:00
2020-01-15 10:54:31 -05:00
2020-01-15 10:15:17 -05:00
2018-01-18 15:10:47 -05:00
2020-01-15 10:54:33 -05:00
2020-01-15 10:54:33 -05:00
2020-01-15 10:54:32 -05:00
2019-10-09 12:06:22 -04:00
2020-01-15 10:54:33 -05:00
2019-10-09 12:05:49 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-02-13 12:03:21 -05:00
2020-01-15 10:54:33 -05:00
2019-08-19 08:56:04 -04:00
2019-03-01 22:37:38 -05:00
2020-01-15 10:54:32 -05:00
2020-01-15 10:54:33 -05:00
2020-01-15 10:54:32 -05:00
2020-01-15 10:54:33 -05:00
2020-01-15 10:54:33 -05:00
2020-01-15 10:54:33 -05:00
2019-05-09 16:26:57 -04:00
2017-11-02 11:10:55 +01:00
2019-11-18 10:38:04 +01:00
2019-07-06 14:54:49 -04:00
2019-06-20 14:47:44 +02:00
2020-01-15 10:54:33 -05:00