Red Hat Bugzilla – Bug 137530
linux/nfs_mount.h is missing #define for NFS_MOUNT_NOACL flag
Last modified: 2007-11-30 17:07:04 EST
The RHEL3 kernel contains patches to add ACL support to NFS v3. This includes a
new NFS mount option 'noacl'. The version of nfs_mount.h in the kjernel source
contains the constant
#define NFS_MOUNT_NOACL 0x0800
However, this is missing from the nfs_mount.h present in glibc-kernheaders. The
am-utils automounter, uses the nfs_mount.h to determine what flags are supported
for the mount syscall on NFS filesystems, thus needs this constant to be added.
Steps to Reproduce:
1. Compile any program that wants the NFS_MOUNT_NOACL constant
Comnpile fails / constant is not found
Compiles succeeeds & constant is found
The upstream kernel doesn't define NFS_MOUNT_NOACL, so I don't believe we should
be defining it in glibc-kernheaders either -- that should stick to the pure ABI
and not include local hacks. Until/unless NFS_MOUNT_NOACL is supported in an
upstream kernel (even a 2.6 kernel), please continue to define it in your own
local header files.
While it's a local hack in our kernel, it needs to remain a local hack in our
userspace too, unforunately.