MFC r197789:
Fix ACL support on sparc64. Turns out that fuword(9) fetches 64 bits instead of sizeof(int), and on sparc64 that resulted in fetching wrong value for acl_maxcnt, which in turn caused __acl_get_link(2) to fail with EINVAL. PR: sparc64/139304 Submitted by: Dmitry Afanasiev <KOT at MATPOCKuH.Ru>
This commit is contained in:
parent
64af635930
commit
6451b27464
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=198975
@ -161,7 +161,7 @@ acl_copyout(struct acl *kernel_acl, void *user_acl, acl_type_t type)
|
||||
break;
|
||||
|
||||
default:
|
||||
if (fuword((char *)user_acl +
|
||||
if (fuword32((char *)user_acl +
|
||||
offsetof(struct acl, acl_maxcnt)) != ACL_MAX_ENTRIES)
|
||||
return (EINVAL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user