In UFS, when reading EA that contains ACL fails for some reason, include
inode number and filesystem name, so the administrator can fix the problem. Approved by: rwatson (mentor)
This commit is contained in:
parent
31fb990621
commit
4a4f18ed37
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184629
@ -53,6 +53,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <ufs/ufs/dir.h>
|
||||
#include <ufs/ufs/ufsmount.h>
|
||||
#include <ufs/ufs/ufs_extern.h>
|
||||
#include <ufs/ffs/fs.h>
|
||||
|
||||
#ifdef UFS_ACL
|
||||
|
||||
@ -217,7 +218,8 @@ ufs_getacl(ap)
|
||||
* are unsafe.
|
||||
*/
|
||||
printf("ufs_getacl(): Loaded invalid ACL ("
|
||||
"%d bytes)\n", len);
|
||||
"%d bytes), inumber %d on %s\n", len,
|
||||
ip->i_number, ip->i_fs->fs_fsmnt);
|
||||
return (EPERM);
|
||||
}
|
||||
ufs_sync_acl_from_inode(ip, ap->a_aclp);
|
||||
@ -262,7 +264,8 @@ ufs_getacl(ap)
|
||||
* protections are unsafe.
|
||||
*/
|
||||
printf("ufs_getacl(): Loaded invalid ACL ("
|
||||
"%d bytes)\n", len);
|
||||
"%d bytes), inumber %d on %s\n", len,
|
||||
ip->i_number, ip->i_fs->fs_fsmnt);
|
||||
return (EPERM);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user