[LU-9003] Linux kernel 4.8 adds user_namespace arg to posix_acl_valid Created: 11/Jan/17  Updated: 28/Mar/17  Resolved: 16/Mar/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.10.0

Type: Bug Priority: Minor
Reporter: Åke Sandgren Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by LU-9155 number of args changed in posix_acl_v... Resolved
Related
is related to LU-6215 Sync Lustre external tree with lustre... Resolved
is related to LU-9183 Support for linux 4.9 kernels Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Kernel 4.8 adds a struct user_namespace arg to posix_acl_valid:
extern int posix_acl_valid(struct user_namespace *, const struct posix_acl *);

This needs to be tested for and handled.



 Comments   
Comment by Gerrit Updater [ 07/Feb/17 ]

Michael Kuhn (michael.kuhn@informatik.uni-hamburg.de) uploaded a new patch: https://review.whamcloud.com/25307
Subject: LU-9003 mdc: support posix_acl_valid with user namespace
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a7f013f31063ee100255f5c266bb20778d2c3ba2

Comment by Michael Kuhn [ 07/Feb/17 ]

By the way, this also applies to Linux 4.4 on Ubuntu 16.04 because Canonical has decided to backport this change.

Comment by Åke Sandgren [ 08/Feb/17 ]

It might be more consistent to do this the same way that posix_acl_from_xattr and posix_acl_to_xattr are handled, in libcfs/include/libcfs/linux/linux-fs.h

Comment by Michael Kuhn [ 08/Feb/17 ]

Thanks for the hint! I have updated the patch accordingly.

Comment by Gerrit Updater [ 16/Mar/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25307/
Subject: LU-9003 mdc: support posix_acl_valid with user namespace
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 4ef449e11b1d799db70e0ae0972121e9eea776aa

Comment by Peter Jones [ 16/Mar/17 ]

Landed for 2.10

Generated at Sat Feb 10 02:22:25 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.